com.sun.caps.management.api.bpel
Class BPELManagementServiceFactory

java.lang.Object
  extended by com.sun.caps.management.api.bpel.BPELManagementServiceFactory

public class BPELManagementServiceFactory
extends java.lang.Object

The Factory class to create BPELManagementService


Constructor Summary
BPELManagementServiceFactory()
           
 
Method Summary
static BPELManagementService getBPELManagementServiceLocal(javax.management.MBeanServerConnection mbeanServerConn)
          Get the BPELManagementService by taking a local MBeanServerConnection.
static BPELManagementService getBPELManagementServiceRemote(java.lang.String jmxHostName, int jmxPort, java.lang.String jmxUserName, java.lang.String jmxPwd)
          Get the BPELManagementService by making remote JMX connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPELManagementServiceFactory

public BPELManagementServiceFactory()
Method Detail

getBPELManagementServiceRemote

public static BPELManagementService getBPELManagementServiceRemote(java.lang.String jmxHostName,
                                                                   int jmxPort,
                                                                   java.lang.String jmxUserName,
                                                                   java.lang.String jmxPwd)
                                                            throws java.lang.Exception
Get the BPELManagementService by making remote JMX connection

Parameters:
jmxHostName - The host name
jmxPort - The portNumber, default is 8686
jmxUserName - The admin userName
jmxPwd - The admin password
Returns:
BPELManagementService
Throws:
java.lang.Exception

getBPELManagementServiceLocal

public static BPELManagementService getBPELManagementServiceLocal(javax.management.MBeanServerConnection mbeanServerConn)
                                                           throws java.lang.Exception
Get the BPELManagementService by taking a local MBeanServerConnection. This is applicable when monitor client and bpelse co-locate on the same appserver and MbeanServerConnection can be obtained before calling this method

Parameters:
mbeanServerConn - The MbeanServerConnection to the AppServer
Returns:
BPELManagementService
Throws:
java.lang.Exception