projectinfosearch
Interface AgentServerInt

All Known Implementing Classes:
AgentServer

public interface AgentServerInt

must be implemented by an AgentServer


Method Summary
 void agentMigrate(AgentObject agent, java.net.InetAddress dstAddr, int port)
          The agent wants to be sent to dstAddr and dstPort.
 java.util.Vector getFootprints()
          optional, not implemented
 java.util.Vector getResidingAgents()
          optional, not implemented
 java.util.Vector getServerNeighbors()
          This method creates a DiscoveryClient which will find the server's neighbors
 

Method Detail

getServerNeighbors

public java.util.Vector getServerNeighbors()
This method creates a DiscoveryClient which will find the server's neighbors
Returns:
a vector containing the neighbors

agentMigrate

public void agentMigrate(AgentObject agent,
                         java.net.InetAddress dstAddr,
                         int port)
The agent wants to be sent to dstAddr and dstPort. For this purpose a TCP connection is established. If the connection to another server is unsuccessful, the agent is sent home
Parameters:
agent - is the AgentObject which wants to migrate
dstAddress - is the destination InetAddress
dstport - is the destination port

getFootprints

public java.util.Vector getFootprints()
optional, not implemented

getResidingAgents

public java.util.Vector getResidingAgents()
optional, not implemented