nathan.middleware
Class RegistryMessage

java.lang.Object
  extended by nathan.middleware.RegistryMessage
All Implemented Interfaces:
java.io.Serializable

public class RegistryMessage
extends java.lang.Object
implements java.io.Serializable

RegistryMessage is the object that is sent to the registry which contains the registry messages. The client and server use RegistyMessages to contact the registry.

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

Field Summary
static int BIND
          BIND a message to bind an object to the registry.
static int LOOKUP
          LOOKUP a message to lookup an object in the registry.
static int NEW_FRONT_END
          NEW_FRONT_END a message to add a new FrontEnd for active replication.
static int REMOVE_BINDING
          REMOVE_BINDING a message to remove a binding from the registry.
 
Method Summary
 int getMessageType()
          Get the type of registry message.
 java.lang.String getObjectName()
          Returns the name of the oject.
 java.lang.Object getObjectToBind()
          Get the object to bind to the registry.
 int getPortToBind()
          Gets the portToBind.
 void setMessageType(int messageType)
          Set the type of message.
 void setObjectName(java.lang.String objectName)
          Set the name of the object to bind.
 void setObjectToBind(java.lang.Object objectToBind)
          Set the object to bind to the registry.
 void setPortToBind(int portToBind)
          Set the port number to bind.
 java.lang.String toString()
          Returns a String representation of the registry message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BIND

public static final int BIND
BIND a message to bind an object to the registry.

See Also:
Constant Field Values

LOOKUP

public static final int LOOKUP
LOOKUP a message to lookup an object in the registry.

See Also:
Constant Field Values

NEW_FRONT_END

public static final int NEW_FRONT_END
NEW_FRONT_END a message to add a new FrontEnd for active replication.

See Also:
Constant Field Values

REMOVE_BINDING

public static final int REMOVE_BINDING
REMOVE_BINDING a message to remove a binding from the registry.

See Also:
Constant Field Values
Method Detail

getObjectName

public java.lang.String getObjectName()
Returns the name of the oject.

Returns:
Returns the objectName.

setObjectName

public void setObjectName(java.lang.String objectName)
Set the name of the object to bind.

Parameters:
objectName - The objectName to set.

getPortToBind

public int getPortToBind()
Gets the portToBind.

Returns:
int The port number to bind

setPortToBind

public void setPortToBind(int portToBind)
Set the port number to bind.

Parameters:
portToBind - The portToBind to set.

getMessageType

public int getMessageType()
Get the type of registry message.

Returns:
Returns the messageType.

setMessageType

public void setMessageType(int messageType)
Set the type of message.

Parameters:
messageType - The messageType to set.

getObjectToBind

public java.lang.Object getObjectToBind()
Get the object to bind to the registry.

Returns:
Returns the objectToBind.

setObjectToBind

public void setObjectToBind(java.lang.Object objectToBind)
Set the object to bind to the registry.

Parameters:
objectToBind - The objectToBind to set.

toString

public java.lang.String toString()
Returns a String representation of the registry message.

Overrides:
toString in class java.lang.Object
Returns:
String A String representation of the registry message.
See Also:
Object.toString()