Package org.pentaho.platform.osgi
Class KarafBoot
- java.lang.Object
-
- org.pentaho.platform.osgi.KarafBoot
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPentahoSystemListener
- Direct Known Subclasses:
OSGIBoot
public class KarafBoot extends Object implements org.pentaho.platform.api.engine.IPentahoSystemListener
This Pentaho SystemListener starts the Embedded Karaf framework to support OSGI in the platform.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLEAN_KARAF_CACHEprotected static StringKARAF_DIRstatic StringORG_OSGI_FRAMEWORK_SYSTEM_PACKAGES_EXTRAstatic StringPENTAHO_KARAF_INSTANCE_RESOLVER_CLASSstatic StringPENTAHO_KARAF_ROOT_COPY_DEST_FOLDERstatic StringPENTAHO_KARAF_ROOT_COPY_FOLDER_EXCLUDE_FILESstatic StringPENTAHO_KARAF_ROOT_COPY_FOLDER_SYMLINK_FILESstatic StringPENTAHO_KARAF_ROOT_TRANSIENTstatic StringPENTAHO_KARAF_ROOT_TRANSIENT_DIRECTORY_ATTEMPTS
-
Constructor Summary
Constructors Constructor Description KarafBoot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureSystemProperties(String solutionRootPath, String root)protected KarafInstancecreateAndProcessKarafInstance(String root)protected voiddeleteRecursiveIfExists(File item)protected voidfillMissedSystemProperty(String propertyName, String propertyValue)If property with propertyName does not exist, than set property with value propertyValueprotected org.pentaho.di.core.KettleClientEnvironment.ClientTypegetClientType()voidshutdown()booleanstartup(org.pentaho.platform.api.engine.IPentahoSession session)protected StringtranslateToExtraKettleEtc(org.pentaho.di.core.KettleClientEnvironment.ClientType clientType)
-
-
-
Field Detail
-
CLEAN_KARAF_CACHE
public static final String CLEAN_KARAF_CACHE
- See Also:
- Constant Field Values
-
PENTAHO_KARAF_ROOT_COPY_DEST_FOLDER
public static final String PENTAHO_KARAF_ROOT_COPY_DEST_FOLDER
- See Also:
- Constant Field Values
-
PENTAHO_KARAF_ROOT_TRANSIENT
public static final String PENTAHO_KARAF_ROOT_TRANSIENT
- See Also:
- Constant Field Values
-
PENTAHO_KARAF_ROOT_TRANSIENT_DIRECTORY_ATTEMPTS
public static final String PENTAHO_KARAF_ROOT_TRANSIENT_DIRECTORY_ATTEMPTS
- See Also:
- Constant Field Values
-
PENTAHO_KARAF_ROOT_COPY_FOLDER_SYMLINK_FILES
public static final String PENTAHO_KARAF_ROOT_COPY_FOLDER_SYMLINK_FILES
- See Also:
- Constant Field Values
-
PENTAHO_KARAF_ROOT_COPY_FOLDER_EXCLUDE_FILES
public static final String PENTAHO_KARAF_ROOT_COPY_FOLDER_EXCLUDE_FILES
- See Also:
- Constant Field Values
-
ORG_OSGI_FRAMEWORK_SYSTEM_PACKAGES_EXTRA
public static final String ORG_OSGI_FRAMEWORK_SYSTEM_PACKAGES_EXTRA
- See Also:
- Constant Field Values
-
PENTAHO_KARAF_INSTANCE_RESOLVER_CLASS
public static final String PENTAHO_KARAF_INSTANCE_RESOLVER_CLASS
- See Also:
- Constant Field Values
-
KARAF_DIR
protected static final String KARAF_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
startup
public boolean startup(org.pentaho.platform.api.engine.IPentahoSession session)
- Specified by:
startupin interfaceorg.pentaho.platform.api.engine.IPentahoSystemListener
-
deleteRecursiveIfExists
protected void deleteRecursiveIfExists(File item)
-
createAndProcessKarafInstance
protected KarafInstance createAndProcessKarafInstance(String root) throws FileNotFoundException, KarafInstanceResolverException
-
configureSystemProperties
protected void configureSystemProperties(String solutionRootPath, String root)
-
fillMissedSystemProperty
protected void fillMissedSystemProperty(String propertyName, String propertyValue)
If property with propertyName does not exist, than set property with value propertyValue- Parameters:
propertyName- - property for checkpropertyValue- - value to set if property null
-
translateToExtraKettleEtc
protected String translateToExtraKettleEtc(org.pentaho.di.core.KettleClientEnvironment.ClientType clientType)
-
getClientType
protected org.pentaho.di.core.KettleClientEnvironment.ClientType getClientType()
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.pentaho.platform.api.engine.IPentahoSystemListener
-
-