nathan.middleware
Class ClientCommunication

java.lang.Object
  extended by nathan.middleware.ClientCommunication

public class ClientCommunication
extends java.lang.Object

Client Communication is used to send and receive messages from the remote object. The client communication module is is passed messages to be sent from the stub. When the results are received from the remote object server they are returned to the stub module.

Author:
Nathan Balon
Advance Operating Systems CIS 578
University of Michigan Dearborn
Remote Method Invocation Middleware Project

Constructor Summary
ClientCommunication()
          Creates a new instance of ClientCommunication.
ClientCommunication(java.net.InetAddress address, int portNumber)
          Creates a new instance of ClientCommunication.
 
Method Summary
 Message getMessage()
          Get a message sent from the server.
 void sendMessage(Message message)
          Send a message to the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCommunication

public ClientCommunication()
Creates a new instance of ClientCommunication.


ClientCommunication

public ClientCommunication(java.net.InetAddress address,
                           int portNumber)
Creates a new instance of ClientCommunication.

Parameters:
address - The address of the remote object.
portNumber - The port number of the remote object.
Method Detail

sendMessage

public void sendMessage(Message message)
Send a message to the server.

Parameters:
message - The message to be sent to the server.

getMessage

public Message getMessage()
Get a message sent from the server.

Returns:
Message the message received from the server.