com.netscape.pm.dm
Interface IDeploymentManager


public interface IDeploymentManager

This object is used to get the list of applications that are installed in the Process Manager cluster. It can also be used to remove an application from the cluster. The following indicates how the deployment manager can be obtained from the cluster.

 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();
 // call deployment manager methods here...
 

Since:
PAE4.0
See Also:
IPMClusterManager, IPMCluster

Method Summary
 java.lang.String getApplicationUnzipPath(java.lang.String appName)
          Gets the directory where this particular application has been unzipped.
 IDeploymentDescriptor getDeploymentDescriptor(java.lang.String appName)
          Gets the deployment descriptor for a particular application.
 java.util.Hashtable getInstalledApplications()
          Returns a Hashtable of IDeploymentDescriptors.
 java.util.Vector getVectorOfInstalledApplications()
          Returns a Vector of IDeploymentDescriptors.
 void removeApplication(java.lang.String appName, boolean bDropTable)
          Removes the application from the cluster.
 

Method Detail

getInstalledApplications

public java.util.Hashtable getInstalledApplications()
                                             throws XDeploymentManager
Returns a Hashtable of IDeploymentDescriptors.
Returns:
This returns a hashtable of IDeploymentDescriptors for the applications. The hashtable is keyed by the name of the application.
Throws:
An - application level exception.
Since:
PAE4.0
See Also:
com.netscape.pm.model.IDeploymentDescriptor, PMException

getVectorOfInstalledApplications

public java.util.Vector getVectorOfInstalledApplications()
                                                  throws XDeploymentManager
Returns a Vector of IDeploymentDescriptors.
Returns:
This returns a vector of IDeploymentDescriptors for the applications.
Throws:
An - application level exception.
Since:
PAE4.0
See Also:
com.netscape.pm.model.IDeploymentDescriptor, PMException

getDeploymentDescriptor

public IDeploymentDescriptor getDeploymentDescriptor(java.lang.String appName)
                                              throws XDeploymentManager
Gets the deployment descriptor for a particular application.
Parameters:
appName - This is the application name whose deployment descriptor is being looked up.
Returns:
This returns the deployment descriptor for that particular application.
Throws:
An - application level exception.
Since:
PAE4.0
See Also:
com.netscape.pm.model.IDeploymentDescriptor, PMException

removeApplication

public void removeApplication(java.lang.String appName,
                              boolean bDropTable)
                       throws XDeploymentManager
Removes the application from the cluster.
Parameters:
appName - This is the name of the application that is being removed from the cluster.
bDropTable - If this is false, then the application table and view are not deleted from the database. If is true, then the application table and view are deleted from the database.
Throws:
An - application level exception.
Since:
PAE4.0
See Also:
com.netscape.pm.model.IDeploymentDescriptor, PMException

getApplicationUnzipPath

public java.lang.String getApplicationUnzipPath(java.lang.String appName)
Gets the directory where this particular application has been unzipped.
Parameters:
appName - The name of the application.
Returns:
This is the full path name of the directory where the application has been unzipped.
Since:
PAE4.0
See Also:
com.netscape.pm.model.IDeploymentDescriptor, PMException