public class JpsStartup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JpsStartup.PlatformType |
static class |
JpsStartup.RuntimeState |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JPS_STARTUP_RETRY_COUNT |
static int |
JPS_STARTUP_RETRY_COUNT_DEFAULT |
static int |
JPS_STARTUP_RETRY_COUNT_WLS_DEFAULT |
static java.lang.String |
JPS_STARTUP_RETRY_INTERVAL |
static int |
JPS_STARTUP_RETRY_INTERVAL_DEFAULT |
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,oracle.security.opss.config.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 so that OPSS is back to the state before new JpsStartup() and JpsStartup.start() is called.
|
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.
|
public static final java.lang.String JPS_STARTUP_RETRY_COUNT
public static final int JPS_STARTUP_RETRY_COUNT_DEFAULT
public static final int JPS_STARTUP_RETRY_COUNT_WLS_DEFAULT
public static final java.lang.String JPS_STARTUP_RETRY_INTERVAL
public static final int JPS_STARTUP_RETRY_INTERVAL_DEFAULT
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 "CONTEXT_FOR_POLICY_PROVIDER": if set use the specified context to init OPSS java policy provider otherwise default context "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,oracle.security.opss.config.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 "CONTEXT_FOR_POLICY_PROVIDER": if set use the specified context to init OPSS java policy provider otherwise default context "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() throws JpsException
JpsException
public void postStart() throws JpsException
JpsException