|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This object provides a way of accessing and mutating run time properties of a particular application. The following code snippet indicates how the deployment descriptor of a particular application can be obtained.
javax.naming.Context cxt = new javax.naming.InitialContext(); String jndiName = "java:comp/env/" + IPMClusterManager.JNDI_ROOT; IPMClusterManagerHome home = (IPMClusterManagerHome) cxt.lookup( jndiName ); IPMClusterManager clManager = home.create(); IPMCluster pmc = clManager.getCluster ( IPMCluster.DEFAULT ) ; IDeploymentManager dm = pmc.getDeploymentManager(); Hashtable apps = dm.getInstalledApplications(); String appName = "someAppName"; IDeploymentDescriptor dd = apps.get ( appName ) ; // call deployment descriptor methods here..
com.netscape.pm.model.IDeploymentManager
Fields inherited from interface com.netscape.pm.dm.IChecksum |
NOT_COMPUTED |
Method Summary | |
java.lang.String |
getName()
|
boolean |
isApplicationStarted()
Returns true if the application's status is started, that is the application can be accessed from the Process Express. |
boolean |
isApplicationStopped()
Returns true if the application's status is stopped, that is the application cannot be accessed from the Process Express. |
boolean |
isModeClosed()
Returns true if the application's mode is closed, that is no new process instances can be created from this application but existing process instances can be completed. |
boolean |
isModeOpen()
Returns true if the application's mode is open, that is new process instances can be created from this application. |
boolean |
isStageDevelopment()
Returns true if the application's stage is development |
boolean |
isStageProduction()
Returns true if the application's stage is production. |
boolean |
isTesting()
Returns true if the application's apptesting attribute is true. |
void |
setApplicationStarted()
Changes the |
void |
setApplicationStopped()
Changes the |
void |
setModeClosed()
Changes the |
void |
setModeOpen()
Changes the |
void |
setStageDevelopment()
Sets the |
void |
setStageProduction()
Sets the |
void |
setTesting(boolean yesNo)
Changes the |
Methods inherited from interface com.netscape.pm.dm.IChecksum |
getChecksum, setChecksum |
Method Detail |
public java.lang.String getName()
public void setApplicationStarted()
statusof the application to
started. If the application status is started, then work items of the application is accessible from the Process Express.
public void setApplicationStopped()
statusof the application to
stopped. If the application status is stopped, then work items of the application is not accessible from the Process Express. Process instances of the application cannot be created if the application is stopped.
public void setModeOpen()
modeof the application to
open. If the application mode is open, then new process instances can be created.
public void setModeClosed()
modeof the application to
closed. If the application mode is closed, then new process instances cannot be created - only existing work items can be worked on.
public void setTesting(boolean yesNo)
apptestingattribute of the application to
trueor
falsedepending on the boolean parameter. If the apptesting attribute is true, then all work items created for that application is automatically assigned to the creator of the process instance. If the apptesting attribute is false, then the work items of the application are assigned to the correct assignees that have been defined in the process definition.
yesNo
- If this parameter is true, then the apptesting attribute of the application is
set to true, otherwise it is set to false.public void setStageDevelopment()
stageof the application to
development. If the application is in development stage, then the application can be completely redesigned using the Process Builder. Once the application stage is set to
production, then changes from the Process Builder to the application are very restrictive.
public void setStageProduction()
stageof the application to
production. If the application is in development stage, then the application can be completely redesigned using the Process Builder. Once the application stage is set to
production, then changes from the Process Builder to the application are very restrictive.
public boolean isModeOpen()
true
if the application mode is open;
false
if the application mode is closed.public boolean isModeClosed()
true
if the application mode is closed;
false
if the application mode is open.public boolean isApplicationStarted()
true
if the application status is started;
false
if the application status is stopped.public boolean isApplicationStopped()
true
if the application status is stopped;
false
if the application status is started.public boolean isStageDevelopment()
true
if the application stage is development;
false
if the application stage is production.public boolean isStageProduction()
true
if the application stage is production;
false
if the application stage is development.public boolean isTesting()
true
if the application apptesting attribute is true;
false
if the application apptesting attribute is false.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |