|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.ServicesDeploymentEvent
public class ServicesDeploymentEvent
Event used to notify a listener of a change in the state of the foundation services deployment. Note that this class is serializable, so that an instance can be marshalled.
Field Summary | |
---|---|
static int |
DEPLOYMENT_STATE_DEPLOYED_LOCAL
Deployment state: services have been started |
static int |
DEPLOYMENT_STATE_DEPLOYED_REMOTE
Both local services have been started (if any) and remote services found (if any). |
static int |
DEPLOYMENT_STATE_DEPLOYING_LOCAL
Deployment state: services are in the process of being started |
static int |
DEPLOYMENT_STATE_DEPLOYING_REMOTE
Deployment state: searching for remotely instatiated services. |
static int |
DEPLOYMENT_STATE_FACADE_INITIALIZED
The facade has completed its requested deployment of services and its initialization and is ready to return any services that it has found. |
static int |
DEPLOYMENT_STATE_TERMINATED
Deployment state: services have been terminated. |
static int |
DEPLOYMENT_STATE_TERMINATING
Deployment state: services are in the process of being terminated |
static int |
DEPLOYMENT_STATE_UNITIALIZED
Deployment state: services have not yet been started. |
Constructor Summary | |
---|---|
ServicesDeploymentEvent(int servicesDeploymentState)
Constructs services lifecycle event to communicate a state change to registered listeners. |
Method Summary | |
---|---|
int |
getServicesDeploymentState()
Gets the state of the services deployment. |
static boolean |
isDeployedLocal(int servicesDeploymentState)
Determines whether or not the specified state signifies that services have been deployed locally. |
static boolean |
isDeployedRemote(int servicesDeploymentState)
Determines whether or not the specified state signifies that services are have been remotely deployed and are now available to lookup. |
static boolean |
isDeployingLocal(int servicesDeploymentState)
Determines whether or not the specified state signifies that services are currently being locally deployed. |
static boolean |
isDeployingRemote(int servicesDeploymentState)
Determines whether or not the specified state signifies that services are currently being remotely deployed and therefore not available via lookup. |
static boolean |
isFacadeInitialized(int servicesDeploymentState)
Determines whether or not the specified state signifies that the services facade has completed its requested service deployment and is initialized with any services that may have been deployed. |
static boolean |
isTerminated(int servicesDeploymentState)
Determines whether or not the specified state signifies that services are have been terminated. |
static boolean |
isTerminating(int servicesDeploymentState)
Determines whether or not the specified state signifies that services are currently being terminated. |
static boolean |
isUnitialized(int servicesDeploymentState)
Determines whether or not the specified state signifies that services are still unitialized. |
static boolean |
isValidState(int servicesDeploymentState)
Determines whether or not the specified services deployment state is valid. |
Field Detail |
---|
public static final int DEPLOYMENT_STATE_UNITIALIZED
public static final int DEPLOYMENT_STATE_DEPLOYING_LOCAL
public static final int DEPLOYMENT_STATE_DEPLOYING_REMOTE
public static final int DEPLOYMENT_STATE_DEPLOYED_LOCAL
public static final int DEPLOYMENT_STATE_DEPLOYED_REMOTE
public static final int DEPLOYMENT_STATE_FACADE_INITIALIZED
public static final int DEPLOYMENT_STATE_TERMINATING
public static final int DEPLOYMENT_STATE_TERMINATED
Constructor Detail |
---|
public ServicesDeploymentEvent(int servicesDeploymentState) throws ServiceException
servicesDeploymentState
- Current state of the services deployment.
ServiceException
- if an invalid state is specified.Method Detail |
---|
public final int getServicesDeploymentState()
DEPLOYMENT_STATE_UNITIALIZED
DEPLOYMENT_STATE_DEPLOYING_LOCAL
DEPLOYMENT_STATE_DEPLOYED_LOCAL
DEPLOYMENT_STATE_DEPLOYING_REMOTE
DEPLOYMENT_STATE_DEPLOYED_REMOTE
DEPLOYMENT_STATE_FACADE_INITIALIZED
DEPLOYMENT_STATE_TERMINATING
DEPLOYMENT_STATE_TERMINATED
public static final boolean isValidState(int servicesDeploymentState)
servicesDeploymentState
- whose validity needs to be checked.
true
if the services deployment state is valid or
false
if it isn't.public static final boolean isDeployedLocal(int servicesDeploymentState)
servicesDeploymentState
- Services deployment state.
true
if the state indicates that services have been
deployed locally.public static final boolean isDeployingLocal(int servicesDeploymentState)
servicesDeploymentState
- Services deployment state.
true
if the state indicates that services are
being deployed locally.public static final boolean isDeployedRemote(int servicesDeploymentState)
servicesDeploymentState
- Services deployment state.
true
if the state indicates that remotely
instantiated services have been looked up.public static final boolean isDeployingRemote(int servicesDeploymentState)
servicesDeploymentState
- Services deployment state.
true
if the state indicates that remotely
instantiated services are being looked up.public static final boolean isFacadeInitialized(int servicesDeploymentState)
servicesDeploymentState
-
public static final boolean isTerminating(int servicesDeploymentState)
servicesDeploymentState
- Services deployment state.
true
if the state indicates that remotely
instantiated services are being terminated.public static final boolean isTerminated(int servicesDeploymentState)
servicesDeploymentState
- Services deployment state.
true
if the state indicates that remotely
instantiated services have been terminated.public static final boolean isUnitialized(int servicesDeploymentState)
servicesDeploymentState
- Services deployment state.
true
if the state indicates that services are still
unitialized.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |