Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.control.server.session
Class ServerRestartHandler

java.lang.Object
  extended by org.hyperic.hq.control.server.session.ServerRestartHandler

public class ServerRestartHandler
extends java.lang.Object

Handles a server restarted event by re-enabling Config/Log tracking of the server and its services (to re-subscribe JMX NotificationListeners). This handler will also perform a runtime scan (auto-discovery) for services in the server, as there may be new ones after server is restarted (like in the case of a tc Server config change that results in a new DataSource)


Constructor Summary
ServerRestartHandler(org.hyperic.hq.appdef.shared.ServerManagerLocal serverManager, org.hyperic.hq.appdef.shared.ConfigManagerLocal configManager, org.hyperic.hq.autoinventory.shared.AutoinventoryManagerLocal autoInvManager, org.hyperic.hq.measurement.shared.TrackerManagerLocal trackerManager)
           
 
Method Summary
 void serverRestarted(AppdefEntityID serverId)
          Handles a server restarted event
 void setStartDelay(long startDelay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRestartHandler

public ServerRestartHandler(org.hyperic.hq.appdef.shared.ServerManagerLocal serverManager,
                            org.hyperic.hq.appdef.shared.ConfigManagerLocal configManager,
                            org.hyperic.hq.autoinventory.shared.AutoinventoryManagerLocal autoInvManager,
                            org.hyperic.hq.measurement.shared.TrackerManagerLocal trackerManager)
Method Detail

serverRestarted

public void serverRestarted(AppdefEntityID serverId)
                     throws java.lang.Exception
Handles a server restarted event

Parameters:
serverId - The id of the server that was started
Throws:
java.lang.Exception

setStartDelay

public void setStartDelay(long startDelay)
Parameters:
startDelay - The amount of time in seconds to wait for server to be started before re-enabling its JMX subscriptions

Hyperic HQ Plugin API v. 4.4.0.2

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