Package org.apache.hop.core
Class HopEnvironment
- java.lang.Object
-
- org.apache.hop.core.HopEnvironment
-
public class HopEnvironment extends Object
The HopEnvironment class contains settings and properties for all of Hop. Initialization of the environment is done by calling the init() method, which reads in properties file(s), registers plugins, etc. Initialization should be performed once at application startup; for example, HopUi's main() method calls HopEnvironment.init() in order to prepare the environment for usage by HopUi.
-
-
Constructor Summary
Constructors Constructor Description HopEnvironment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<IPluginType>getStandardPluginTypes()static voidinit()Initializes the Hop environment.static voidinit(List<IPluginType> pluginTypes)static booleanisInitialized()Checks if the Hop environment has been initialized.voidloadPluginRegistry()Loads the plugin registry.static voidreset()static voidsetExecutionInformation(IExecutor executor)Sets the executor's user and Server informationstatic voidshutdown()
-
-
-
Method Detail
-
init
public static void init() throws HopExceptionInitializes the Hop environment. This method performs the following operations:- Creates a Hop "home" directory if it does not already exist - Reads in the hop.properties file - Initializes the logging back-end - Sets the console log level to debug - If specified by parameter, configures - Initializes the Lifecycle listeners
- Throws:
HopException- Any errors that occur during initialization will throw a HopException.
-
getStandardPluginTypes
public static List<IPluginType> getStandardPluginTypes()
-
init
public static void init(List<IPluginType> pluginTypes) throws HopException
- Throws:
HopException
-
shutdown
public static void shutdown()
-
isInitialized
public static boolean isInitialized()
Checks if the Hop environment has been initialized.- Returns:
- true if initialized, false otherwise
-
loadPluginRegistry
public void loadPluginRegistry() throws HopPluginExceptionLoads the plugin registry.- Throws:
HopPluginException- if any errors are encountered while loading the plugin registry.
-
setExecutionInformation
public static void setExecutionInformation(IExecutor executor)
Sets the executor's user and Server information
-
reset
public static void reset()
-
-