|
||||||||||
| 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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.red5.server.api.IConnection |
|---|
IConnection.Encoding |
| Field Summary | |
|---|---|
protected static Logger |
log
Logger |
| Fields inherited from class org.red5.server.net.rtmp.RTMPConnection |
|---|
clientId, RTMP_CONNECTION_KEY, 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, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.red5.server.net.rtmp.RTMPMinaConnectionMBean |
|---|
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 Logger log
| Constructor Detail |
|---|
public RTMPMinaConnection()
| Method Detail |
|---|
public void close()
close in interface ConnectionMBeanclose in interface IConnectionclose in interface RTMPMinaConnectionMBeanclose in class RTMPConnection
public boolean connect(IScope newScope,
Object[] params)
BaseConnection
connect in interface ConnectionMBeanconnect in interface IConnectionconnect in class RTMPConnectionnewScope - New scopeparams - Parameters to connect with
public IoSession getIoSession()
public long getPendingMessages()
getPendingMessages in interface ConnectionMBeangetPendingMessages in interface IConnectiongetPendingMessages in interface RTMPMinaConnectionMBeangetPendingMessages in class BaseConnectionpublic long getReadBytes()
getReadBytes in interface ConnectionMBeangetReadBytes in interface IConnectiongetReadBytes in interface RTMPMinaConnectionMBeangetReadBytes in class RTMPConnectionpublic long getWrittenBytes()
getWrittenBytes in interface ConnectionMBeangetWrittenBytes in interface IConnectiongetWrittenBytes in interface RTMPMinaConnectionMBeangetWrittenBytes in class RTMPConnectionpublic void invokeMethod(String method)
invokeMethod in interface RTMPMinaConnectionMBeanpublic boolean isConnected()
isConnected in interface ConnectionMBeanisConnected in interface IConnectionisConnected in interface RTMPMinaConnectionMBeanisConnected in class BaseConnectionprotected void onInactive()
onInactive in class RTMPConnectionpublic void rawWrite(IoBuffer out)
rawWrite in class RTMPConnectionout - IoBufferpublic void setIoSession(IoSession protocolSession)
protocolSession - Protocol sessionpublic void write(Packet out)
write in class RTMPConnectionout - Packet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||