CloudStack-extras / CloudStack-archive

DEPRECATED & read-only!! - This repo exists for GPL compliance only. CloudStack development has moved to the ASF - see http://cloudstack.apache.org/
253 stars 83 forks source link

param comment is wrong #17

Open xuyanjun opened 12 years ago

xuyanjun commented 12 years ago

void com.cloud.agent.Listener.processConnect(HostVO host, StartupCommand cmd, boolean forRebalance) throws ConnectionException

This method is called by AgentManager when an agent made a connection to this server if the listener has been registered for host events.

Parameters: cmd command sent by the agent to the server on startup. forRebalance TODO agentId id of the agent host Throws: ConnectionException - if host has problems and needs to put into maintenance state.

xuyanjun commented 12 years ago

boolean com.cloud.agent.StartupCommandProcessor.processInitialConnect(StartupCommand[] cmd) throws ConnectionException

This method is called by AgentManager when an agent made a connection to this server before the AgentManager knows about this agent

Parameters: agentId id of the agent cmd command sent by the agent to the server on startup. Returns: true if handled by the creator Throws: ConnectionException - if host has problems