org.rhq.core.clientapi.server.core
Class AgentRegistrationResults

java.lang.Object
  extended by org.rhq.core.clientapi.server.core.AgentRegistrationResults
All Implemented Interfaces:
Serializable

public class AgentRegistrationResults
extends Object
implements Serializable

These are the results of a successful agent registration. After the agent has been registered by the server, this object will contain the identification information assigned to the agent by the server. It will also contain the list of servers this agent can fail over to an in high availability setup.

See Also:
Serialized Form

Constructor Summary
AgentRegistrationResults()
           
 
Method Summary
 String getAgentToken()
          The agent token that the agent must use in order to communicate with the server in the future.
 FailoverListComposite getFailoverList()
          The FailoverListComposite that the agent must use in order to communicate with the server in the future.
 void setAgentToken(String token)
          See getAgentToken().
 void setFailoverList(FailoverListComposite failoverList)
          See getFailoverList().
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentRegistrationResults

public AgentRegistrationResults()
Method Detail

getAgentToken

public String getAgentToken()
The agent token that the agent must use in order to communicate with the server in the future.

Returns:
the agent's token assigned to it by the server

setAgentToken

public void setAgentToken(String token)
See getAgentToken().

Parameters:
token -

getFailoverList

public FailoverListComposite getFailoverList()
The FailoverListComposite that the agent must use in order to communicate with the server in the future.

Returns:
the FailoverListComposite assigned to it by the server (will not be null but may be empty)

setFailoverList

public void setFailoverList(FailoverListComposite failoverList)
See getFailoverList().

Parameters:
failoverList -

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.