|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to the Region Name Server.
Method Summary | |
java.util.Vector |
addAgent(java.lang.String agentName,
springs.context.ContextAddress ca)
Adds a new agent to the region. |
java.util.Hashtable |
addContext(springs.context.ContextAddress ca)
Adds a new context to the region. |
springs.rns.SearchingInformation |
getSearchingInformation(java.lang.String agentName,
springs.context.ContextAddress ca)
Obtains the searching information for an agent. |
void |
printAgents()
Prints the agents registered. |
void |
printContexts()
Prints the contexts registered. |
void |
printLocationServersFor(java.lang.String agentName)
Prints the contexts that are location servers for the given agent. |
void |
removeAgent(java.lang.String agentName,
springs.context.ContextAddress ca)
Removes an agent from the region. |
void |
removeContext(java.lang.String cn,
java.util.Collection localAgents)
Removes a new context to the region. |
Method Detail |
public java.util.Hashtable addContext(springs.context.ContextAddress ca) throws AlreadyExistingContextException, java.rmi.RemoteException
ca
- the address of the context to add.
ContextAlreadyExistingException
- if the context already exists.
AlreadyExistingContextException
java.rmi.RemoteException
Hashtable
,
ContextAddress
,
AlreadyExistingContextException
public void removeContext(java.lang.String cn, java.util.Collection localAgents) throws PermissionException, java.rmi.RemoteException
cn
- the name of the context to remove.localAgents
- the agents executing on the given context.
PermissionException
- if the operation cannot be performed.
java.rmi.RemoteException
String
,
PermissionException
public java.util.Vector addAgent(java.lang.String agentName, springs.context.ContextAddress ca) throws AlreadyExistingAgentException, PermissionException, java.rmi.RemoteException
agentName
- the name of the agent.ca
- the address of the context where the agent is created.
AlreadyExistingAgentException
- if the agent already exists.
PermissionException
- if the operation cannot be performed.
java.rmi.RemoteException
Vector
,
String
,
ContextAddress
,
AlreadyExistingAgentException
,
PermissionException
public void removeAgent(java.lang.String agentName, springs.context.ContextAddress ca) throws PermissionException, java.rmi.RemoteException
agentName
- the name of the agent.ca
- the address of the context that requests the operation.
PermissionException
- if the operation cannot be performed.
java.rmi.RemoteException
String
,
ContextAddress
,
PermissionException
public springs.rns.SearchingInformation getSearchingInformation(java.lang.String agentName, springs.context.ContextAddress ca) throws AgentNotFoundException, PermissionException, java.rmi.RemoteException
agentName
- the name of the agent.ca
- the address of the context that requests the operation.
PermissionException
- if the operation cannot be performed.
AgentNotFoundException
- if the agent cannot be found.
java.rmi.RemoteException
SearchingInformation
,
String
,
ContextAddress
,
PermissionException
,
AgentNotFoundException
public void printLocationServersFor(java.lang.String agentName) throws java.rmi.RemoteException
agentName
- the name of the agent.
java.rmi.RemoteException
String
public void printAgents() throws java.rmi.RemoteException
java.rmi.RemoteException
public void printContexts() throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |