Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.agent
Class AgentUpgradeManager

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

public class AgentUpgradeManager
extends java.lang.Object


Field Summary
static java.lang.String UPDATED_PLUGIN_EXTENSION
           
 
Constructor Summary
AgentUpgradeManager()
           
 
Method Summary
static void restartJVM()
          Request a JVM restart if in Java Service Wrapper mode
static boolean rollback()
          Rolls back the agent bundle version for this agent.
static java.util.List updatePlugins(java.util.Properties bootProps)
           
static boolean upgrade(java.lang.String newBundle)
          Upgrades the agent bundle version for this agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATED_PLUGIN_EXTENSION

public static final java.lang.String UPDATED_PLUGIN_EXTENSION
See Also:
Constant Field Values
Constructor Detail

AgentUpgradeManager

public AgentUpgradeManager()
Method Detail

restartJVM

public static void restartJVM()
Request a JVM restart if in Java Service Wrapper mode


upgrade

public static boolean upgrade(java.lang.String newBundle)
                       throws java.io.IOException
Upgrades the agent bundle version for this agent.

Parameters:
newBundle - the name of the new bundle to upgrade to
Throws:
java.io.IOException

rollback

public static boolean rollback()
                        throws java.io.IOException
Rolls back the agent bundle version for this agent.

Throws:
java.io.IOException

updatePlugins

public static java.util.List updatePlugins(java.util.Properties bootProps)
                                    throws java.io.IOException
Parameters:
bootProps - the configuration properties for this agent
Returns:
a List of updated plugins or an empty list if no plugins were updated
Throws:
java.io.IOException - if failed to update a plugin

Hyperic HQ Plugin API v. 4.4.0.2

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