org.jboss.on.plugins.tomcat
Class TomcatDiscoveryComponent

java.lang.Object
  extended by org.jboss.on.plugins.tomcat.TomcatDiscoveryComponent
All Implemented Interfaces:
ManualAddFacet, ResourceDiscoveryComponent

public class TomcatDiscoveryComponent
extends Object
implements ResourceDiscoveryComponent, ManualAddFacet

Discovers JBoss EWS and Apache Tomcat5, Tomcat6 server instances.

Author:
Jay Shaughnessy

Field Summary
static String EWS_TOMCAT_5
           
static String EWS_TOMCAT_6
          EWS RPM Install path substrings used to identify EWS tomcat version
static String PROPERTY_CATALINA_BASE
           
static String PROPERTY_CATALINA_HOME
           
static String UNKNOWN_PORT
          Indicates the version information could not be determined.
static String UNKNOWN_VERSION
           
 
Constructor Summary
TomcatDiscoveryComponent()
           
 
Method Summary
 DiscoveredResourceDetails discoverResource(Configuration pluginConfig, ResourceDiscoveryContext discoveryContext)
           
 Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context)
           
static boolean isEWSTomcat5(String catalinaHome)
           
static boolean isEWSTomcat6(String catalinaHome)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_PORT

public static final String UNKNOWN_PORT
Indicates the version information could not be determined.

See Also:
Constant Field Values

UNKNOWN_VERSION

public static final String UNKNOWN_VERSION
See Also:
Constant Field Values

PROPERTY_CATALINA_BASE

public static final String PROPERTY_CATALINA_BASE
See Also:
Constant Field Values

PROPERTY_CATALINA_HOME

public static final String PROPERTY_CATALINA_HOME
See Also:
Constant Field Values

EWS_TOMCAT_6

public static final String EWS_TOMCAT_6
EWS RPM Install path substrings used to identify EWS tomcat version

See Also:
Constant Field Values

EWS_TOMCAT_5

public static final String EWS_TOMCAT_5
See Also:
Constant Field Values
Constructor Detail

TomcatDiscoveryComponent

public TomcatDiscoveryComponent()
Method Detail

discoverResources

public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context)
Specified by:
discoverResources in interface ResourceDiscoveryComponent

discoverResource

public DiscoveredResourceDetails discoverResource(Configuration pluginConfig,
                                                  ResourceDiscoveryContext discoveryContext)
                                           throws InvalidPluginConfigurationException
Specified by:
discoverResource in interface ManualAddFacet
Throws:
InvalidPluginConfigurationException

isEWSTomcat5

public static boolean isEWSTomcat5(String catalinaHome)

isEWSTomcat6

public static boolean isEWSTomcat6(String catalinaHome)


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.