Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


com.oracle.bpel.client
Interface IBPELDomainHandle


public interface IBPELDomainHandle

The IBPELDomainHandle interface allows the developer to perform operations on a running BPEL process domain. The BPEL process domain hosts BPEL processes and provides the necessary run-time services needed to initiate and complete instances of BPEL processes.

The process domain supports versioning for deployed BPEL processes. A BPEL process may be deployed multiple times under different revision tags. However, only the most recent revision may be used to instantiate new instances (these process revisions are called "open"); active instances belonging to older revisions are permitted to complete normally.

Since:
1.0

Method Summary
 int cancelCallbackMessages(java.lang.String[] messageGUIDs)
          Marks a list of callback messages as cancelled by the BPEL domain.
 int cancelInvokeMessages(java.lang.String[] messageGUIDs)
          Marks a list of invocation messages as cancelled by the BPEL domain.
 void changePassword(java.lang.String newPassword)
          Changes the password for the process domain.
 void clearAllProcessEvents()
           
 void clearProcessEvents(BPELProcessId processId)
           
 void clearStatistics()
          Clears the current set of statistics gathered by the process domain (includes synchronous, asynchronous and request).
 void clearWSDLCache()
          Clear all the WSDLs cached in the WSDL manager of this domain.
 int deleteAllInstances()
          Deletes all the instances contained in the process domain.
 int deleteCallbackMessages(java.lang.String[] messageGUIDs)
          Deletes a list of callback messages from the BPEL domain.
 int deleteInstancesByProcessId(BPELProcessId processId)
          Deletes all the instances contained in the process domain for the specified BPEL process.
 int deleteInvokeMessages(java.lang.String[] messageGUIDs)
          Deletes a list of invocation messages from the BPEL domain.
 void deployProcess(java.io.File f)
          Deprecated. since 10.1.3, use deploySuitcase( File )
 void deployProcess(java.io.InputStream is, java.lang.String fileName)
          Deprecated. since 10.1.3, use deploySuitcase( InputStream )
 void deploySuitcase(java.io.File f)
           
 void deploySuitcase(java.io.InputStream is)
           
 int getActiveProcessCount()
          Returns the number of open processes that have been deployed to this process domain.
 Statistics[] getAsyncStatistics()
          Returns a list of statistics regarding the process domain's performance with asynchronous instances.
 java.lang.String getCallbackContent(java.lang.String messageGUID)
          Returns the callback message with the specified message GUID.
 int getClosedInstanceCount()
          Returns the number of closed instances that belong to this process domain.
 com.oracle.bpel.client.config.BPELDomainDescriptor getDescriptor()
          Returns the domain descriptor for this BPEL domain.
 java.lang.String getDispatcherTrace()
          Returns an XML dump of the current messages contained in the BPEL server's dispatcher.
 java.lang.String getDomainId()
          Returns the identifier of the process domain.
 java.lang.String getHomeDir()
          Returns the absolute path to the directory where the process domain is installed.
 java.lang.String getInvokeContent(java.lang.String messageGUID)
          Returns the invocation message with the specified message GUID.
 java.lang.String getLogContent(java.lang.String logFileName, int lastN)
          Returns the last lastN lines of the specified log file for this BPEL domain.
 int getOpenInstanceCount()
          Returns the number of open instances that have been created in this process domain.
 java.util.Map getProperties()
          Returns the properties contained in the domain descriptor configuration file.
 Statistics[] getRequestStatistics()
          Returns a list of statistics regarding the process domain's performance for individual requests.
 int getRetiredProcessCount()
          Returns the number of closed processes that have been deployed to this process domain.
 byte[] getSuitcase(java.lang.String suitcaseId)
           
 Statistics[] getSyncStatistics()
          performance with synchronous instances.
 java.lang.String getXMLDocument(java.lang.String dockey)
           
 IBPELProcessHandle[] listActiveProcesses()
          Returns a list of all the open (those processes that can instantiate new instances) processes that have been deployed to the process domain.
 LogFileInfo[] listLogFiles()
          Returns list of log files used by the BPEL domain to log error/debug/informational messages.
 java.util.Map listLoggers()
          Returns a list of all the loggers defined for the domain.
 IBPELProcessHandle[] listProcesses()
          Returns a list of all the processes that have been deployed to the process domain.
 void logProcessEvent(BPELProcessEvent event)
          Logs an event for a process deployed on this BPEL domain.
 void pingDispatcher()
          Pings the dispatcher by sending no-op message to the engine dispatcher.
 int recoverActivities(java.lang.String[] correlationIds)
          Schedules a list of activities to be recovered by the BPEL domain.
 int recoverCallbackMessages(java.lang.String[] messageGUIDs)
          Schedules a list of callback messages to be recovered by the BPEL domain.
 int recoverInvokeMessages(java.lang.String[] messageGUIDs)
          Schedules a list of invocation messages to be recovered by the BPEL domain.
 void refreshAlarmTable()
           
 void undeployProcess(BPELProcessId processId)
          Undeploys an existing process from the BPEL process domain.
 void updateDescriptor(com.oracle.bpel.client.config.BPELDomainDescriptor dd)
          Updates the domain descriptor of the BPEL domain with the values contained in the passed descriptor.
 void updateLoggers(java.util.Map levels)
          Updates the loggers defined for the BPEL domain with the specified logging levels.

 

Method Detail

getDomainId

java.lang.String getDomainId()
Returns the identifier of the process domain. The identifier is used to differentiate between multiple installations of Orabpel on the same application server.

getHomeDir

java.lang.String getHomeDir()
                            throws ServerException
Returns the absolute path to the directory where the process domain is installed.
Throws:
ServerException - if there is a problem connecting to the domain.

getProperties

java.util.Map getProperties()
                            throws ServerException
Returns the properties contained in the domain descriptor configuration file.
Throws:
ServerException

changePassword

void changePassword(java.lang.String newPassword)
                    throws ServerException
Changes the password for the process domain.
Parameters:
oldPassword - the existing process domain password
newPassword - the new process domain password
Throws:
ServerException - if there is a problem connecting to the domain or if the old password supplied is incorrect.

getDescriptor

com.oracle.bpel.client.config.BPELDomainDescriptor getDescriptor()
                                                                 throws ServerException
Returns the domain descriptor for this BPEL domain. The domain descriptor contains run-time configurable properties such as optimization flags.
Throws:
ServerException - if there is a problem connecting to the domain.

updateDescriptor

void updateDescriptor(com.oracle.bpel.client.config.BPELDomainDescriptor dd)
                      throws ServerException
Updates the domain descriptor of the BPEL domain with the values contained in the passed descriptor.
Throws:
ServerException - if there is a problem connecting to the domain or if there is a problem updating the domain.

listLoggers

java.util.Map listLoggers()
                          throws ServerException
Returns a list of all the loggers defined for the domain. Currently, the BPEL server uses log4j to log error/debug/informational messages. This method will return a list of all the log4j logger names that have been defined for this domain.
Returns:
a Map with the logger name as the key and the current logger level as a String.
Throws:
ServerException - if there is a problem connecting to the domain.

updateLoggers

void updateLoggers(java.util.Map levels)
                   throws ServerException
Updates the loggers defined for the BPEL domain with the specified logging levels. Currently, the BPEL server uses log4j to log error/debug/informational messages. The logging levels recognized by the domain are: