Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.agent
Class AgentStartupCallback

java.lang.Object
  extended by org.hyperic.hq.agent.AgentStartupCallback

public class AgentStartupCallback
extends java.lang.Object

A callback class that notifies the starting entity (most likely the agent client) as to the startup status of the agent (success/failure).


Constructor Summary
AgentStartupCallback(AgentConfig config)
          Creates an instance.
 
Method Summary
protected  void finalize()
          Clean up resources just in case!
 void onAgentStartup(boolean succeeded)
          Notify the starting entity.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentStartupCallback

public AgentStartupCallback(AgentConfig config)
                     throws AgentConfigException,
                            java.io.IOException
Creates an instance.

Parameters:
config - The agent configuration.
Throws:
java.io.IOException - if the callback fails to establish a connection to the starting entity.
AgentConfigException
Method Detail

onAgentStartup

public void onAgentStartup(boolean succeeded)
Notify the starting entity.

Parameters:
succeeded - true if the agent startup succeeded; false if the agent startup failed.

finalize

protected void finalize()
                 throws java.lang.Throwable
Clean up resources just in case!

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.