org.jboss.on.plugins.tomcat
Class TomcatServerComponent
java.lang.Object
org.jboss.on.plugins.tomcat.TomcatServerComponent
- All Implemented Interfaces:
- AvailabilityFacet, ResourceComponent, MeasurementFacet, OperationFacet, JMXComponent
public class TomcatServerComponent
- extends Object
- implements JMXComponent, MeasurementFacet, OperationFacet
Management for an Apache or JBoss EWS Tomcat server
- Author:
- Jay Shaughnessy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLUGIN_CONFIG_CONTROL_METHOD
public static final String PLUGIN_CONFIG_CONTROL_METHOD
- Plugin configuration properties.
- See Also:
- Constant Field Values
PLUGIN_CONFIG_CATALINA_HOME_PATH
public static final String PLUGIN_CONFIG_CATALINA_HOME_PATH
- See Also:
- Constant Field Values
PLUGIN_CONFIG_CATALINA_BASE_PATH
public static final String PLUGIN_CONFIG_CATALINA_BASE_PATH
- See Also:
- Constant Field Values
PLUGIN_CONFIG_SCRIPT_PREFIX
public static final String PLUGIN_CONFIG_SCRIPT_PREFIX
- See Also:
- Constant Field Values
PLUGIN_CONFIG_SHUTDOWN_SCRIPT
public static final String PLUGIN_CONFIG_SHUTDOWN_SCRIPT
- See Also:
- Constant Field Values
PLUGIN_CONFIG_START_SCRIPT
public static final String PLUGIN_CONFIG_START_SCRIPT
- See Also:
- Constant Field Values
START_WAIT_MAX_PROP
public static final String START_WAIT_MAX_PROP
- See Also:
- Constant Field Values
STOP_WAIT_MAX_PROP
public static final String STOP_WAIT_MAX_PROP
- See Also:
- Constant Field Values
TomcatServerComponent
public TomcatServerComponent()
getEmsConnection
public org.mc4j.ems.connection.EmsConnection getEmsConnection()
- Specified by:
getEmsConnection in interface JMXComponent
getPluginConfiguration
public Configuration getPluginConfiguration()
start
public void start(ResourceContext context)
throws SQLException
- Specified by:
start in interface ResourceComponent
- Throws:
SQLException
stop
public void stop()
- Specified by:
stop in interface ResourceComponent
getAvailability
public AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
getStartScriptPath
public File getStartScriptPath()
getCatalinaHome
public File getCatalinaHome()
getCatalinaBase
public File getCatalinaBase()
getShutdownScriptPath
public File getShutdownScriptPath()
invokeOperation
public OperationResult invokeOperation(String name,
Configuration parameters)
throws InterruptedException,
Exception
- Specified by:
invokeOperation in interface OperationFacet
- Throws:
InterruptedException
Exception
getValues
public void getValues(MeasurementReport report,
Set<MeasurementScheduleRequest> metrics)
throws Exception
- Specified by:
getValues in interface MeasurementFacet
- Throws:
Exception
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.