com.lightdev.app.trec.client
Class AgentAddress

java.lang.Object
  extended by com.lightdev.app.trec.client.AgentAddress
All Implemented Interfaces:
Serializable

public class AgentAddress
extends Object
implements Serializable

Address of an agent in the context of the Light Development Transparent Remote Computing (TREC) platform.

A Server typically holds handlers for client requests which are called 'agents'. Agents are identified by a name unique in the list of agents of the respective server.

Version:
2, 31.12.2005
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software
See Also:
Server, Serialized Form

Constructor Summary
AgentAddress(ServerAddress serverAddress, String agentName)
          create a new agent address
 
Method Summary
 String getAgentName()
          get the name of the agent
 ServerAddress getServerAddress()
          get the server address of this agent address
 void setAgentName(String agentName)
          set the agent name
 void setServerAddress(ServerAddress serverAddress)
          set the server address of this agent address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentAddress

public AgentAddress(ServerAddress serverAddress,
                    String agentName)
create a new agent address

Parameters:
serverAddress - address of the server the agent is hosted by
agentName - name of agent
Method Detail

getAgentName

public String getAgentName()
get the name of the agent

Returns:
the agent name in this address

setAgentName

public void setAgentName(String agentName)
set the agent name

Parameters:
agentName - name to set this agent address to

setServerAddress

public void setServerAddress(ServerAddress serverAddress)
set the server address of this agent address

Parameters:
serverAddress - te server address to set

getServerAddress

public ServerAddress getServerAddress()
get the server address of this agent address

Returns:
the server address