|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.AttributeStore
org.red5.server.BaseConnection
org.red5.server.net.rtmp.RTMPConnection
org.red5.server.net.rtmpt.RTMPTConnection
public class RTMPTConnection
A RTMPT client / session.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.red5.server.api.IConnection |
|---|
IConnection.Encoding |
| Field Summary | |
|---|---|
protected org.apache.mina.common.ByteBuffer |
buffer
Byte buffer |
protected boolean |
closing
Closing flag |
protected SimpleProtocolDecoder |
decoder
Protocol decoder |
protected SimpleProtocolEncoder |
encoder
Protocol encoder |
protected RTMPHandler |
handler
RTMP events handler |
protected static long |
INCREASE_POLLING_DELAY_COUNT
Start to increase the polling delay after this many empty results |
protected static byte |
INITIAL_POLLING_DELAY
Polling delay to start with. |
protected static org.slf4j.Logger |
log
|
protected static byte |
MAX_POLLING_DELAY
Maximum polling delay. |
protected long |
noPendingMessages
Timeframe without pending messages. |
protected List<Object> |
notifyMessages
List of notification messages |
protected List<org.apache.mina.common.ByteBuffer> |
pendingMessages
List of pending messages |
protected byte |
pollingDelay
Polling delay value |
protected long |
readBytes
Number of read bytes |
protected RTMPTServlet |
servlet
Servlet that created this connection. |
protected long |
writtenBytes
Number of written bytes |
| Fields inherited from class org.red5.server.net.rtmp.RTMPConnection |
|---|
clientId, deferredResults, encoding, invokeId, keepAliveJobName, lastPingSent, lastPingTime, lastPongReceived, maxInactivity, oName, pendingCalls, pingInterval, state, streamBuffers |
| Fields inherited from class org.red5.server.BaseConnection |
|---|
basicScopes, client, closed, droppedMessages, host, params, path, readMessages, remoteAddress, remoteAddresses, remotePort, scope, sessionId, type, writtenMessages |
| Fields inherited from class org.red5.server.AttributeStore |
|---|
attributes |
| Fields inherited from interface org.red5.server.api.IConnection |
|---|
PERSISTENT, POLLING, TRANSIENT |
| Method Summary | |
|---|---|
void |
close()
Closes connection |
List |
decode(org.apache.mina.common.ByteBuffer data)
Decode data sent by the client. |
long |
getPendingMessages()
Total number of messages that are pending to be sent to the connection. |
org.apache.mina.common.ByteBuffer |
getPendingMessages(int targetSize)
Return any pending messages up to a given size. |
byte |
getPollingDelay()
Return the polling delay to use. |
long |
getReadBytes()
Total number of bytes read from the connection. |
long |
getWrittenBytes()
Total number of bytes written to the connection. |
boolean |
isClosing()
Getter for property 'closing'. |
protected void |
onInactive()
Inactive state event handler. |
void |
rawWrite(org.apache.mina.common.ByteBuffer packet)
Send raw data down the connection. |
void |
realClose()
Real close |
protected void |
setServlet(RTMPTServlet servlet)
Set the servlet that created the connection. |
void |
setServletRequest(javax.servlet.http.HttpServletRequest request)
Setter for servlet request. |
void |
write(Packet packet)
Send RTMP packet down the connection. |
| Methods inherited from class org.red5.server.BaseConnection |
|---|
connect, dispatchEvent, getBasicScopes, getClient, getConnectParams, getDroppedMessages, getHost, getPath, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getScope, getSessionId, getType, getWrittenMessages, handleEvent, initialize, isConnected, notifyEvent, registerBasicScope, unregisterBasicScope |
| Methods inherited from class org.red5.server.AttributeStore |
|---|
filterNull, getAttribute, getAttribute, getAttributeNames, getAttributes, getBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttribute, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.red5.server.api.IConnection |
|---|
connect, getBasicScopes, getClient, getConnectParams, getDroppedMessages, getHost, getPath, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getScope, getSessionId, getType, getWrittenMessages, initialize, isConnected |
| Methods inherited from interface org.red5.server.api.ICastingAttributeStore |
|---|
getBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttribute |
| Methods inherited from interface org.red5.server.api.IAttributeStore |
|---|
getAttribute, getAttribute, getAttributeNames, getAttributes, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes |
| Methods inherited from interface org.red5.server.api.event.IEventDispatcher |
|---|
dispatchEvent |
| Methods inherited from interface org.red5.server.api.event.IEventHandler |
|---|
handleEvent |
| Methods inherited from interface org.red5.server.api.event.IEventListener |
|---|
notifyEvent |
| Field Detail |
|---|
protected static org.slf4j.Logger log
protected static final long INCREASE_POLLING_DELAY_COUNT
protected static final byte INITIAL_POLLING_DELAY
protected static final byte MAX_POLLING_DELAY
protected SimpleProtocolDecoder decoder
protected SimpleProtocolEncoder encoder
protected RTMPHandler handler
protected org.apache.mina.common.ByteBuffer buffer
protected List<org.apache.mina.common.ByteBuffer> pendingMessages
protected List<Object> notifyMessages
protected byte pollingDelay
protected long noPendingMessages
protected long readBytes
protected long writtenBytes
protected volatile boolean closing
protected RTMPTServlet servlet
| Method Detail |
|---|
public void close()
close in interface ConnectionMBeanclose in interface IConnectionclose in class RTMPConnectionprotected void setServlet(RTMPTServlet servlet)
servlet - public boolean isClosing()
public void realClose()
protected void onInactive()
onInactive in class RTMPConnectionpublic void setServletRequest(javax.servlet.http.HttpServletRequest request)
request - Servlet requestpublic byte getPollingDelay()
public List decode(org.apache.mina.common.ByteBuffer data)
data - the data to decode
public void write(Packet packet)
write in class RTMPConnectionpacket - the packet to sendpublic void rawWrite(org.apache.mina.common.ByteBuffer packet)
rawWrite in class RTMPConnectionpacket - the buffer containing the raw datapublic org.apache.mina.common.ByteBuffer getPendingMessages(int targetSize)
targetSize - the size the resulting buffer should have
public long getReadBytes()
getReadBytes in interface ConnectionMBeangetReadBytes in interface IConnectiongetReadBytes in class RTMPConnectionpublic long getWrittenBytes()
getWrittenBytes in interface ConnectionMBeangetWrittenBytes in interface IConnectiongetWrittenBytes in class RTMPConnectionpublic long getPendingMessages()
getPendingMessages in interface ConnectionMBeangetPendingMessages in interface IConnectiongetPendingMessages in class BaseConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||