public class JpsStartup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JpsStartup.RuntimeState |
Constructor and Description |
---|
JpsStartup()
Default constructor for Java SE Startup
|
JpsStartup(java.lang.String platformType)
Constructor for Startup instance of supported platforms.
|
JpsStartup(java.lang.String platformType, java.util.Map<java.lang.String,?> options)
Constructor for Startup instance of supported platforms.
|
JpsStartup(java.lang.String platformType, java.util.Map<java.lang.String,ContextConfiguration> ctxtCfgs, java.util.Map<java.lang.String,?> options)
Constructor for Startup instance of supported platforms.
|
Modifier and Type | Method and Description |
---|---|
JpsStartup.RuntimeState |
getState()
Get the state of OPSS
|
void |
postStart()
Post Start Operations - invoked after JDBC/JMX resources are available and activated
|
void |
reset()
Resets OPSS runtime This method will set the state as UNINITIALIZED if OPSS services initialized correctly and it is similar to starting OPSS from a clean state
|
void |
start()
Boots up OPSS by initializing OPSS services This method will set the state as ACTIVE if OPSS services initialized correctly.
|
void |
stop()
Shuts down OPSS services This method wil set the state as INACTIVE if OPSS services initialized correctly.
|
public JpsStartup() throws JpsException
JpsException
public JpsStartup(java.lang.String platformType) throws JpsException
platformType
- supported platform typeJpsException
public JpsStartup(java.lang.String platformType, java.util.Map<java.lang.String,?> options) throws JpsException
platformType
- supported platform typeoptions
- options on creating the startup class. Following are the options "ACTIVE_CONTEXT": Name of default context if not passed used "default" "ENABLE_JAVA_POLICY_PROVIDER": if "FALSE" then not to set default OPSS as Java2 policy provider otherwise set "ENABLE_AUDIT_SERVICE_EXT": if "FALSE" then start audit service without audit monitoring thread and auditloader otherwise start "ENABLE_POLICY_STORE_SERVICE_EXT": if "FALSE" then start PDP (Policy Distribution Point) without policy change scanner thread. "ENABLE_DEPLOYMENT_HANDLING": if "FALSE" then deployment handlers are not created by default created "RUNTIME_MODE": if mode is "SCRIPT" then by default options i.e. ENABLE_JAVA_POLICY_PROVIDER ,ENABLE_AUDIT_SERVICE_EXT, ENABLE_POLICY_STORE_SERVICE_EXT, ENABLE_DEPLOYMENT_HANDLING to "FALSE" otherwise "DEFAULT" "JPS_CONFIG": if set use the specified pass otherwise default behaviourJpsException
public JpsStartup(java.lang.String platformType, java.util.Map<java.lang.String,ContextConfiguration> ctxtCfgs, java.util.Map<java.lang.String,?> options) throws JpsException
platformType
- supported platform typectxtCfgs
- pass the ContextConfiguration'soptions
- options on creating the startup class. Following are the options "ACTIVE_CONTEXT": Name of default context if not passed then "default" key is used "ENABLE_JAVA_POLICY_PROVIDER": if "FALSE" then not to set default OPSS as Java2 policy provider otherwise set "ENABLE_AUDIT_SERVICE_EXT": if "FALSE" then start audit service without audit monitoring thread and auditloader otherwise start "ENABLE_POLICY_STORE_SERVICE_EXT": if "FALSE" then start PDP (Policy Distribution Point) without policy change scanner thread. "ENABLE_DEPLOYMENT_HANDLING": if "FALSE" then deployment handlers are not created by default created "RUNTIME_MODE": if mode is "SCRIPT" then by default options i.e. ENABLE_JAVA_POLICY_PROVIDER ,ENABLE_AUDIT_SERVICE_EXT, ENABLE_POLICY_STORE_SERVICE_EXT, ENABLE_DEPLOYMENT_HANDLING to "FALSE" otherwise "DEFAULT" "JPS_CONFIG": if set use the specified pass otherwise default behaviourJpsException
public void start() throws JpsException
JpsException
public JpsStartup.RuntimeState getState()
public void stop()
public void reset()
public void postStart() throws JpsException
JpsException