org.jboss.on.plugins.tomcat
Class TomcatServerComponent

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

Nested Class Summary
static class TomcatServerComponent.ControlMethod
           
static class TomcatServerComponent.SupportedOperations
           
 
Field Summary
static String PLUGIN_CONFIG_CATALINA_BASE_PATH
           
static String PLUGIN_CONFIG_CATALINA_HOME_PATH
           
static String PLUGIN_CONFIG_CONTROL_METHOD
          Plugin configuration properties.
static String PLUGIN_CONFIG_SCRIPT_PREFIX
           
static String PLUGIN_CONFIG_SHUTDOWN_SCRIPT
           
static String PLUGIN_CONFIG_START_SCRIPT
           
static String START_WAIT_MAX_PROP
           
static String STOP_WAIT_MAX_PROP
           
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
TomcatServerComponent()
           
 
Method Summary
 AvailabilityType getAvailability()
           
 File getCatalinaBase()
           
 File getCatalinaHome()
           
 org.mc4j.ems.connection.EmsConnection getEmsConnection()
           
 Configuration getPluginConfiguration()
           
 File getShutdownScriptPath()
           
 File getStartScriptPath()
           
 void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics)
           
 OperationResult invokeOperation(String name, Configuration parameters)
           
 void start(ResourceContext context)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TomcatServerComponent

public TomcatServerComponent()
Method Detail

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.