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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureSystemProperties(String solutionRootPath, String root) protected KarafInstanceprotected 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.ClientTypevoidshutdown()booleanstartup(org.pentaho.platform.api.engine.IPentahoSession session) protected StringtranslateToExtraKettleEtc(org.pentaho.di.core.KettleClientEnvironment.ClientType clientType)
-
Field Details
-
CLEAN_KARAF_CACHE
- See Also:
-
PENTAHO_KARAF_ROOT_COPY_DEST_FOLDER
- See Also:
-
PENTAHO_KARAF_ROOT_TRANSIENT
- See Also:
-
PENTAHO_KARAF_ROOT_TRANSIENT_DIRECTORY_ATTEMPTS
- See Also:
-
PENTAHO_KARAF_ROOT_COPY_FOLDER_SYMLINK_FILES
- See Also:
-
PENTAHO_KARAF_ROOT_COPY_FOLDER_EXCLUDE_FILES
- See Also:
-
ORG_OSGI_FRAMEWORK_SYSTEM_PACKAGES_EXTRA
- See Also:
-
PENTAHO_KARAF_INSTANCE_RESOLVER_CLASS
- See Also:
-
KARAF_DIR
- See Also:
-
-
Constructor Details
-
KarafBoot
public KarafBoot()
-
-
Method Details
-
startup
public boolean startup(org.pentaho.platform.api.engine.IPentahoSession session) - Specified by:
startupin interfaceorg.pentaho.platform.api.engine.IPentahoSystemListener
-
deleteRecursiveIfExists
-
createAndProcessKarafInstance
protected KarafInstance createAndProcessKarafInstance(String root) throws FileNotFoundException, KarafInstanceResolverException -
configureSystemProperties
-
fillMissedSystemProperty
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
-