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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureSystemProperties
(String solutionRootPath, String root) protected KarafInstance
protected void
deleteRecursiveIfExists
(File item) protected void
fillMissedSystemProperty
(String propertyName, String propertyValue) If property with propertyName does not exist, than set property with value propertyValueprotected org.pentaho.di.core.KettleClientEnvironment.ClientType
void
shutdown()
boolean
startup
(org.pentaho.platform.api.engine.IPentahoSession session) protected String
translateToExtraKettleEtc
(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:
startup
in 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:
shutdown
in interfaceorg.pentaho.platform.api.engine.IPentahoSystemListener
-