public class BpelServerImpl extends java.lang.Object implements BpelServer, Scheduler.JobProcessor
The BPEL server implementation.
This implementation is intended to be thread safe. The key concurrency mechanism is a "management" read/write lock that synchronizes all management operations (they require "write" access) and prevents concurrent management operations and processing (processing requires "read" access). Write access to the lock is scoped to the method, while read access is scoped to a transaction.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BpelServerImpl.ContextsAware
A polled runnable instance that implements this interface will be set
with the contexts before the run() method is called.
|
static class |
BpelServerImpl.PolledRunnableProcessor
This wraps up the executor service for polled runnables.
|
| Modifier and Type | Field and Description |
|---|---|
protected BpelDatabase |
_db |
static java.lang.String |
DEFERRED_PROCESS_INSTANCE_CLEANUP_DISABLED_NAME |
| Constructor and Description |
|---|
BpelServerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireTransactionLocks() |
void |
cleanupProcess(ProcessConf pconf) |
protected BpelEngineImpl |
createBpelEngineImpl(Contexts contexts) |
protected BpelProcess |
createBpelProcess(ProcessConf conf) |
protected boolean |
deleteProcessDAO(javax.xml.namespace.QName pid,
boolean isInMemory) |
BpelDatabase |
getBpelDb() |
Contexts |
getContexts() |
DebuggerContext |
getDebugger(javax.xml.namespace.QName pid) |
BpelEngine |
getEngine() |
BpelEngine |
getEngineUnsecured()
This is the unsecured version of above method getEngine.
|
com.hazelcast.core.HazelcastInstance |
getHazelcastInstance() |
boolean |
hasActiveInstances(javax.xml.namespace.QName pid) |
void |
init() |
void |
onScheduledJob(Scheduler.JobInfo jobInfo) |
void |
register(ProcessConf conf) |
void |
registerBpelEventListener(BpelEventListener listener)
Register a global listener to receive
BpelEvents froom all
processes. |
void |
registerExtensionBundle(ExtensionBundleRuntime bundle) |
void |
registerExtensionCorrelationFilter(ExtensionCorrelationFilter filter) |
void |
registerExternalVariableEngine(ExternalVariableModule eve) |
void |
registerMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
Register a global message exchange interceptor.
|
void |
setBindingContext(BindingContext bc) |
void |
setConfigProperties(java.util.Properties configProperties) |
void |
setCronScheduler(CronScheduler cronScheduler) |
void |
setDaoConnectionFactory(BpelDAOConnectionFactory daoCF)
Set the DAO connection factory.
|
void |
setDehydrationPolicy(DehydrationPolicy dehydrationPolicy) |
void |
setEndpointReferenceContext(EndpointReferenceContext eprContext) |
void |
setHazelcastInstance(com.hazelcast.core.HazelcastInstance instance) |
void |
setHydrationLazy(boolean hydrationLazy) |
void |
setHydrationLazyMinimumSize(int hydrationLazyMinimumSize) |
void |
setInMemDaoConnectionFactory(BpelDAOConnectionFactory daoCF) |
void |
setInstanceThrottledMaximumCount(int instanceThrottledMaximumCount) |
void |
setMessageExchangeContext(MessageExchangeContext mexContext) |
void |
setMigrationTransactionTimeout(int migrationTransactionTimeout) |
void |
setProcessThrottledMaximumCount(int hydrationThrottledMaximumCount) |
void |
setProcessThrottledMaximumSize(long hydrationThrottledMaximumSize) |
void |
setScheduler(Scheduler scheduler) |
void |
shutdown() |
void |
start() |
void |
stop() |
void |
unregister(javax.xml.namespace.QName pid) |
void |
unregisterBpelEventListener(BpelEventListener listener)
Unregister a global listener from receive
BpelEvents from all
processes. |
void |
unregisterExtensionBundle(java.lang.String nsURI) |
void |
unregisterExtensionCorrelationFilter(java.lang.String nsURI) |
void |
unregisterMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
Unregister a global message exchange interceptor.
|
public static final java.lang.String DEFERRED_PROCESS_INSTANCE_CLEANUP_DISABLED_NAME
protected BpelDatabase _db
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance instance)
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
public Contexts getContexts()
public void start()
start in interface BpelServerpublic void registerExternalVariableEngine(ExternalVariableModule eve)
public void registerBpelEventListener(BpelEventListener listener)
BpelEvents froom all
processes.listener - public void unregisterBpelEventListener(BpelEventListener listener)
BpelEvents from all
processes.listener - public void stop()
stop in interface BpelServerpublic void init()
throws BpelEngineException
init in interface BpelServerBpelEngineExceptionprotected BpelEngineImpl createBpelEngineImpl(Contexts contexts)
public void shutdown()
throws BpelEngineException
shutdown in interface BpelServerBpelEngineExceptionpublic BpelEngine getEngine()
getEngine in interface BpelServerpublic BpelEngine getEngineUnsecured()
public void register(ProcessConf conf)
register in interface BpelServerprotected BpelProcess createBpelProcess(ProcessConf conf)
public void unregister(javax.xml.namespace.QName pid)
throws BpelEngineException
unregister in interface BpelServerBpelEngineExceptionpublic void registerMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
interceptor - message-exchange interceptorpublic void unregisterMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
interceptor - message-exchange interceptorprotected boolean deleteProcessDAO(javax.xml.namespace.QName pid,
boolean isInMemory)
public void onScheduledJob(Scheduler.JobInfo jobInfo) throws Scheduler.JobProcessorException
onScheduledJob in interface Scheduler.JobProcessorScheduler.JobProcessorExceptionpublic void setDehydrationPolicy(DehydrationPolicy dehydrationPolicy)
public void setConfigProperties(java.util.Properties configProperties)
public void setMessageExchangeContext(MessageExchangeContext mexContext) throws BpelEngineException
setMessageExchangeContext in interface BpelServerBpelEngineExceptionpublic void setScheduler(Scheduler scheduler) throws BpelEngineException
setScheduler in interface BpelServerBpelEngineExceptionpublic void setCronScheduler(CronScheduler cronScheduler) throws BpelEngineException
BpelEngineExceptionpublic void setEndpointReferenceContext(EndpointReferenceContext eprContext) throws BpelEngineException
setEndpointReferenceContext in interface BpelServerBpelEngineExceptionpublic void setDaoConnectionFactory(BpelDAOConnectionFactory daoCF) throws BpelEngineException
daoCF - BpelDAOConnectionFactory implementation.BpelEngineExceptionpublic void setInMemDaoConnectionFactory(BpelDAOConnectionFactory daoCF)
public void setBindingContext(BindingContext bc)
setBindingContext in interface BpelServerpublic DebuggerContext getDebugger(javax.xml.namespace.QName pid) throws BpelEngineException
getDebugger in interface BpelServerBpelEngineExceptionpublic boolean hasActiveInstances(javax.xml.namespace.QName pid)
public void setHydrationLazy(boolean hydrationLazy)
public void setProcessThrottledMaximumSize(long hydrationThrottledMaximumSize)
public void setProcessThrottledMaximumCount(int hydrationThrottledMaximumCount)
public void setHydrationLazyMinimumSize(int hydrationLazyMinimumSize)
public void setInstanceThrottledMaximumCount(int instanceThrottledMaximumCount)
public BpelDatabase getBpelDb()
public void cleanupProcess(ProcessConf pconf) throws BpelEngineException
cleanupProcess in interface BpelServerBpelEngineExceptionpublic void setMigrationTransactionTimeout(int migrationTransactionTimeout)
public void acquireTransactionLocks()
acquireTransactionLocks in interface BpelServerpublic void registerExtensionBundle(ExtensionBundleRuntime bundle)
public void unregisterExtensionBundle(java.lang.String nsURI)
public void registerExtensionCorrelationFilter(ExtensionCorrelationFilter filter)
public void unregisterExtensionCorrelationFilter(java.lang.String nsURI)
Copyright © 2021 WSO2. All Rights Reserved.