org.red5.server.adapter
public class ApplicationAdapter extends MultiThreadedApplicationAdapter
MultiThreadedApplicationAdapter
instead.
Using this class may lead to problems if accepting a client in the *Connect
or *Join
methods takes too long, so using the multi-threaded version is
preferred.log, schedulingService
plugins, scope
BEAN_NAME
BROADCAST_STREAM_SERVICE
BEAN_NAME
BEAN_NAME
BEAN_NAME
BEAN_NAME
BEAN_NAME
Constructor and Description |
---|
ApplicationAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
connect(IConnection conn,
IScope scope,
Object[] params)
Returns connection result for given scope and parameters.
|
void |
disconnect(IConnection conn,
IScope scope)
Returns disconnection result for given scope and parameters.
|
boolean |
join(IClient client,
IScope scope)
Adds client to scope.
|
void |
leave(IClient client,
IScope scope)
Disconnects client from scope.
|
boolean |
start(IScope scope)
Starts scope.
|
void |
stop(IScope scope)
Stops scope handling (that is, stops application if given scope is app
level scope and stops room handling if given scope has lower scope
level).
|
addListener, addScheduledJob, addScheduledJobAfterDelay, addScheduledOnceJob, addScheduledOnceJob, appConnect, appDisconnect, appJoin, appLeave, appStart, appStop, cancelGhostConnectionsCleanup, clearSharedObjects, createSharedObject, FCPublish, FCSubscribe, FCUnpublish, FCUnpublish, getBroadcastStream, getBroadcastStreamNames, getClientTTL, getGhostConnsCleanupPeriod, getListeners, getOnDemandStream, getScheduledJobNames, getSharedObject, getSharedObject, getSharedObjectNames, getSharedObjectSecurity, getStreamLength, getStreamPlaybackSecurity, getStreamPublishSecurity, getSubscriberStream, hasBroadcastStream, hasOnDemandStream, hasSharedObject, killGhostConnections, measureBandwidth, measureBandwidth, pauseScheduledJob, registerSharedObjectSecurity, registerStreamPlaybackSecurity, registerStreamPublishSecurity, rejectClient, rejectClient, removeListener, removeScheduledJob, resumeScheduledJob, roomConnect, roomDisconnect, roomJoin, roomLeave, roomStart, roomStop, scheduleGhostConnectionsCleanup, setClientTTL, setGhostConnsCleanupPeriod, streamBroadcastClose, streamBroadcastStart, streamPlayItemPause, streamPlayItemPlay, streamPlayItemResume, streamPlayItemSeek, streamPlayItemStop, streamPublishStart, streamRecordStart, streamSubscriberClose, streamSubscriberStart, unregisterSharedObjectSecurity, unregisterStreamPlaybackSecurity, unregisterStreamPublishSecurity
createChildScope, getAttribute, getAttribute, getAttributeNames, getAttributes, getChildScope, getChildScopeNames, getClients, getConnections, getContext, getDepth, getName, getParent, getPath, getPlugins, getResource, getResources, getScope, hasAttribute, hasChildScope, hasParent, lookupConnections, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes, setPlugins, setScope
addChildScope, checkBandwidth, checkBandwidthUp, handleEvent, removeChildScope, serviceCall, setCanCallService, setCanConnect, setCanStart, setJoin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChildScope, removeChildScope, serviceCall
handleEvent
public boolean connect(IConnection conn, IScope scope, Object[] params)
MultiThreadedApplicationAdapter.appConnect(IConnection, Object[])
or
MultiThreadedApplicationAdapter.roomConnect(IConnection, Object[])
in your
application to make it act the way you want.connect
in interface IScopeHandler
connect
in class MultiThreadedApplicationAdapter
conn
- Connection objectscope
- Scopeparams
- List of params passed to connection handlertrue
if connect is successful, false
otherwisepublic void disconnect(IConnection conn, IScope scope)
disconnect
in interface IScopeHandler
disconnect
in class MultiThreadedApplicationAdapter
conn
- Connection objectscope
- Scopepublic boolean start(IScope scope)
start
in interface IScopeHandler
start
in class MultiThreadedApplicationAdapter
scope
- Scope objecttrue
if scope can be started, false
otherwise. See AbstractScopeAdapter.start(IScope)
for
details.public void stop(IScope scope)
MultiThreadedApplicationAdapter.appStop(IScope)
or
MultiThreadedApplicationAdapter.roomStop(IScope)
handlers respectively.stop
in interface IScopeHandler
stop
in class MultiThreadedApplicationAdapter
scope
- Scope to stoppublic boolean join(IClient client, IScope scope)
MultiThreadedApplicationAdapter.appJoin(IClient, IScope)
or
MultiThreadedApplicationAdapter.roomJoin(IClient, IScope)
handlers
respectively.join
in interface IScopeHandler
join
in class MultiThreadedApplicationAdapter
client
- Client objectscope
- Scope objecttrue
to allow, false
to deny
connectionpublic void leave(IClient client, IScope scope)
MultiThreadedApplicationAdapter.appLeave(IClient, IScope)
or
MultiThreadedApplicationAdapter.roomLeave(IClient, IScope)
handlers
respectively.leave
in interface IScopeHandler
leave
in class MultiThreadedApplicationAdapter
client
- Client objectscope
- Scope objectCopyright © 2006-2012 The Red5 Project