|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.api.service.ServiceUtils
public class ServiceUtils
Utility functions to invoke methods on connections.
| Constructor Summary | |
|---|---|
ServiceUtils()
|
|
| Method Summary | |
|---|---|
static void |
invokeOnAllConnections(IScope scope,
String method,
Object[] params)
Invoke a method on all connections to a given scope. |
static void |
invokeOnAllConnections(IScope scope,
String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on all connections to a given scope and handle result. |
static void |
invokeOnAllConnections(String method,
Object[] params)
Invoke a method on all connections to the current scope. |
static void |
invokeOnAllConnections(String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on all connections to the current scope and handle result. |
static void |
invokeOnClient(IClient client,
IScope scope,
String method,
Object[] params)
Invoke a method on all connections of a client to a given scope. |
static void |
invokeOnClient(IClient client,
IScope scope,
String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on all connections of a client to a given scope and handle result. |
static boolean |
invokeOnConnection(IConnection conn,
String method,
Object[] params)
Invoke a method on a given connection. |
static boolean |
invokeOnConnection(IConnection conn,
String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on a given connection and handle result. |
static boolean |
invokeOnConnection(String method,
Object[] params)
Invoke a method on the current connection. |
static boolean |
invokeOnConnection(String method,
Object[] params,
IPendingServiceCallback callback)
Invoke a method on the current connection and handle result. |
static void |
notifyOnAllConnections(IScope scope,
String method,
Object[] params)
Notify a method on all connections to a given scope. |
static void |
notifyOnAllConnections(String method,
Object[] params)
Notify a method on all connections to the current scope. |
static void |
notifyOnClient(IClient client,
IScope scope,
String method,
Object[] params)
Notify a method on all connections of a client to a given scope. |
static boolean |
notifyOnConnection(IConnection conn,
String method,
Object[] params)
Notify a method on a given connection. |
static boolean |
notifyOnConnection(String method,
Object[] params)
Notify a method on the current connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceUtils()
| Method Detail |
|---|
public static boolean invokeOnConnection(String method,
Object[] params)
method - name of the method to invokeparams - parameters to pass to the method
true if the connection supports method calls,
otherwise false
public static boolean invokeOnConnection(String method,
Object[] params,
IPendingServiceCallback callback)
method - name of the method to invokeparams - parameters to pass to the methodcallback - object to notify when result is received
true if the connection supports method calls,
otherwise false
public static boolean invokeOnConnection(IConnection conn,
String method,
Object[] params)
conn - connection to invoke method onmethod - name of the method to invokeparams - parameters to pass to the method
true if the connection supports method calls,
otherwise false
public static boolean invokeOnConnection(IConnection conn,
String method,
Object[] params,
IPendingServiceCallback callback)
conn - connection to invoke method onmethod - name of the method to invokeparams - parameters to pass to the methodcallback - object to notify when result is received
true if the connection supports method calls,
otherwise false
public static void invokeOnAllConnections(String method,
Object[] params)
method - name of the method to invokeparams - parameters to pass to the method
public static void invokeOnAllConnections(String method,
Object[] params,
IPendingServiceCallback callback)
method - name of the method to invokeparams - parameters to pass to the methodcallback - object to notify when result is received
public static void invokeOnAllConnections(IScope scope,
String method,
Object[] params)
scope - scope to get connections formethod - name of the method to invokeparams - parameters to pass to the method
public static void invokeOnAllConnections(IScope scope,
String method,
Object[] params,
IPendingServiceCallback callback)
scope - scope to get connections formethod - name of the method to invokeparams - parameters to pass to the methodcallback - object to notify when result is received
public static void invokeOnClient(IClient client,
IScope scope,
String method,
Object[] params)
client - client to get connections forscope - scope to get connections of the client frommethod - name of the method to invokeparams - parameters to pass to the method
public static void invokeOnClient(IClient client,
IScope scope,
String method,
Object[] params,
IPendingServiceCallback callback)
client - client to get connections forscope - scope to get connections of the client frommethod - name of the method to invokeparams - parameters to pass to the methodcallback - object to notify when result is received
public static boolean notifyOnConnection(String method,
Object[] params)
method - name of the method to notifyparams - parameters to pass to the method
true if the connection supports method calls,
otherwise false
public static boolean notifyOnConnection(IConnection conn,
String method,
Object[] params)
conn - connection to notify method onmethod - name of the method to notifyparams - parameters to pass to the method
true if the connection supports method calls,
otherwise false
public static void notifyOnAllConnections(String method,
Object[] params)
method - name of the method to notifyparams - parameters to pass to the method
public static void notifyOnAllConnections(IScope scope,
String method,
Object[] params)
scope - scope to get connections formethod - name of the method to notifyparams - parameters to pass to the method
public static void notifyOnClient(IClient client,
IScope scope,
String method,
Object[] params)
client - client to get connections forscope - scope to get connections of the client frommethod - name of the method to notifyparams - parameters to pass to the method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||