|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a cluster in Process Manager. Process Manager 6.0 only contains one cluster. The methods in this interface are used to
IPMClusterHome
,
EJBObject
,
Remote
Field Summary | |
static java.lang.String |
DEFAULT
The name which is used to look up the default cluster. |
static java.lang.String |
DEFAULT_CLUSTER_NAME
The default cluster name |
static java.lang.String |
DEFAULT_JNDI_ROOT
The JNDI root for the default cluster. |
static java.lang.String |
VERSION
The version of the Process Manager. |
Method Summary | |
void |
changeCluster(IPMClusterProperty prop)
Changes properties of a cluster. |
IPMApplication |
getApplication(java.lang.String appName)
Gets a particular Process Manager application. |
java.lang.String |
getApplicationsPath()
Gets the directory under which Process Manager applications reside in the file system. |
java.lang.String |
getClasspath()
Gets the classpath of Process Manager. |
IPMClusterProperty |
getClusterProperty()
Gets the cluster property object for this cluster. |
java.sql.Connection |
getConnection()
Gets the connection object for the cluster. |
ICorporateDirectory |
getCorporateDirectory()
Gets the corporate directory for the Process Manager cluster. |
IDeploymentManager |
getDeploymentManager()
Gets the deployment manager object for this cluster. |
IFinder |
getFinder()
Gets the Finder object for this cluster. |
java.lang.String |
getHomePath()
Gets the directory which is the home for Process Manager. |
java.util.Hashtable |
getInstalledApplications()
Gets a hashtable of applications that are installed in the Process Manager cluster. |
java.util.Vector |
getLog(int logType,
int size)
Gets the log of a particular type from the cluster. |
IPMIDManager |
getPMIDManager()
Gets the PMIDManager object for this cluster. |
IRoleCache |
getRoleCache()
Gets the role cache object for this cluster. |
java.lang.String |
getTempPath()
Gets the directory which is used as scratch pad inside Process Manager. |
java.lang.String |
getVersion()
Gets the version of the Process Manager cluster. |
boolean |
isDefined()
Indicates whether the cluster has been defined or not. |
void |
log(java.lang.Exception e)
Logs an exception into the cluster logs of Process Manager. |
void |
synchronize()
Synchronizes the Process Manager cluster with the configuration directory. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Field Detail |
public static final java.lang.String DEFAULT_JNDI_ROOT
public static final java.lang.String DEFAULT_CLUSTER_NAME
public static final java.lang.String DEFAULT
public static final java.lang.String VERSION
Method Detail |
public void changeCluster(IPMClusterProperty prop) throws java.rmi.RemoteException, PMException
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 = clManger.getCluster ( IPMCluster.DEFAULT ) ; IPMClusterProperty prop = PMClusterPropertyFactory.create ( ) ; // set various methods of the prop variable by calling the setValue() method // on the IPMClusterProperty interface .... ... // call changeCluster() pmc.changeCluster ( prop ) ;
prop
- The IPMClusterProperty that will be used to change the properties
of the clusterPMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IPMClusterProperty
public java.lang.String getVersion() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.public boolean isDefined() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.public java.lang.String getClasspath() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.public java.lang.String getTempPath() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.public java.lang.String getHomePath() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.public java.lang.String getApplicationsPath() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.public void synchronize() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.public IPMApplication getApplication(java.lang.String appName) throws java.rmi.RemoteException, PMException
appName
- The name of the application which is to be looked up.PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IPMApplication
public java.util.Hashtable getInstalledApplications() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IDeploymentDescriptor
,
IDeploymentManager
public ICorporateDirectory getCorporateDirectory() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.ICorporateDirectory
public IRoleCache getRoleCache() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IRoleCache
public IPMIDManager getPMIDManager() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IPMIDManager
public IFinder getFinder() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IFinder
public IDeploymentManager getDeploymentManager() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.com.netscape.pm.model.IDeploymentManager
public IPMClusterProperty getClusterProperty() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IPMClusterProperty
public void log(java.lang.Exception e) throws java.rmi.RemoteException, PMException
java.lang.Exception
- This parameter can also be a com.netscape.pm.model.PMException.PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.PMException
public java.util.Vector getLog(int logType, int size) throws java.rmi.RemoteException, PMException
logType
- This parameter should be set to one of three following types
size
- This specifies the number of log entries that the cluster should return.
In order to get back the entire log, this parameter should be set to
IPMClusterProperty.MAX_LOG_SIZE.PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.IPMClusterProperty
public java.sql.Connection getConnection() throws java.rmi.RemoteException, PMException
PMException
- An application level exception thrown
by Process Manager.java.rmi.RemoteException
- A remote exception thrown by the container.Connection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |