Package org.pentaho.di.core
Class KettleClientEnvironment
- java.lang.Object
-
- org.pentaho.di.core.KettleClientEnvironment
-
public class KettleClientEnvironment extends Object
This singleton is responsible for initializing the Kettle client environment and remembering if it is initialized. More specifically it loads client plugins like value meta plugins and other core Kettle functionality.- Author:
- matt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KettleClientEnvironment.ClientType
-
Constructor Summary
Constructors Constructor Description KettleClientEnvironment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
createKettleHome()
Creates the kettle home area, which is a directory containing a default kettle.properties filestatic void
createKettleUserHome()
Creates the kettle home area, which is a directory containing a default kettle.properties fileKettleClientEnvironment.ClientType
getClient()
static KettleClientEnvironment
getInstance()
Return this singleton.static void
init()
static void
init(List<PluginTypeInterface> pluginsToLoad)
static boolean
isInitialized()
static void
reset()
void
setClient(KettleClientEnvironment.ClientType client)
void
setClientID(String id)
Set the Client ID which has significance when the ClientType == OTHER
-
-
-
Method Detail
-
init
public static void init() throws KettleException
- Throws:
KettleException
-
init
public static void init(List<PluginTypeInterface> pluginsToLoad) throws KettleException
- Throws:
KettleException
-
isInitialized
public static boolean isInitialized()
-
createKettleHome
public static void createKettleHome()
Creates the kettle home area, which is a directory containing a default kettle.properties file
-
createKettleUserHome
public static void createKettleUserHome()
Creates the kettle home area, which is a directory containing a default kettle.properties file
-
setClient
public void setClient(KettleClientEnvironment.ClientType client)
-
setClientID
public void setClientID(String id)
Set the Client ID which has significance when the ClientType == OTHER- Parameters:
id
-
-
getClient
public KettleClientEnvironment.ClientType getClient()
-
getInstance
public static KettleClientEnvironment getInstance()
Return this singleton. Create it if it hasn't been.- Returns:
-
reset
public static void reset()
-
-