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, schedulingServiceplugins, scopeBEAN_NAMEBROADCAST_STREAM_SERVICEBEAN_NAMEBEAN_NAMEBEAN_NAMEBEAN_NAMEBEAN_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, unregisterStreamPublishSecuritycreateChildScope, 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, setScopeaddChildScope, checkBandwidth, checkBandwidthUp, handleEvent, removeChildScope, serviceCall, setCanCallService, setCanConnect, setCanStart, setJoinclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChildScope, removeChildScope, serviceCallhandleEventpublic 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 IScopeHandlerconnect in class MultiThreadedApplicationAdapterconn - 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 IScopeHandlerdisconnect in class MultiThreadedApplicationAdapterconn - Connection objectscope - Scopepublic boolean start(IScope scope)
start in interface IScopeHandlerstart in class MultiThreadedApplicationAdapterscope - 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 IScopeHandlerstop in class MultiThreadedApplicationAdapterscope - Scope to stoppublic boolean join(IClient client, IScope scope)
MultiThreadedApplicationAdapter.appJoin(IClient, IScope) or
MultiThreadedApplicationAdapter.roomJoin(IClient, IScope) handlers
respectively.join in interface IScopeHandlerjoin in class MultiThreadedApplicationAdapterclient - 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 IScopeHandlerleave in class MultiThreadedApplicationAdapterclient - Client objectscope - Scope objectCopyright © 2006-2012 The Red5 Project