ClientProcessorMBean, PacketTransportListener, ActiveObjectpublic final class ClientProcessor extends java.lang.Object implements PacketTransportListener, ActiveObject, ClientProcessorMBean
| Modifier and Type | Field | Description |
|---|---|---|
protected PacketTransport |
transport |
| Constructor | Description |
|---|---|
ClientProcessor(java.lang.String id,
AbstractClientListener parentListener,
FFMQEngine engine,
PacketTransport transport) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getClientID() |
Get the client ID
|
java.util.Date |
getConnectionDate() |
Get the client last activity timestamp
|
int |
getConsumersCount() |
Get the number of consumers in use for this client
|
java.lang.String |
getEntitiesDescription() |
Get a description of entities held by this client
|
long |
getLastActivity() |
|
java.lang.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(java.lang.String id,
AbstractClientListener parentListener,
FFMQEngine engine,
PacketTransport transport)
public java.lang.String getClientID()
ClientProcessorMBeangetClientID in interface ClientProcessorMBeanpublic java.lang.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 java.lang.String getEntitiesDescription()
ClientProcessorMBeangetEntitiesDescription in interface ClientProcessorMBeanpublic void start()
throws PacketTransportException
PacketTransportExceptionpublic void stop()
public long getLastActivity()
getLastActivity in interface ActiveObjectpublic java.util.Date getConnectionDate()
ClientProcessorMBeangetConnectionDate in interface ClientProcessorMBeanpublic long getTimeoutDelay()
getTimeoutDelay in interface ActiveObjectpublic boolean onActivityTimeout()
throws java.lang.Exception
onActivityTimeout in interface ActiveObjectjava.lang.Exceptionpublic 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 © 2021. All rights reserved.