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 String
CLEAN_KARAF_CACHE
protected static String
KARAF_DIR
static String
ORG_OSGI_FRAMEWORK_SYSTEM_PACKAGES_EXTRA
static String
PENTAHO_KARAF_INSTANCE_RESOLVER_CLASS
static String
PENTAHO_KARAF_ROOT_COPY_DEST_FOLDER
static String
PENTAHO_KARAF_ROOT_COPY_FOLDER_EXCLUDE_FILES
static String
PENTAHO_KARAF_ROOT_COPY_FOLDER_SYMLINK_FILES
static String
PENTAHO_KARAF_ROOT_TRANSIENT
static String
PENTAHO_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 void
configureSystemProperties(String solutionRootPath, String root)
protected KarafInstance
createAndProcessKarafInstance(String root)
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
getClientType()
void
shutdown()
boolean
startup(org.pentaho.platform.api.engine.IPentahoSession session)
protected String
translateToExtraKettleEtc(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:
startup
in 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:
shutdown
in interfaceorg.pentaho.platform.api.engine.IPentahoSystemListener
-
-