public class MQTTSocket extends org.apache.activemq.transport.TransportSupport implements org.eclipse.jetty.websocket.WebSocket.OnBinaryMessage, MQTTTransport, org.apache.activemq.broker.BrokerServiceAware
org.eclipse.jetty.websocket.WebSocket.Connection, org.eclipse.jetty.websocket.WebSocket.FrameConnection, org.eclipse.jetty.websocket.WebSocket.OnBinaryMessage, org.eclipse.jetty.websocket.WebSocket.OnControl, org.eclipse.jetty.websocket.WebSocket.OnFrame, org.eclipse.jetty.websocket.WebSocket.OnTextMessage| Constructor and Description |
|---|
MQTTSocket() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop(org.apache.activemq.util.ServiceStopper stopper) |
MQTTInactivityMonitor |
getInactivityMonitor() |
X509Certificate[] |
getPeerCertificates() |
int |
getReceiveCounter() |
String |
getRemoteAddress() |
MQTTWireFormat |
getWireFormat() |
void |
onClose(int closeCode,
String message) |
void |
oneway(Object command) |
void |
onMessage(byte[] bytes,
int offset,
int length) |
void |
onOpen(org.eclipse.jetty.websocket.WebSocket.Connection connection) |
void |
sendToActiveMQ(org.apache.activemq.command.Command command) |
void |
sendToMQTT(org.fusesource.mqtt.codec.MQTTFrame command) |
void |
setBrokerService(org.apache.activemq.broker.BrokerService brokerService) |
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIsaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonException, stoppublic void onMessage(byte[] bytes,
int offset,
int length)
onMessage in interface org.eclipse.jetty.websocket.WebSocket.OnBinaryMessagepublic void onOpen(org.eclipse.jetty.websocket.WebSocket.Connection connection)
onOpen in interface org.eclipse.jetty.websocket.WebSocketpublic void onClose(int closeCode,
String message)
onClose in interface org.eclipse.jetty.websocket.WebSocketprotected void doStart()
throws Exception
doStart in class org.apache.activemq.util.ServiceSupportExceptionprotected void doStop(org.apache.activemq.util.ServiceStopper stopper)
throws Exception
doStop in class org.apache.activemq.util.ServiceSupportExceptionpublic int getReceiveCounter()
getReceiveCounter in interface org.apache.activemq.transport.Transportpublic String getRemoteAddress()
getRemoteAddress in interface org.apache.activemq.transport.Transportpublic void oneway(Object command) throws IOException
oneway in interface org.apache.activemq.transport.TransportIOExceptionpublic void sendToActiveMQ(org.apache.activemq.command.Command command)
sendToActiveMQ in interface MQTTTransportpublic void sendToMQTT(org.fusesource.mqtt.codec.MQTTFrame command)
throws IOException
sendToMQTT in interface MQTTTransportIOExceptionpublic X509Certificate[] getPeerCertificates()
getPeerCertificates in interface MQTTTransportpublic MQTTInactivityMonitor getInactivityMonitor()
getInactivityMonitor in interface MQTTTransportpublic MQTTWireFormat getWireFormat()
getWireFormat in interface MQTTTransportpublic void setBrokerService(org.apache.activemq.broker.BrokerService brokerService)
setBrokerService in interface org.apache.activemq.broker.BrokerServiceAwareCopyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.