org.jbpm.task.service.hornetq
Class HornetQTaskClientConnector

java.lang.Object
  extended by org.jbpm.task.service.hornetq.HornetQTaskClientConnector
All Implemented Interfaces:
org.jbpm.task.service.TaskClientConnector

public class HornetQTaskClientConnector
extends Object
implements org.jbpm.task.service.TaskClientConnector


Field Summary
protected  AtomicInteger counter
           
protected  org.jbpm.task.service.BaseClientHandler handler
           
protected  String name
           
protected  org.hornetq.api.core.client.ClientSession session
           
 
Constructor Summary
HornetQTaskClientConnector(String name, org.jbpm.task.service.BaseClientHandler handler)
           
 
Method Summary
 boolean connect()
           
 boolean connect(String address, int port)
           
 void disconnect()
           
 AtomicInteger getCounter()
           
 org.jbpm.task.service.BaseHandler getHandler()
           
 String getName()
           
 void write(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected org.hornetq.api.core.client.ClientSession session

handler

protected final org.jbpm.task.service.BaseClientHandler handler

name

protected final String name

counter

protected AtomicInteger counter
Constructor Detail

HornetQTaskClientConnector

public HornetQTaskClientConnector(String name,
                                  org.jbpm.task.service.BaseClientHandler handler)
Method Detail

connect

public boolean connect(String address,
                       int port)
Specified by:
connect in interface org.jbpm.task.service.TaskClientConnector

connect

public boolean connect()
Specified by:
connect in interface org.jbpm.task.service.TaskClientConnector

disconnect

public void disconnect()
                throws Exception
Specified by:
disconnect in interface org.jbpm.task.service.TaskClientConnector
Throws:
Exception

write

public void write(Object object)
Specified by:
write in interface org.jbpm.task.service.TaskClientConnector

getCounter

public AtomicInteger getCounter()
Specified by:
getCounter in interface org.jbpm.task.service.TaskClientConnector

getHandler

public org.jbpm.task.service.BaseHandler getHandler()
Specified by:
getHandler in interface org.jbpm.task.service.TaskClientConnector

getName

public String getName()
Specified by:
getName in interface org.jbpm.task.service.TaskClientConnector


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