|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.RemoteObjectMapping
public class RemoteObjectMapping
RemoteObjectMapping is used to store information about the replicated objects in the system, along with information about the front end to the active replication manager.
Constructor Summary | |
---|---|
RemoteObjectMapping()
Creates a new instance of RemoteObjectMapping |
|
RemoteObjectMapping(boolean isReplicated,
RemoteObjectReference ror)
Creates a new instance of RemoteObjectMapping |
Method Summary | |
---|---|
void |
addRemoteObject(RemoteObjectReference ror)
Adds a new replicated object. |
java.net.InetAddress |
getFrontEndAddress()
Get the address of where the front of the replication manager is located. |
int |
getFrontEndPort()
Gets the port number of the front end. |
RemoteObjectReference |
getFrontEndROR()
Get the remote object reference for the front end so that it can be located |
java.util.Vector |
getRemoteObjects()
Gets all of the replicated objects of the front end. |
boolean |
isReplicated()
Returns true if replication is being used. |
void |
removeRemoteObject(RemoteObjectReference ror)
Removes a specific remote object from the replication manager. |
void |
setFrontEnd(java.net.InetAddress address,
int port)
Sets the front end address |
void |
setFrontEndAddress(java.net.InetAddress frontEndAddress)
Sets the address of the Front end. |
void |
setFrontEndPort(int frontEndPort)
Sets the port number for the front end. |
void |
setReplicated(boolean isReplicated)
Sets if repilication is used. |
void |
setReplicatedObjects(java.util.Vector<RemoteObjectReference> replicateObjects)
Set the replicated objects. |
int |
size()
Returns the number of replicated objects managed by the frontend. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteObjectMapping()
public RemoteObjectMapping(boolean isReplicated, RemoteObjectReference ror)
isReplicated
- Is the replication being used.ror
- The RemoteObjectReference of the front end.Method Detail |
---|
public RemoteObjectReference getFrontEndROR()
public java.net.InetAddress getFrontEndAddress()
public void setFrontEndAddress(java.net.InetAddress frontEndAddress)
frontEndAddress
- The frontEnd address to set.public int getFrontEndPort()
public void setFrontEndPort(int frontEndPort)
frontEndPort
- The frontEndPort to set.public void setFrontEnd(java.net.InetAddress address, int port)
address
- The IP address of the front end.port
- The port number of the front end.public java.util.Vector getRemoteObjects()
public void setReplicatedObjects(java.util.Vector<RemoteObjectReference> replicateObjects)
replicateObjects
- The replicateObjects to set.public void addRemoteObject(RemoteObjectReference ror)
ror
- The remote object reference for a remote object.public void removeRemoteObject(RemoteObjectReference ror)
ror
- The remote object reference to be removed.public boolean isReplicated()
public void setReplicated(boolean isReplicated)
isReplicated
- public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |