org.jbpm.integration.console
Class TaskClientFactory
java.lang.Object
org.jbpm.integration.console.TaskClientFactory
public class TaskClientFactory
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TASK_SERVICE_STRATEGY
public static final String DEFAULT_TASK_SERVICE_STRATEGY
- See Also:
- Constant Field Values
DEFAULT_IP_ADDRESS
public static final String DEFAULT_IP_ADDRESS
- See Also:
- Constant Field Values
TaskClientFactory
public TaskClientFactory()
newInstance
public static TaskService newInstance(Properties properties,
String connectorId)
- Produces new instance of TaskClient based on given properties and assignes as connector identifier given connectorId.
Main property that drives type of a client (mina, hornetq, jms) is jbpm.console.task.service.strategy. If not given
it will apply DEFAULT_TASK_SERVICE_STRATEGY which is mina.
Other transport specific properties must be given as part of the properties.
Common properties are:
jbpm.console.task.service.host
jbpm.console.task.service.port
- Parameters:
properties - properties required to create task clientconnectorId - identifier that will be assigned to the connector
- Returns:
- new instance of task client that is already connected
- Throws:
IllegalArgumentException - in case unknown type of a task client is given as jbpm.console.task.service.strategy or connection to the task server failed.
newAsyncInstance
public static TaskClient newAsyncInstance(Properties properties,
String connectorId)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.