public final class ClientProcessor extends Object implements PacketTransportListener, ActiveObject, ClientProcessorMBean
| Modifier and Type | Field and Description |
|---|---|
protected PacketTransport |
transport |
| Constructor and Description |
|---|
ClientProcessor(String id,
AbstractClientListener parentListener,
FFMQEngine engine,
PacketTransport transport)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClientID()
Get the client ID
|
Date |
getConnectionDate()
Get the client last activity timestamp
|
int |
getConsumersCount()
Get the number of consumers in use for this client
|
String |
getEntitiesDescription()
Get a description of entities held by this client
|
long |
getLastActivity() |
String |
getPeerDescription()
Get the client peer description
|
int |
getProducersCount()
Get the number of producers in use for this client
|
int |
getSessionsCount()
Get the number of sessions in use for this client
|
long |
getTimeoutDelay() |
boolean |
isAuthenticated()
Test if the client is authenticated
|
boolean |
onActivityTimeout() |
boolean |
packetReceived(AbstractPacket packet) |
void |
packetSent(AbstractPacket packet) |
protected AbstractResponsePacket |
process(AbstractQueryPacket query)
Process an incoming packet
|
void |
start()
Start the processor
|
void |
stop()
Stop the processor
|
void |
transportClosed(boolean closedByRemotePeer,
boolean mayBlock) |
protected PacketTransport transport
public ClientProcessor(String id, AbstractClientListener parentListener, FFMQEngine engine, PacketTransport transport)
public String getClientID()
ClientProcessorMBeangetClientID in interface ClientProcessorMBeanpublic String getPeerDescription()
ClientProcessorMBeangetPeerDescription in interface ClientProcessorMBeanpublic boolean isAuthenticated()
ClientProcessorMBeanisAuthenticated in interface ClientProcessorMBeanpublic int getSessionsCount()
ClientProcessorMBeangetSessionsCount in interface ClientProcessorMBeanpublic int getProducersCount()
ClientProcessorMBeangetProducersCount in interface ClientProcessorMBeanpublic int getConsumersCount()
ClientProcessorMBeangetConsumersCount in interface ClientProcessorMBeanpublic String getEntitiesDescription()
ClientProcessorMBeangetEntitiesDescription in interface ClientProcessorMBeanpublic void start()
throws PacketTransportException
PacketTransportExceptionpublic void stop()
public long getLastActivity()
getLastActivity in interface ActiveObjectpublic Date getConnectionDate()
ClientProcessorMBeangetConnectionDate in interface ClientProcessorMBeanpublic long getTimeoutDelay()
getTimeoutDelay in interface ActiveObjectpublic boolean onActivityTimeout()
throws Exception
onActivityTimeout in interface ActiveObjectExceptionpublic boolean packetReceived(AbstractPacket packet)
packetReceived in interface PacketTransportListenerpublic void packetSent(AbstractPacket packet)
packetSent in interface PacketTransportListenerpublic void transportClosed(boolean closedByRemotePeer,
boolean mayBlock)
transportClosed in interface PacketTransportListenerprotected AbstractResponsePacket process(AbstractQueryPacket query) throws javax.jms.JMSException
javax.jms.JMSExceptionCopyright © 2018. All rights reserved.