|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.body.ft.servers.location.LocationServerImpl
An implementation of the LocationServer
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
LocationServerImpl(FTServer server)
|
Method Summary | |
java.util.ArrayList |
getAllLocations()
Return the list of locations of all registered bodies. |
UniversalBody |
getLocation(UniqueID id)
Return the current known location of a registred body. |
void |
initialize()
Reinit the state of the location server. |
UniversalBody |
searchObject(UniqueID id,
UniversalBody oldLocation,
UniqueID caller)
Return the current location of object id. |
void |
updateLocation(UniqueID id,
UniversalBody newLocation)
Set the new location of the active object identified by id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
Constructor Detail |
public LocationServerImpl(FTServer server)
Method Detail |
public UniversalBody searchObject(UniqueID id, UniversalBody oldLocation, UniqueID caller) throws java.rmi.RemoteException
LocationServer
searchObject
in interface LocationServer
id
- Unique id of the searched objectoldLocation
- last known location of the searched object
java.rmi.RemoteException
LocationServer.searchObject(org.objectweb.proactive.core.UniqueID, org.objectweb.proactive.core.body.UniversalBody, org.objectweb.proactive.core.UniqueID)
public void updateLocation(UniqueID id, UniversalBody newLocation) throws java.rmi.RemoteException
LocationServer
updateLocation
in interface LocationServer
id
- id of the callernewLocation
- new location of the caller. If this location is null,
the body id is removed from the location table.
java.rmi.RemoteException
LocationServer.updateLocation(org.objectweb.proactive.core.UniqueID, org.objectweb.proactive.core.body.UniversalBody)
public java.util.ArrayList getAllLocations() throws java.rmi.RemoteException
LocationServer
getAllLocations
in interface LocationServer
java.rmi.RemoteException
LocationServer.getAllLocations()
public UniversalBody getLocation(UniqueID id) throws java.rmi.RemoteException
LocationServer
getLocation
in interface LocationServer
java.rmi.RemoteException
LocationServer.getLocation(org.objectweb.proactive.core.UniqueID)
public void initialize() throws java.rmi.RemoteException
LocationServer
initialize
in interface LocationServer
java.rmi.RemoteException
LocationServer.initialize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |