ServerRestartHandler (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.control.server.session.ServerRestartHandler class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      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

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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