Open xuyanjun opened 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
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.