|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--springs.context.ContextManager_RMIImpl
An implementation of a ContextManager using RMI.
Constructor Summary | |
ContextManager_RMIImpl()
Constructor. |
Method Summary | |
void |
addContext(springs.context.ContextAddress context)
Adds a context to the list of contexts in the system. |
void |
createAgent(springs.agent.SpringsAgent agent,
boolean isMoving)
Creates an agent. |
springs.access.AgentReference |
getReference(java.lang.String agentName,
springs.context.ContextAddress addressPetitioner,
boolean addAsObserver)
Obtains a reference to the given agent. |
int |
ping()
Pings the context. |
void |
receiveContexts(java.util.Hashtable contexts)
Receives information about the contexts in the system. |
void |
removeContext(java.lang.String contextName)
Removes a context from the list of contexts in the system. |
void |
updateReferences(java.util.Vector referenceUpdates)
Receives an update of references. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextManager_RMIImpl() throws java.rmi.RemoteException
Method Detail |
public void createAgent(springs.agent.SpringsAgent agent, boolean isMoving) throws CreationException
ContextManager
createAgent
in interface ContextManager
agent
- the agent.isMoving
- a boolean indicating if the agent is sent because of a movement from another
context.
CreationException
SpringsAgent
,
String
,
Vector
,
CreationException
,
RemoteException
public springs.access.AgentReference getReference(java.lang.String agentName, springs.context.ContextAddress addressPetitioner, boolean addAsObserver) throws AgentNotFoundException
ContextManager
getReference
in interface ContextManager
agentName
- the name of the agent.addressPetitioner
- the address of the context that requests the reference.addAsObserver
- a boolean indicating whether the agent must be added as an observer.
AgentNotFoundException
AgentReference
,
String
,
ContextAddress
,
AgentNotFoundException
,
RemoteException
public void updateReferences(java.util.Vector referenceUpdates)
ContextManager
updateReferences
in interface ContextManager
Vector
,
RemoteException
public void receiveContexts(java.util.Hashtable contexts)
ContextManager
receiveContexts
in interface ContextManager
contexts
- a table consisting of pairs Hashtable
,
RemoteException
public void addContext(springs.context.ContextAddress context) throws java.rmi.RemoteException
ContextManager
addContext
in interface ContextManager
context
- the context.
java.rmi.RemoteException
ContextAddress
,
RemoteException
public void removeContext(java.lang.String contextName) throws java.rmi.RemoteException
ContextManager
removeContext
in interface ContextManager
contextName
- the name of the context.
java.rmi.RemoteException
String
,
RemoteException
public int ping()
ContextManager
ping
in interface ContextManager
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |