|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.iids.aos.api.AgentScapeApiRmiServer
public class AgentScapeApiRmiServer
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Fields inherited from interface org.iids.aos.api.AgentScapeApi |
|---|
RMINAME, SVCNAME |
| Method Summary | |
|---|---|
AgreementOffer |
acceptLease(AgentScapeID location,
java.lang.String leaseId)
Accept lease. |
AgentInfo |
createAgent(AgentScapeID location,
AgentArchive arch)
Create new agent from agent archive, without lease negotiation. |
AgentInfo |
createAgent(AgentScapeID location,
Language lang)
Create a new agent. |
AgentInfo |
createAgent(java.lang.String lease,
AgentArchive arch)
Create a new agent from archive and pre-negotiated lease. |
AgentHandle |
createAgentHandle(AgentHandle handle)
Creates new handle (alias) for an existing agent. |
void |
deleteCodeSegment(AgentHandle handle,
AgentCodeSegment segment)
Delete code segment from agent. |
void |
deleteDataSegment(AgentHandle handle,
AgentDataSegment segment)
Delete data segment from agent. |
AgentArchive |
exportAgent(AgentHandle handle)
Export current agent state (from agent container) to an AgentArchive. |
java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.util.Vector<java.util.Vector<java.lang.Object>>>> |
find(java.lang.String key,
java.lang.String value)
|
AgentHandle[] |
getAgentHandles(AgentHandle handle)
Get agent handles belonging to an agent. |
static java.lang.String |
getGenericRmiUrl()
|
static java.lang.String |
getHostRmiUrl(AgentScapeConfig config)
Will return the host specific RMI url. |
static AgentScapeApiRmiServer |
getInstance()
|
void |
killAgent(AgentHandle handle)
Kill a specific agent. |
void |
killAgent(AgentID id)
Note: Only for administrative/debugging purposes. |
java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.util.Vector<java.util.Vector<java.lang.Object>>>> |
list(java.lang.String key)
|
java.util.List<AgentHandle> |
listAgentHandles(AgentID id)
List all agenthandles of this agent. |
java.util.HashMap<AgentScapeID,java.util.List<AgentID>> |
listAgents(AgentScapeID location)
List all agents running on a particular location. |
AgentCodeSegment[] |
listCodeSegments(AgentHandle handle)
Obtain a list of all code segments stored in the agent container. |
AgentDataSegment[] |
listDataSegments(AgentHandle handle)
Obtain a list of all data segments stored in the agent container. |
java.util.Hashtable<java.lang.String,java.util.Vector<java.util.Vector<java.lang.Object>>> |
lookup(java.lang.String identifier)
|
void |
moveAgent(AgentHandle handle,
AgentScapeID targetLocation)
Migrate agent identified with 'handle' to location targetLocation. |
void |
moveAgent(AgentHandle handle,
AgentScapeID location,
java.lang.String lease)
Migrate agent identified with 'handle' to location as contained in the (previously established) lease. |
byte[] |
readCodeSegment(AgentHandle handle,
AgentCodeSegment segment)
Read code segment. |
byte[] |
readDataSegment(AgentHandle handle,
AgentDataSegment segment)
Read data segment. |
Envelope |
receiveMessage(AgentHandle handle,
boolean block)
Receive a message from a single handle only. |
Envelope |
receiveMessage(AgentHandle handle,
java.util.List<AgentHandle> handles,
boolean block)
Receive message from queue, addressed to a set of the handles that the agent owns. |
Envelope[] |
receiveMessages(AgentHandle handle,
java.util.List<AgentHandle> handles,
boolean block)
Receive messages from queue, addressed to some of the handles that the agent owns. |
long |
register(java.lang.String identifier,
java.lang.String key,
java.lang.String value,
float duration)
|
void |
removeAgentHandle(AgentHandle handle)
Shortcut for removeAgentHandle(handle, false). |
java.util.List<Envelope> |
removeAgentHandle(AgentHandle handle,
boolean pickup)
Remove a handle from an existing agent. |
AgreementOffer |
requestLease(AgentScapeID location,
AgreementOffer leaseRequest)
Pass on lease request for given resource request to location manager on the location location. |
TemplateList |
requestTemplates(AgentScapeID location)
Request a list of available templates from a location. |
void |
sendMessage(Envelope envelope)
Send a message to another agent. |
void |
sendMessages(java.util.List<Envelope> envelopes)
|
void |
setDefaultCodeSegment(AgentHandle handle,
AgentCodeSegment active)
Set which code segment to run next time the agent starts or moves. |
void |
startAgent(AgentHandle handle,
boolean collect,
java.lang.String... args)
Start running the agent. |
void |
startAgent(AgentHandle handle,
java.lang.String... args)
Shortcut for startAgent(handle,false,args) |
AgentArchive |
waitForAgent(AgentHandle handle,
boolean collect)
Wait for agent to be finished, then export it back to the owner as an agent archive. |
AgentCodeSegment |
writeCodeSegment(AgentHandle handle,
AgentCodeSegment codeSegment,
byte[] code)
Write contents of a code segment to the agent container. |
AgentCodeSegment |
writeCodeSegment(AgentHandle handle,
java.lang.String description,
Language lang,
byte[] code)
Shortcut for writeCodeSegment(handle,new
AgentCodeSegment(description, language), code). |
AgentDataSegment |
writeDataSegment(AgentHandle handle,
AgentDataSegment dataSegment,
byte[] data)
Write bytes to a data segment. |
AgentDataSegment |
writeDataSegment(AgentHandle handle,
java.lang.String description,
java.lang.String subtype,
byte[] data)
Shortcut for writeDataSegment(handle,new AgentDataSegment(
description, subtype), data). |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AgentScapeApiRmiServer getInstance()
public static java.lang.String getGenericRmiUrl()
public static java.lang.String getHostRmiUrl(AgentScapeConfig config)
config - Configuration to generate host specific URL from
null if config == null.
public AgentInfo createAgent(AgentScapeID location,
AgentArchive arch)
throws java.rmi.RemoteException,
LocationUnknownException,
AgentArchiveException,
NegotiationLibException,
AgentCreationException
AgentScapeApiThis automatically creates a new handle (and ID) for the new agent, and fills its agent container with the contents of the archive. After this call returns successfully, it is possible to start the agent, if the contents of the archive results in a runnable agent.
Lease negotiation is done automatically (if the archive has a default code segment) to select a suitable host on the target location.
Note that (in theory) it is also possible to add code and data segments to the agent even after this call is done. The AgentArchive provided is merely a starting point for the filling in of these segment. Depending on the contents of the archive and the needs of the agent programmer, this may or may not be enough to start the agent. It is however, a little problematic to alter things like (default) code segments after creating the agent, so treat with care.
createAgent in interface AgentScapeApilocation - The target location to run the agent on.arch - The contents of the new agent.
java.rmi.RemoteException - Error performing remote method invocation.
LocationUnknownException - Location not found.
AgentArchiveException - Problem with interpreting archive, or no (default) code segment
found in the archive.
NegotiationLibException - No environment for required language on the target location.
AgentCreationException
public AgentInfo createAgent(AgentScapeID location,
Language lang)
throws java.rmi.RemoteException,
LocationUnknownException,
AgentCreationException
AgentScapeApiThe newly created agent will be placed on a host in 'location'. An agent server is selected according to the preferred language for the new agent.
createAgent in interface AgentScapeApilocation - Target location of the new agent.lang - Language requirement of the new agent.
java.rmi.RemoteException - Error performing remote method invocation.
LocationUnknownException - Target location unknown.
AgentCreationException
public AgentInfo createAgent(java.lang.String lease,
AgentArchive arch)
throws java.rmi.RemoteException,
NegotiationLibException,
AgentArchiveException
AgentScapeApiI don't know if this case is really useful, because one has to create a lease before starting the archive. Currently, negotiation deals with environment resources (i.e. agent server) only.
NOTE: this will only be implemented if it is possible to negotiate a lease before creating an agent ID.
createAgent in interface AgentScapeApilease - Pre-negotiated lease for agent.arch - The contents of the new agent.
AgentHandles.
java.rmi.RemoteException - Error performing remote method invocation.
NegotiationLibException - Lease negotiation error.
AgentArchiveException - Problem with interpreting archive.
public AgentHandle createAgentHandle(AgentHandle handle)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApi
createAgentHandle in interface AgentScapeApihandle - Agent handle to create alias for.
AgentHandle for the agent.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
public java.util.List<Envelope> removeAgentHandle(AgentHandle handle,
boolean pickup)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApi
removeAgentHandle in interface AgentScapeApihandle - The handle to removepickup - If this is true then all pending undelivered
messages are returned. Otherwise these are discarded.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
public void removeAgentHandle(AgentHandle handle)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApi
removeAgentHandle in interface AgentScapeApijava.rmi.RemoteException
AgentUnknownExceptionremoveAgentHandle
public AgentHandle[] getAgentHandles(AgentHandle handle)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApiObtains a list of all handles belonging to an agent. Each agent has at least two handles: owner and primary handle.
getAgentHandles in interface AgentScapeApihandle - An already existing AgentHandle.
AgentHandle associated with this agent.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
public TemplateList requestTemplates(AgentScapeID location)
throws java.rmi.RemoteException,
NegotiationLibException,
LocationUnknownException
AgentScapeApi
requestTemplates in interface AgentScapeApilocation - The location to request the templates from.
java.rmi.RemoteException - Error performing remote method invocation.
NegotiationLibException - Any negotiation library exception.
LocationUnknownException - Location unknown.
public AgreementOffer requestLease(AgentScapeID location,
AgreementOffer leaseRequest)
throws java.rmi.RemoteException,
NegotiationLibException,
LocationUnknownException
AgentScapeApi
requestLease in interface AgentScapeApilocation - Target location which to request lease from.leaseRequest - Filled in lease request document.
java.rmi.RemoteException - Error performing remote method invocation.
NegotiationLibException - Error with lease negotiation.
LocationUnknownException - Target location unknown.
public AgreementOffer acceptLease(AgentScapeID location,
java.lang.String leaseId)
throws java.rmi.RemoteException,
NegotiationLibException,
LocationUnknownException
AgentScapeApiAccept lease offer at location manager.
acceptLease in interface AgentScapeApilocation - Target location which to accept lease from.leaseId - The leaseid of the offer that is accepted.
java.rmi.RemoteException - Error performing remote method invocation.
NegotiationLibException - Lease negotiation error.
LocationUnknownException - Target location unknown.
public void startAgent(AgentHandle handle,
boolean collect,
java.lang.String... args)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentStartupException
AgentScapeApiThe hostmanager running this agent is informed that it can now startup the agent belonging to this agenthandle.
startAgent in interface AgentScapeApihandle - The agent to run.collect - Intention to collect agent once it is done.args - Optional arguments to the agent.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
AgentStartupException - If there is no (appropriate) code segment to start the agent on the
(negotiated) host/agentserver.
public void startAgent(AgentHandle handle,
java.lang.String... args)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentStartupException
AgentScapeApistartAgent(handle,false,args)
startAgent in interface AgentScapeApijava.rmi.RemoteException
AgentUnknownException
AgentStartupExceptionstartAgent
public void killAgent(AgentHandle handle)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApi
killAgent in interface AgentScapeApihandle - handle of agent to kill.
java.rmi.RemoteException
AgentUnknownException
public AgentCodeSegment writeCodeSegment(AgentHandle handle,
AgentCodeSegment codeSegment,
byte[] code)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApiIf no segment existed with the given code segment ID then it is created. Otherwise the previous contents are overwritten by the code passed to this method.
writeCodeSegment in interface AgentScapeApihandle - The AgentHandle of the agent to store code for.codeSegment - Segment identifier to store code.code - The new contents of the code segment.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
AgentContainerException - Problem storing data in agent container.
public AgentCodeSegment writeCodeSegment(AgentHandle handle,
java.lang.String description,
Language lang,
byte[] code)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApiwriteCodeSegment(handle,new
AgentCodeSegment(description, language), code).
writeCodeSegment in interface AgentScapeApijava.rmi.RemoteException
AgentUnknownException
AgentContainerExceptionwriteCodeSegment
public AgentDataSegment writeDataSegment(AgentHandle handle,
AgentDataSegment dataSegment,
byte[] data)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApi
After this method, the bytes are stored in the agent container of
the agent belonging to this agent. If a segment with a similar
AgentDataSegment existed before this call, then the contents
were overwritten with bytes. Data is part of the agent
container during its entire lifetime (including migration), except
when data is deleted using AgentScapeApi.deleteDataSegment(org.iids.aos.systemservices.communicator.structs.AgentHandle, org.iids.aos.agent.AgentDataSegment).
writeDataSegment in interface AgentScapeApihandle - The AgentHandle of the agent to write the data to.dataSegment - Description of the segment to write the data to.data - The data to write to the segment.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
AgentContainerException - Problem writing data to the agent container.
public AgentDataSegment writeDataSegment(AgentHandle handle,
java.lang.String description,
java.lang.String subtype,
byte[] data)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApiwriteDataSegment(handle,new AgentDataSegment(
description, subtype), data).
writeDataSegment in interface AgentScapeApijava.rmi.RemoteException
AgentUnknownException
AgentContainerExceptionwriteDataSegment
public byte[] readCodeSegment(AgentHandle handle,
AgentCodeSegment segment)
throws java.rmi.RemoteException,
SegmentUnknownException,
AgentUnknownException,
AgentContainerException
AgentScapeApi
Data is read from the agent container of the agent associated with
handle. The data from segment codeSeg is read.
readCodeSegment in interface AgentScapeApihandle - An AgentHandle of the agent to read data from.segment - Description of the segment to read from.
java.rmi.RemoteException - Error performing remote method invocation.
SegmentUnknownException - If segment is not known for this agent.
AgentUnknownException - The AgentHandle is not known in this world.
AgentContainerException - Problem reading code segment.
public byte[] readDataSegment(AgentHandle handle,
AgentDataSegment segment)
throws java.rmi.RemoteException,
SegmentUnknownException,
AgentUnknownException,
AgentContainerException
AgentScapeApi
Data is read from the agent container of the agent associated with
handle. The data from segment dataSeg is read.
readDataSegment in interface AgentScapeApihandle - An AgentHandle of the agent to read data from.segment - Description of the segment to read from.
java.rmi.RemoteException - Error performing remote method invocation.
SegmentUnknownException - If segment is not known for this agent.
AgentUnknownException - The AgentHandle is not known in this world.
AgentContainerException - Problem reading data segment.
public void setDefaultCodeSegment(AgentHandle handle,
AgentCodeSegment active)
throws java.rmi.RemoteException,
AgentUnknownException,
SegmentUnknownException,
AgentContainerException
AgentScapeApi
setDefaultCodeSegment in interface AgentScapeApihandle - An AgentHandle of the agent to set the code segment.active - Agent code segment identifier of new active segment.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
SegmentUnknownException - If segment is not known for this agent.
AgentContainerException - Problem setting default code segment.
public AgentCodeSegment[] listCodeSegments(AgentHandle handle)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApi
listCodeSegments in interface AgentScapeApihandle - Agent identifier.
AgentUnknownException - The AgentHandle is not known in this world.
java.rmi.RemoteException
AgentContainerException
public AgentDataSegment[] listDataSegments(AgentHandle handle)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApi
listDataSegments in interface AgentScapeApihandle - Agent handle.
AgentUnknownException - The AgentHandle is not known in this world.
java.rmi.RemoteException
AgentContainerException
public void deleteCodeSegment(AgentHandle handle,
AgentCodeSegment segment)
throws java.rmi.RemoteException,
AgentUnknownException,
SegmentUnknownException,
AgentContainerException
AgentScapeApiAfter this call, the data in the deleted segment is not available to the agent anymore. If the default code segment was deleted then a new one must be set manually otherwise any subsequent migration or startup will (most likely) fail.
deleteCodeSegment in interface AgentScapeApihandle - Agent identifier.
AgentUnknownException - The AgentHandle is not known in this world.
SegmentUnknownException - Segment unknown.
java.rmi.RemoteException
AgentContainerException
public void deleteDataSegment(AgentHandle handle,
AgentDataSegment segment)
throws java.rmi.RemoteException,
AgentUnknownException,
SegmentUnknownException,
AgentContainerException
AgentScapeApi
deleteDataSegment in interface AgentScapeApijava.rmi.RemoteException
AgentUnknownException
SegmentUnknownException
AgentContainerExceptionAgentScapeApi.deleteCodeSegment(org.iids.aos.systemservices.communicator.structs.AgentHandle, org.iids.aos.agent.AgentCodeSegment)
public void moveAgent(AgentHandle handle,
AgentScapeID targetLocation)
throws java.rmi.RemoteException,
AgentUnknownException,
LocationUnknownException,
AgentStartupException,
MigrationFailedException
AgentScapeApiLease negotiation of the target host is done automatically. If the negotiation fails for some reason, then the migration cannot be done.
moveAgent in interface AgentScapeApihandle - Agent identifier.targetLocation - Target location to move to.
AgentUnknownException - The AgentHandle is not known in this world.
LocationUnknownException - Target location unknown.
java.rmi.RemoteException
AgentStartupException
MigrationFailedException
public void moveAgent(AgentHandle handle,
AgentScapeID location,
java.lang.String lease)
throws java.rmi.RemoteException,
NegotiationLibException,
AgentUnknownException,
AgentStartupException,
MigrationFailedException
AgentScapeApi
moveAgent in interface AgentScapeApihandle - Agent identifier.location - Target location to move to.lease - Lease identifier indicating target location.
NegotiationLibException - Problem with lease identifier.
AgentUnknownException - The AgentHandle is not known in this world.
AgentStartupException - Agent cannot run on target location.
java.rmi.RemoteException
MigrationFailedException
public void sendMessage(Envelope envelope)
throws java.rmi.RemoteException,
MessageException
AgentScapeApiThe receiving agent will see as message source the handle that was used to send this message, even though an agent can in practice have more than one handle.
This method is MT-Safe.
sendMessage in interface AgentScapeApienvelope - Envelope to send, containing information as to where the envelope
should be sent from and to.
java.rmi.RemoteException - Error performing remote method invocation.
MessageException - If sending an array of messages fails. The MessageException
contains the index of the message that fails and the real
exception as the cause. All messages after the exception has occurred
will not have been sent; the ones before have been sent.
public void sendMessages(java.util.List<Envelope> envelopes)
throws java.rmi.RemoteException,
MessageException
sendMessages in interface AgentScapeApijava.rmi.RemoteException
MessageExceptionsendMessage
public Envelope receiveMessage(AgentHandle handle,
java.util.List<AgentHandle> handles,
boolean block)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApi
An agent can have various handles associated with it. Any handle that
the agent owns can be used to call this method. The message that will
be received is only one addressed to any one of the handles in
the list handles.
This method is MT-safe. However, a message will only be delivered _once_ (i.e., to one thread only) even if multiple threads are trying to receive messages for that particular handle.
receiveMessage in interface AgentScapeApihandle - Agent identifier to receive from.handles - List of handles where to receive messages from. This can be used to do
a single select for a number of aliases of a single handle.block - Block waiting for incoming message.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - (One of the) agent handle(s) unknown, or not all handles refer to
the same agent
public Envelope receiveMessage(AgentHandle handle,
boolean block)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApi
receiveMessage in interface AgentScapeApijava.rmi.RemoteException
AgentUnknownExceptionAgentScapeApi.receiveMessage(AgentHandle,List,boolean)
public Envelope[] receiveMessages(AgentHandle handle,
java.util.List<AgentHandle> handles,
boolean block)
throws java.rmi.RemoteException,
AgentUnknownException
AgentScapeApi
An agent can have various handles associated with it. Any handle that
the agent owns can be used to call this method. The messages that will
be received are only the ones sent to any of the handles in
the list handles.
This method is MT-safe. However, a message will only be delivered _once_ (i.e., to one thread only) even if multiple threads are trying to receive messages for that particular handle.
receiveMessages in interface AgentScapeApihandle - Agent identifier to receive from.handles - List of handles where to receive messages from.block - Block waiting for incoming message.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - (One of the) agent handle(s) unknown, or not all handles refer to the
same agent.
public AgentArchive waitForAgent(AgentHandle handle,
boolean collect)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApi
waitForAgent in interface AgentScapeApihandle - Agent to wait for.collect - If true then the AgentArchive is exported back. Otherwise, this
method returns null once the agent finishes.
java.rmi.RemoteException
AgentUnknownException
AgentContainerException
public AgentArchive exportAgent(AgentHandle handle)
throws java.rmi.RemoteException,
AgentUnknownException,
AgentContainerException
AgentScapeApiThe current state of the agent segments are stored in the archive, so that we now have a snapshot of the user data and code segments of the agent. This is not the same as finalizing an agent container, but merely a dump of the current state of the agent, so that its contents can be inspected offline. It may even be possible to start a new agent again using the archive obtained from this call.
If possible, also meta information like currently active code segment will be put in the archive. If this information is not found in the agent container, this call will still succeed.
Any changes done to the agent container after this call will not be noticed in the resulting archive.
exportAgent in interface AgentScapeApihandle - Agent identifier.
java.rmi.RemoteException - Error performing remote method invocation.
AgentUnknownException - The AgentHandle is not known in this world.
AgentContainerException
public java.util.HashMap<AgentScapeID,java.util.List<AgentID>> listAgents(AgentScapeID location)
throws java.rmi.RemoteException,
LocationUnknownException
AgentScapeApiNote: Only for administrative/debugging purposes.
listAgents in interface AgentScapeApilocation - AgentScape location
java.rmi.RemoteException
LocationUnknownException
public void killAgent(AgentID id)
throws java.rmi.RemoteException,
AgentIDUnknownException
AgentScapeApi
killAgent in interface AgentScapeApijava.rmi.RemoteException
AgentIDUnknownExceptionkillAgent
public java.util.List<AgentHandle> listAgentHandles(AgentID id)
throws java.rmi.RemoteException,
AgentIDUnknownException
AgentScapeApiAsking an agent handles is actually only permitted by the agent itself (or its owner). AgentID's are not publicly known.
listAgentHandles in interface AgentScapeApiid - AgentID of agent.
java.rmi.RemoteException
AgentIDUnknownException
public long register(java.lang.String identifier,
java.lang.String key,
java.lang.String value,
float duration)
throws java.rmi.RemoteException
register in interface AgentScapeApijava.rmi.RemoteException
public java.util.Hashtable<java.lang.String,java.util.Vector<java.util.Vector<java.lang.Object>>> lookup(java.lang.String identifier)
throws java.rmi.RemoteException
lookup in interface AgentScapeApijava.rmi.RemoteException
public java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.util.Vector<java.util.Vector<java.lang.Object>>>> find(java.lang.String key,
java.lang.String value)
throws java.rmi.RemoteException
find in interface AgentScapeApijava.rmi.RemoteException
public java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.util.Vector<java.util.Vector<java.lang.Object>>>> list(java.lang.String key)
throws java.rmi.RemoteException
list in interface AgentScapeApijava.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||