|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AgentScape
| Method Summary | |
|---|---|
AgentHandle |
cloneAgent()
|
int |
createAgent(byte[] agentCode)
|
int |
createAgent(byte[] agentCode,
java.lang.String leaseIdentifier)
|
AgentHandle |
createAgentHandle()
|
AgentStore |
createStore(java.lang.String description,
byte[] data)
Create Agent store |
java.util.Hashtable |
find(java.lang.String key,
java.lang.String value)
|
AgentHandle |
getAgentHandle()
|
AgentHandle |
getAgentHandle(java.net.URL locationService)
|
java.net.URL |
getAgentServer()
|
AgentScapeID |
getLocationId()
|
int |
getMyCPUtime()
|
AgentStore |
getStore(int segmentID)
Get agent store from segment (if possible). |
AgentStore[] |
getStores()
Get all the stores of an agent. |
AgentStore[] |
getStores(java.lang.String description)
Get all the stores of an agent with matching description. |
boolean |
isActive(AgentHandle agentHandle)
|
boolean |
isLifeCycleState(AgentHandle agentHandle,
int type)
|
void |
kill()
|
java.util.Hashtable |
list(java.lang.String key)
|
java.util.Hashtable |
lookup(java.lang.String identifier)
|
int |
move(AgentScapeID locationId)
|
int |
move(AgentScapeID locationId,
java.lang.String leaseIdentifier)
|
byte[] |
receiveMessage(boolean block)
|
byte[][] |
receiveMessages(boolean block)
|
long |
register(java.lang.String identifier,
java.lang.String key,
java.lang.String value,
float duration)
|
int |
requestWSDLAccess(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
boolean exclTransport)
|
void |
sendMessage(AgentHandle agentHandle,
byte[] message)
|
void |
sendMessages(java.util.List<AgentHandle> ahs,
java.util.List<byte[]> messages)
|
java.lang.String |
sendSOAPRequest(java.lang.String request,
java.lang.String portName,
int leaseID)
|
int |
suspend(long timeout)
|
| Methods inherited from interface org.iids.aos.agent.AgentNegotiationLibInterface |
|---|
acceptLease, requestLease, requestLeaseStatus, requestTemplates |
| Method Detail |
|---|
long register(java.lang.String identifier,
java.lang.String key,
java.lang.String value,
float duration)
java.util.Hashtable lookup(java.lang.String identifier)
java.util.Hashtable find(java.lang.String key,
java.lang.String value)
java.util.Hashtable list(java.lang.String key)
int createAgent(byte[] agentCode,
java.lang.String leaseIdentifier)
throws java.lang.Exception
java.lang.Exception
int createAgent(byte[] agentCode)
throws java.lang.Exception
java.lang.ExceptionAgentHandle cloneAgent()
int suspend(long timeout)
void kill()
int move(AgentScapeID locationId,
java.lang.String leaseIdentifier)
int move(AgentScapeID locationId)
void sendMessage(AgentHandle agentHandle,
byte[] message)
throws MessageBufferOverflowException
MessageBufferOverflowException
void sendMessages(java.util.List<AgentHandle> ahs,
java.util.List<byte[]> messages)
throws MessageBufferOverflowException
MessageBufferOverflowExceptionbyte[] receiveMessage(boolean block)
byte[][] receiveMessages(boolean block)
AgentHandle getAgentHandle()
AgentHandle createAgentHandle()
AgentHandle getAgentHandle(java.net.URL locationService)
boolean isActive(AgentHandle agentHandle)
boolean isLifeCycleState(AgentHandle agentHandle,
int type)
AgentScapeID getLocationId()
java.net.URL getAgentServer()
int getMyCPUtime()
int requestWSDLAccess(java.lang.String wsdl,
java.lang.String serviceName,
java.lang.String serviceNameSpace,
boolean exclTransport)
throws java.net.MalformedURLException,
CouldNotParseWSDL,
NoExclusiveTransport
java.net.MalformedURLException
CouldNotParseWSDL
NoExclusiveTransportWSGateway
java.lang.String sendSOAPRequest(java.lang.String request,
java.lang.String portName,
int leaseID)
throws LeaseExpired,
UnknownPort,
MalformedSOAPRequest,
java.rmi.RemoteException
LeaseExpired
UnknownPort
MalformedSOAPRequest
java.rmi.RemoteExceptionWSGateway
AgentStore createStore(java.lang.String description,
byte[] data)
throws KernelException
Agent store
description - Meta-data (description) of store.data - Data that will go in the store.
KernelException - if the AgentScape kernel cannot create
a storage segment for this agent.AgentStore[] getStores(java.lang.String description)
description - The store description to look for.
AgentStore[] getStores()
AgentStore getStore(int segmentID)
throws UnknownStoreIDException
segmentID - The kernel segment ID of this store.
UnknownStoreIDException - If there is no agent store in
the segment segmentID.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||