net.hyperic.hq.product
Class Win32ControlPlugin
java.lang.Object
net.hyperic.hq.product.GenericPlugin
net.hyperic.hq.product.ControlPlugin
net.hyperic.hq.product.Win32ControlPlugin
- public class Win32ControlPlugin
- extends ControlPlugin
Base class for control plugins.
Fields inherited from class net.hyperic.hq.product.ControlPlugin |
DEFAULT_TIMEOUT, manager, PROP_TIMEOUT, RESULT_FAILURE, RESULT_SUCCESS, STATE_RESTARTING, STATE_STARTED, STATE_STARTING, STATE_STOPPED, STATE_STOPPING, STATE_UNKNOWN |
Methods inherited from class net.hyperic.hq.product.ControlPlugin |
getConfigSchema, getErrorStr, getManager, getResult, getTimeout, getTimeoutMillis, init, setErrorStr, setManager, setResult, setTimeout, setTimeout |
Methods inherited from class net.hyperic.hq.product.GenericPlugin |
getAbsoluteFiles, getConfig, getConfig, getCustomPropertiesSchema, getCustomPropertiesSchema, getCustomPropertiesSchema, getDefaultInstallPath, getLogName, getName, getPlatformName, getPluginClassName, getProductPlugin, getProperties, getProperty, getTypeInfo, getTypeNameProperty, getTypeNameProperty, getTypeProperty, getTypeProperty, getTypeProperty, isWin32, openResource, setName, setTypeInfo, shutdown, toFileList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_SERVICENAME
public static final java.lang.String PROP_SERVICENAME
- See Also:
- Constant Field Values
PROP_PROGRAMPREFIX
public static final java.lang.String PROP_PROGRAMPREFIX
- See Also:
- Constant Field Values
log
protected org.apache.commons.logging.Log log
serviceName
protected java.lang.String serviceName
installPrefix
protected java.lang.String installPrefix
svc
protected net.hyperic.sigar.win32.Service svc
Win32ControlPlugin
public Win32ControlPlugin()
getLog
protected org.apache.commons.logging.Log getLog()
- Description copied from class:
GenericPlugin
- Wrapper for LogFactory.getLog which uses the name
returned by getLogName().
- Overrides:
getLog
in class GenericPlugin
getServiceName
public java.lang.String getServiceName()
setServiceName
public void setServiceName(java.lang.String val)
isServiceRequired
protected boolean isServiceRequired()
getInstallPrefix
public java.lang.String getInstallPrefix()
setInstallPrefix
public void setInstallPrefix(java.lang.String val)
configure
public void configure(ConfigResponse config)
throws PluginException
- Overrides:
configure
in class GenericPlugin
- Throws:
PluginException
isRunning
protected boolean isRunning()
- Overrides:
isRunning
in class ControlPlugin
detectState
protected java.lang.String detectState()
- Overrides:
detectState
in class ControlPlugin
waitForState
protected java.lang.String waitForState(java.lang.String wantedState)
- Overrides:
waitForState
in class ControlPlugin
getActions
public java.util.List getActions()
- Overrides:
getActions
in class ControlPlugin
doAction
public void doAction(java.lang.String action)
throws PluginException
- Description copied from class:
ControlPlugin
- Invokes plugin method with the name of param action.
- Overrides:
doAction
in class ControlPlugin
- Throws:
PluginException
Copyright © 2004-2005 Hyperic LLC support@hyperic.net, All Rights Reserved.