|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.api.Red5
public final class Red5
Utility class for accessing Red5 API objects.
This class uses a thread local, and will be setup by the service invoker.
The code below shows various uses.
IConnection conn = Red5.getConnectionLocal(); Red5 r5 = new Red5(); IScope scope = r5.getScope(); conn = r5.getConnection(); r5 = new Red5(conn); IClient client = r5.getClient();
Field Summary | |
---|---|
IConnection |
conn
Connection local to the current thread |
static String |
FMS_VERSION
Current server version for fmsVer requests |
static String |
VERSION
Current server version with revision |
Constructor Summary | |
---|---|
Red5()
Create a new Red5 object using the connection local to the current thread A bit of magic that lets you access the red5 scope from anywhere |
|
Red5(IConnection conn)
Create a new Red5 object using given connection. |
Method Summary | |
---|---|
IClient |
getClient()
Get the client |
IConnection |
getConnection()
Get the connection object. |
static IConnection |
getConnectionLocal()
Get the connection associated with the current thread. |
IContext |
getContext()
Get the spring application context |
static String |
getFMSVersion()
Returns the current version for fmsVer requests |
IScope |
getScope()
Get the scope |
static long |
getUpTime()
Returns server uptime in milliseconds. |
static String |
getVersion()
Returns the current version with revision number |
static void |
setConnectionLocal(IConnection connection)
Setter for connection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IConnection conn
public static final String VERSION
public static final String FMS_VERSION
Constructor Detail |
---|
public Red5(IConnection conn)
conn
- Connection object.public Red5()
Method Detail |
---|
public static void setConnectionLocal(IConnection connection)
connection
- Thread local connectionpublic static IConnection getConnectionLocal()
public IConnection getConnection()
getConnection
in interface Red5MBean
public IScope getScope()
getScope
in interface Red5MBean
public IClient getClient()
getClient
in interface Red5MBean
public IContext getContext()
getContext
in interface Red5MBean
public static String getVersion()
public static String getFMSVersion()
public static long getUpTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |