|
||||||||||
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.rtmp.RTMPMinaConnection
public class RTMPMinaConnection
Represents an RTMP connection using Mina.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.red5.server.api.IConnection |
---|
IConnection.Encoding |
Field Summary | |
---|---|
protected static org.slf4j.Logger |
log
|
Fields inherited from class org.red5.server.net.rtmp.RTMPConnection |
---|
bytesReadInterval, clientId, nextBytesRead, RTMP_CONNECTION_KEY, RTMP_ENCRYPTED, RTMP_HANDSHAKE, RTMP_NON_ENCRYPTED, RTMPE_CIPHER_IN, RTMPE_CIPHER_OUT, state |
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 |
Constructor Summary | |
---|---|
RTMPMinaConnection()
Constructs a new RTMPMinaConnection. |
Method Summary | |
---|---|
void |
close()
Closes connection |
boolean |
connect(IScope newScope,
Object[] params)
Connect to another scope on server with given parameters |
IoSession |
getIoSession()
Return MINA I/O session. |
long |
getPendingMessages()
Total number of messages that are pending to be sent to the connection. |
long |
getReadBytes()
Total number of bytes read from the connection. |
long |
getWrittenBytes()
Total number of bytes written to the connection. |
void |
invokeMethod(String method)
|
boolean |
isConnected()
Check whether connection is alive |
protected void |
onInactive()
Inactive state event handler. |
void |
rawWrite(IoBuffer out)
Write raw byte buffer. |
void |
setIoSession(IoSession protocolSession)
Setter for MINA I/O session (connection). |
void |
write(Packet out)
Write packet. |
Methods inherited from class org.red5.server.BaseConnection |
---|
connect, dispatchEvent, getBasicScopes, getClient, getConnectParams, getDroppedMessages, getHost, getNextClientId, getPath, getReadLock, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getScope, getSessionId, getType, getWriteLock, getWrittenMessages, handleEvent, initialize, 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.red5.server.jmx.mxbeans.RTMPMinaConnectionMXBean |
---|
getConnectParams, getDroppedMessages, getHost, getPath, getPendingVideoMessages, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getSessionId, getType, getWrittenMessages |
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 |
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
Constructor Detail |
---|
@ConstructorProperties(value="persistent") public RTMPMinaConnection()
Method Detail |
---|
public void close()
close
in interface IConnection
close
in interface RTMPMinaConnectionMXBean
close
in class RTMPConnection
public boolean connect(IScope newScope, Object[] params)
BaseConnection
connect
in interface IConnection
connect
in class RTMPConnection
newScope
- New scopeparams
- Parameters to connect with
public IoSession getIoSession()
public long getPendingMessages()
getPendingMessages
in interface IConnection
getPendingMessages
in interface RTMPMinaConnectionMXBean
getPendingMessages
in class BaseConnection
public long getReadBytes()
getReadBytes
in interface IConnection
getReadBytes
in interface RTMPMinaConnectionMXBean
getReadBytes
in class RTMPConnection
public long getWrittenBytes()
getWrittenBytes
in interface IConnection
getWrittenBytes
in interface RTMPMinaConnectionMXBean
getWrittenBytes
in class RTMPConnection
public void invokeMethod(String method)
invokeMethod
in interface RTMPMinaConnectionMXBean
public boolean isConnected()
isConnected
in interface IConnection
isConnected
in interface RTMPMinaConnectionMXBean
isConnected
in class BaseConnection
protected void onInactive()
onInactive
in class RTMPConnection
public void rawWrite(IoBuffer out)
rawWrite
in class RTMPConnection
out
- IoBufferpublic void setIoSession(IoSession protocolSession)
protocolSession
- Protocol sessionpublic void write(Packet out)
write
in class RTMPConnection
out
- Packet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |