|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The remotely callable interface supported by all agent servers. Unauthenticated versions of recall, retract and terminate are currently included in the interface for testing/convenience only. They will be removed from here, and changed to private functions within the AgentServer class.
Method Summary | |
ajanta.util.Ticket |
authenticate(ajanta.naming.URN caller,
int nonce,
ajanta.util.ContextObject context)
It is used to obtain ticket from this server from a remote site. |
java.lang.String |
ping()
Returns Agent Server Status. |
void |
recall(ajanta.naming.URN target,
ajanta.naming.URN reportTo,
ajanta.util.Ticket t)
It is used to recall an agent ...which basically allow an agent to complete its task at the current server and upon completion migate it to the reportTo server ( but it aborts its prespecifed itinerary). |
void |
recall(ajanta.naming.URN target,
ajanta.naming.URN caller,
ajanta.naming.URN reportTo)
It is used to recall an agent ...which basically allow an agent to complete its task at the current server ( but it aborts its prespecifed itinerary) and upon completion migate it to the reportTo server. |
void |
retract(ajanta.naming.URN target,
ajanta.naming.URN reportTo,
ajanta.util.Ticket t)
It is used to retract an agent ...it preempts the agent from its current task and its prespecifed itinerary. |
void |
retract(ajanta.naming.URN target,
ajanta.naming.URN caller,
ajanta.naming.URN reportTo)
It is used to retract an agent ...it preempts the agent from its current task and its prespecified itinerary. |
void |
terminate(ajanta.naming.URN target)
It is used to abort an agent ...it immediately kill the agent. |
void |
terminate(ajanta.naming.URN target,
ajanta.util.Ticket t)
It is used to abort an agent ...it immediately kills the agent. |
ajanta.naming.URN |
whoAreYou()
A simple method in the AServer interface, for obtaining an agent server's URN |
Method Detail |
public ajanta.naming.URN whoAreYou() throws java.rmi.RemoteException
java.rmi.RemoteException
public ajanta.util.Ticket authenticate(ajanta.naming.URN caller, int nonce, ajanta.util.ContextObject context) throws java.rmi.RemoteException
caller
- caller identity( URN )nonce
- random number used as challenge
java.rmi.RemoteException
public void recall(ajanta.naming.URN target, ajanta.naming.URN caller, ajanta.naming.URN reportTo) throws java.rmi.RemoteException
target
- URN of the agent to be relocatedreportTo
- URN of the entity to whom agent has to report
java.rmi.RemoteException
public void recall(ajanta.naming.URN target, ajanta.naming.URN reportTo, ajanta.util.Ticket t) throws java.rmi.RemoteException, java.security.InvalidKeyException, java.security.SignatureException
AServer targetServer = getAgentCurrentServer( agentURN ); Ticket ticket = remoteServerTicket ( targetServer, myURN , 3000, dsa_priv ); recall (agentURN , myURN , ticket )
target
- URN of the agent to be relocatedreportTo
- URN of the entity to whom agent has to reportt
- ticket obtained from the remote server
java.rmi.RemoteException
java.security.InvalidKeyException
java.security.SignatureException
public void retract(ajanta.naming.URN target, ajanta.naming.URN caller, ajanta.naming.URN reportTo) throws java.rmi.RemoteException
target
- URN of the agent to be relocatedreportTo
- URN of the entity to whom agent has to report
java.rmi.RemoteException
public void retract(ajanta.naming.URN target, ajanta.naming.URN reportTo, ajanta.util.Ticket t) throws java.rmi.RemoteException, java.security.InvalidKeyException, java.security.SignatureException
AServer targetServer = getAgentCurrentServer( agentURN ); Ticket ticket = remoteServerTicket ( targetServer, myURN , 3000, dsa_priv ); retract (agentURN , myURN , ticket )
target
- URN of the agent to be retractedreportTo
- URN of the entity to whom agent has to reportt
- ticket obtained from the remote server
java.rmi.RemoteException
java.security.InvalidKeyException
java.security.SignatureException
public void terminate(ajanta.naming.URN target) throws java.rmi.RemoteException
target
- URN of the agent to be terminated
java.rmi.RemoteException
public void terminate(ajanta.naming.URN target, ajanta.util.Ticket t) throws java.rmi.RemoteException, java.security.InvalidKeyException, java.security.SignatureException
AServer targetServer = getAgentCurrentServer( agentURN ); Ticket ticket = remoteServerTicket ( targetServer, myURN , 3000, dsa_priv ); terminate (agentURN , ticket )
target
- URN of the agent to be terminated
java.rmi.RemoteException
java.security.InvalidKeyException
java.security.SignatureException
public java.lang.String ping() throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |