|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ode.bpel.engine.BpelServerImpl
public class BpelServerImpl
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.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
protected BpelDatabase |
_db
|
static java.lang.String |
DEFERRED_PROCESS_INSTANCE_CLEANUP_DISABLED_NAME
|
| Constructor Summary | |
|---|---|
BpelServerImpl()
|
|
| Method Summary | |
|---|---|
void |
cleanupProcess(ProcessConf pconf)
|
protected BpelEngineImpl |
createBpelEngineImpl(Contexts contexts)
|
protected BpelProcess |
createBpelProcess(ProcessConf conf)
|
protected boolean |
deleteProcessDAO(javax.xml.namespace.QName pid,
boolean isInMemory)
|
Contexts |
getContexts()
|
DebuggerContext |
getDebugger(javax.xml.namespace.QName pid)
|
BpelEngine |
getEngine()
Get the BpelEngine interface for handling transaction operations. |
boolean |
hasActiveInstances(javax.xml.namespace.QName pid)
|
void |
init()
Initialize the BPEL engine. |
void |
onScheduledJob(Scheduler.JobInfo jobInfo)
Implements execution of the job. |
void |
register(ProcessConf conf)
Register a process with the server. |
void |
registerBpelEventListener(BpelEventListener listener)
Register a global listener to receive BpelEvents froom all
processes. |
void |
registerExternalVariableEngine(ExternalVariableModule eve)
|
void |
registerMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
Register a global message exchange interceptor. |
void |
setBindingContext(BindingContext bc)
Configure the with a binding context. |
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)
Configure the with an endpoint-reference (EPR) context. |
void |
setHydrationLazy(boolean hydrationLazy)
|
void |
setHydrationLazyMinimumSize(int hydrationLazyMinimumSize)
|
void |
setInMemDaoConnectionFactory(BpelDAOConnectionFactory daoCF)
|
void |
setInstanceThrottledMaximumCount(int instanceThrottledMaximumCount)
|
void |
setMessageExchangeContext(MessageExchangeContext mexContext)
Configure the with a message-exchange context. |
void |
setProcessThrottledMaximumCount(int hydrationThrottledMaximumCount)
|
void |
setProcessThrottledMaximumSize(long hydrationThrottledMaximumSize)
|
void |
setScheduler(Scheduler scheduler)
Configure the with a scheduler. |
void |
shutdown()
Called to shutdown the BPEL egnine. |
void |
start()
Start the BPEL engine. |
void |
stop()
Stop the BPEL engine: results in the cessation of process execution. |
void |
unregister(javax.xml.namespace.QName pid)
Unregister a process from the server. |
void |
unregisterBpelEventListener(BpelEventListener listener)
Unregister a global listener from receive BpelEvents from all
processes. |
void |
unregisterMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
Unregister a global message exchange interceptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFERRED_PROCESS_INSTANCE_CLEANUP_DISABLED_NAME
protected BpelDatabase _db
| Constructor Detail |
|---|
public BpelServerImpl()
| Method Detail |
|---|
public Contexts getContexts()
public void start()
BpelServer
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()
BpelServer
stop in interface BpelServer
public void init()
throws BpelEngineException
BpelServer
init in interface BpelServerBpelEngineExceptionprotected BpelEngineImpl createBpelEngineImpl(Contexts contexts)
public void shutdown()
throws BpelEngineException
BpelServer
shutdown in interface BpelServerBpelEngineExceptionpublic BpelEngine getEngine()
BpelServerBpelEngine interface for handling transaction operations.
getEngine in interface BpelServerBpelEngine interfaccepublic void register(ProcessConf conf)
BpelServer
register in interface BpelServerprotected BpelProcess createBpelProcess(ProcessConf conf)
public void unregister(javax.xml.namespace.QName pid)
throws BpelEngineException
BpelServer
unregister in interface BpelServerpid - process to unregister
BpelEngineExceptionpublic void registerMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
interceptor - message-exchange interceptorpublic void unregisterMessageExchangeInterceptor(MessageExchangeInterceptor interceptor)
interceptor - message-exchange interceptor
protected boolean deleteProcessDAO(javax.xml.namespace.QName pid,
boolean isInMemory)
public void onScheduledJob(Scheduler.JobInfo jobInfo)
throws Scheduler.JobProcessorException
Scheduler.JobProcessor
onScheduledJob in interface Scheduler.JobProcessorjobInfo - the job information
Scheduler.JobProcessorExceptionpublic void setDehydrationPolicy(DehydrationPolicy dehydrationPolicy)
public void setConfigProperties(java.util.Properties configProperties)
public void setMessageExchangeContext(MessageExchangeContext mexContext)
throws BpelEngineException
BpelServer
setMessageExchangeContext in interface BpelServermexContext - MessageExchangeContext implementation
BpelEngineExceptionMessageExchangeContext
public void setScheduler(Scheduler scheduler)
throws BpelEngineException
BpelServer
setScheduler in interface BpelServerBpelEngineException
public void setCronScheduler(CronScheduler cronScheduler)
throws BpelEngineException
BpelEngineException
public void setEndpointReferenceContext(EndpointReferenceContext eprContext)
throws BpelEngineException
BpelServer
setEndpointReferenceContext in interface BpelServereprContext - EndpointReferenceContext implementation
BpelEngineExceptionEndpointReferenceContext
public void setDaoConnectionFactory(BpelDAOConnectionFactory daoCF)
throws BpelEngineException
daoCF - BpelDAOConnectionFactory implementation.
BpelEngineExceptionpublic void setInMemDaoConnectionFactory(BpelDAOConnectionFactory daoCF)
public void setBindingContext(BindingContext bc)
BpelServer
setBindingContext in interface BpelServerbc - BindingContext implementationBindingContext
public DebuggerContext getDebugger(javax.xml.namespace.QName pid)
throws BpelEngineException
getDebugger in interface BpelServerpid - The process definition QName
BpelEngineException - if we could not find the processpublic 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 void cleanupProcess(ProcessConf pconf)
throws BpelEngineException
cleanupProcess in interface BpelServerBpelEngineException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||