org.jbpm.process.workitem.wsht
Class AsyncGenericHTWorkItemHandler

java.lang.Object
  extended by org.jbpm.process.workitem.wsht.AbstractHTWorkItemHandler
      extended by org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler
All Implemented Interfaces:
WorkItemHandler
Direct Known Subclasses:
AsyncHornetQHTWorkItemHandler, AsyncMinaHTWorkItemHandler

public class AsyncGenericHTWorkItemHandler
extends AbstractHTWorkItemHandler


Field Summary
 
Fields inherited from class org.jbpm.process.workitem.wsht.AbstractHTWorkItemHandler
action, eventHandlers, session
 
Constructor Summary
AsyncGenericHTWorkItemHandler(KnowledgeRuntime session)
           
AsyncGenericHTWorkItemHandler(KnowledgeRuntime session, boolean owningSessionOnly)
           
AsyncGenericHTWorkItemHandler(KnowledgeRuntime session, OnErrorAction action)
           
AsyncGenericHTWorkItemHandler(KnowledgeRuntime session, OnErrorAction action, ClassLoader classLoader)
           
 
Method Summary
 void abortWorkItem(WorkItem workItem, WorkItemManager manager)
          The given work item should be aborted.
 void connect()
           
 void dispose()
           
 void executeWorkItem(WorkItem workItem, WorkItemManager manager)
          The given work item should be executed.
 ClassLoader getClassLoader()
           
 AsyncTaskService getClient()
           
 String getIpAddress()
           
 int getPort()
           
 boolean isConnected()
           
 boolean isLocal()
           
 boolean isOwningSessionOnly()
           
 void setClassLoader(ClassLoader classLoader)
           
 void setClient(AsyncTaskService client)
           
 void setIpAddress(String ipAddress)
           
 void setLocal(boolean local)
           
 void setOwningSessionOnly(boolean owningSessionOnly)
           
 void setPort(int port)
           
 
Methods inherited from class org.jbpm.process.workitem.wsht.AbstractHTWorkItemHandler
createTaskBasedOnWorkItemParams, createTaskContentBasedOnWorkItemParams, setAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncGenericHTWorkItemHandler

public AsyncGenericHTWorkItemHandler(KnowledgeRuntime session,
                                     OnErrorAction action,
                                     ClassLoader classLoader)

AsyncGenericHTWorkItemHandler

public AsyncGenericHTWorkItemHandler(KnowledgeRuntime session,
                                     OnErrorAction action)

AsyncGenericHTWorkItemHandler

public AsyncGenericHTWorkItemHandler(KnowledgeRuntime session)

AsyncGenericHTWorkItemHandler

public AsyncGenericHTWorkItemHandler(KnowledgeRuntime session,
                                     boolean owningSessionOnly)
Method Detail

getClient

public AsyncTaskService getClient()

setClient

public void setClient(AsyncTaskService client)

setIpAddress

public void setIpAddress(String ipAddress)

setPort

public void setPort(int port)

setLocal

public void setLocal(boolean local)

isConnected

public boolean isConnected()

getIpAddress

public String getIpAddress()

isLocal

public boolean isLocal()

getPort

public int getPort()

getClassLoader

public ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(ClassLoader classLoader)

connect

public void connect()

dispose

public void dispose()
             throws Exception
Throws:
Exception

executeWorkItem

public void executeWorkItem(WorkItem workItem,
                            WorkItemManager manager)
Description copied from interface: WorkItemHandler
The given work item should be executed.

Specified by:
executeWorkItem in interface WorkItemHandler
Specified by:
executeWorkItem in class AbstractHTWorkItemHandler
Parameters:
workItem - the work item that should be executed
manager - the manager that requested the work item to be executed

abortWorkItem

public void abortWorkItem(WorkItem workItem,
                          WorkItemManager manager)
Description copied from interface: WorkItemHandler
The given work item should be aborted.

Specified by:
abortWorkItem in interface WorkItemHandler
Specified by:
abortWorkItem in class AbstractHTWorkItemHandler
Parameters:
workItem - the work item that should be aborted
manager - the manager that requested the work item to be aborted

isOwningSessionOnly

public boolean isOwningSessionOnly()

setOwningSessionOnly

public void setOwningSessionOnly(boolean owningSessionOnly)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.