Class BaseSoftwareComponentCollectorImpl
- java.lang.Object
-
- de.hybris.datasupplier.generator.tomcat.collector.BaseTomcatCollectorImpl
-
- de.hybris.datasupplier.generator.tomcat.collector.sc.BaseSoftwareComponentCollectorImpl
-
- All Implemented Interfaces:
com.sap.sup.admin.sldsupplier.collector.SLDDataCollector,TomcatCollectorServiceInitializable,TomcatSLDDataCollector
- Direct Known Subclasses:
HybrisSoftwareComponentCollectorImpl,TomcatApplicationSoftwareComponentCollectorImpl,TomcatServerSoftwareComponentCollectorImpl
public abstract class BaseSoftwareComponentCollectorImpl extends BaseTomcatCollectorImpl
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_SOFTWARE_COMPONENT_LEVELstatic java.lang.StringTMPstatic java.lang.StringWAR
-
Constructor Summary
Constructors Constructor Description BaseSoftwareComponentCollectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.ListbuildSoftwareComponentDeployments(java.io.InputStream appDescriptorStream, TomcatProductSoftwareComponentDeployment template)protected TomcatWebModulebuildWebModule(javax.management.ObjectName webModuleName)protected TomcatWebModulebuildWebModule70(javax.management.ObjectName webModuleName)protected com.sap.sup.admin.sldsupplier.sc.ProductInformationCreatorcreateProductInformationCreator()protected java.io.FilegetApplicationDeploymentDir(TomcatWebModule webModule, TomcatEngine engine)Returns the installation directory of the given Web application and Tomcat engine object.com.sap.sup.admin.sldsupplier.sc.ProductInformationCreatorgetCreator()intgetCurrentSoftwareComponentLookupLevel()intgetMaxSoftwareComponentLookupLevel()java.util.ListgetProductSoftwareComponentDeployments()TomcatConfigurationgetTomcatConfiguration()protected java.util.ListloadApplicationSoftwareComponentDeploymentsFromDir(java.io.File appDeploymentDir, TomcatProductSoftwareComponentDeployment template)protected java.util.ListloadApplicationSoftwareComponentDeploymentsFromWar(java.io.File appDeploymentDir, TomcatProductSoftwareComponentDeployment template)protected java.util.ListloadApplicationSoftwareComponentDeploymentsFromZip(java.util.zip.ZipInputStream zis, java.lang.String destDirName, TomcatProductSoftwareComponentDeployment template)voidsetCreator(com.sap.sup.admin.sldsupplier.sc.ProductInformationCreator creator)voidsetCurrentSoftwareComponentLookupLevel(int currentSoftwareComponentLookupLevel)voidsetMaxSoftwareComponentLookupLevel(int softwareComponentLookupLevel)voidsetProductSoftwareComponentDeployments(java.util.List productSoftwareComponentDeployments)voidsetTomcatConfiguration(TomcatConfiguration tomcatConfiguration)-
Methods inherited from class de.hybris.datasupplier.generator.tomcat.collector.BaseTomcatCollectorImpl
getCollectorContext, getServiceInitializer, getVerbose, setCollectorContext, setServiceInitializer
-
-
-
-
Field Detail
-
WAR
public static final java.lang.String WAR
- See Also:
- Constant Field Values
-
TMP
public static final java.lang.String TMP
- See Also:
- Constant Field Values
-
MAX_SOFTWARE_COMPONENT_LEVEL
public static final int MAX_SOFTWARE_COMPONENT_LEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProductSoftwareComponentDeployments
public java.util.List getProductSoftwareComponentDeployments()
-
setProductSoftwareComponentDeployments
public void setProductSoftwareComponentDeployments(java.util.List productSoftwareComponentDeployments)
-
getCreator
public com.sap.sup.admin.sldsupplier.sc.ProductInformationCreator getCreator()
-
createProductInformationCreator
protected com.sap.sup.admin.sldsupplier.sc.ProductInformationCreator createProductInformationCreator()
-
setCreator
public void setCreator(com.sap.sup.admin.sldsupplier.sc.ProductInformationCreator creator)
-
getTomcatConfiguration
public TomcatConfiguration getTomcatConfiguration()
-
setTomcatConfiguration
public void setTomcatConfiguration(TomcatConfiguration tomcatConfiguration)
-
getMaxSoftwareComponentLookupLevel
public int getMaxSoftwareComponentLookupLevel()
-
setMaxSoftwareComponentLookupLevel
public void setMaxSoftwareComponentLookupLevel(int softwareComponentLookupLevel)
-
getCurrentSoftwareComponentLookupLevel
public int getCurrentSoftwareComponentLookupLevel()
-
setCurrentSoftwareComponentLookupLevel
public void setCurrentSoftwareComponentLookupLevel(int currentSoftwareComponentLookupLevel)
-
loadApplicationSoftwareComponentDeploymentsFromDir
protected java.util.List loadApplicationSoftwareComponentDeploymentsFromDir(java.io.File appDeploymentDir, TomcatProductSoftwareComponentDeployment template) throws java.io.IOException- Throws:
java.io.IOException
-
loadApplicationSoftwareComponentDeploymentsFromWar
protected java.util.List loadApplicationSoftwareComponentDeploymentsFromWar(java.io.File appDeploymentDir, TomcatProductSoftwareComponentDeployment template) throws java.io.IOException- Throws:
java.io.IOException
-
loadApplicationSoftwareComponentDeploymentsFromZip
protected java.util.List loadApplicationSoftwareComponentDeploymentsFromZip(java.util.zip.ZipInputStream zis, java.lang.String destDirName, TomcatProductSoftwareComponentDeployment template) throws java.io.IOException- Throws:
java.io.IOException
-
buildSoftwareComponentDeployments
protected java.util.List buildSoftwareComponentDeployments(java.io.InputStream appDescriptorStream, TomcatProductSoftwareComponentDeployment template)
-
getApplicationDeploymentDir
protected java.io.File getApplicationDeploymentDir(TomcatWebModule webModule, TomcatEngine engine)
Returns the installation directory of the given Web application and Tomcat engine object. Following cases are currently considered 1) If TomcatWebModule.getDocBase() exists it is assumed to be the installation directory of the Web module. If not => 2) 2) If The default TomcatHost.getBaseDir() exists, the path TomcatHost.getBaseDir()/TomcatWebModule.getDocBase() is assumed to be the installation directory of the Web module. 3) The expression TomcatEngine.getBaseDir()/TomcatHost.getBaseDir()/TomcatWebModule.getDocBase() is assumed to be the installation directory of the Web module.- Parameters:
webModule-engine-- Returns:
- File object to the installation directory of the Web module
-
buildWebModule
protected TomcatWebModule buildWebModule(javax.management.ObjectName webModuleName) throws javax.management.ReflectionException, javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.InstanceNotFoundException
- Throws:
javax.management.ReflectionExceptionjavax.management.AttributeNotFoundExceptionjavax.management.MBeanExceptionjavax.management.InstanceNotFoundException
-
buildWebModule70
protected TomcatWebModule buildWebModule70(javax.management.ObjectName webModuleName) throws javax.management.ReflectionException, javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.InstanceNotFoundException
- Throws:
javax.management.ReflectionExceptionjavax.management.AttributeNotFoundExceptionjavax.management.MBeanExceptionjavax.management.InstanceNotFoundException
-
-