public class POPSystem
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static POPAccessPoint |
appServiceAccessPoint
POP-Java application service access point
|
static POPAccessPoint |
jobService
POP-Java Job service access point
|
static java.lang.String |
POP_LOCATION_ENVIRONMENT_NAME
POP-Java location environement variable name
|
| Constructor and Description |
|---|
POPSystem()
Creates a new instance of POPSystem
|
| Modifier and Type | Method and Description |
|---|---|
static AppService |
createAppCoreService(java.lang.String codelocation)
Start the application scope services.
|
static void |
end() |
static POPAccessPoint |
getDefaultAccessPoint()
Get the default local access point
|
static ObjectDescription |
getDefaultOD()
Get the default object description
|
static java.lang.String |
getEnviroment(java.lang.String name)
Get the local environment variable
|
static java.lang.String |
getHostIP()
Get the host of the local node
|
static int |
getIPAsInt()
Retrieve the local IP address and format it as an int
|
static java.lang.String |
getPlatform()
Get the system platform
|
static boolean |
initCodeService(java.lang.String fileconf,
java.lang.String popJavaObjectExecuteCommand,
AppService appCoreService)
Initialize the CodeMgr by reading the object map and register all code
location
|
static java.lang.String[] |
initialize(java.lang.String... args)
Entry point for the application scope initialization
|
static boolean |
isInitialized() |
static void |
registerCode(java.lang.String file,
java.lang.String clazz) |
static void |
setStarted() |
static boolean |
start() |
static void |
startAsyncConstructor(java.lang.Runnable constructor) |
static void |
waitForAsyncConstructors() |
static void |
writeLog(java.lang.String log) |
public static final java.lang.String POP_LOCATION_ENVIRONMENT_NAME
public static POPAccessPoint jobService
public static POPAccessPoint appServiceAccessPoint
public static void writeLog(java.lang.String log)
public static int getIPAsInt()
public static java.lang.String getHostIP()
public static POPAccessPoint getDefaultAccessPoint()
public static ObjectDescription getDefaultOD()
public static java.lang.String getEnviroment(java.lang.String name)
name - Name of the variablepublic static java.lang.String getPlatform()
public static java.lang.String[] initialize(java.lang.String... args)
args - Any arguments to pass to the initializationPOPException - thrown is any problems occurred during the initializationpublic static void setStarted()
public static boolean start()
public static void registerCode(java.lang.String file,
java.lang.String clazz)
public static boolean initCodeService(java.lang.String fileconf,
java.lang.String popJavaObjectExecuteCommand,
AppService appCoreService)
throws POPException
fileconf - Object map file locationappCoreService - Reference to the AppCoreServicePOPException - remote exception, check caused bypublic static AppService createAppCoreService(java.lang.String codelocation) throws POPException
codelocation - location of the POP-C++ AppCoreService executable filePOPException - remote exception, check caused bypublic static void end()
public static boolean isInitialized()
public static void startAsyncConstructor(java.lang.Runnable constructor)
public static void waitForAsyncConstructors()