org.hyperic.hq.agent
Class AgentUpgradeManager
java.lang.Object
org.hyperic.hq.agent.AgentUpgradeManager
public class AgentUpgradeManager
- extends java.lang.Object
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 |
UPDATED_PLUGIN_EXTENSION
public static final java.lang.String UPDATED_PLUGIN_EXTENSION
- See Also:
- Constant Field Values
AgentUpgradeManager
public AgentUpgradeManager()
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
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.