Package org.red5.server.scope
Class GlobalScope
java.lang.Object
org.red5.server.scope.BasicScope
org.red5.server.scope.Scope
org.red5.server.scope.GlobalScope
- All Implemented Interfaces:
Comparable<BasicScope>
,IEventDispatcher
,IEventHandler
,IEventListener
,IEventObservable
,ICoreObject
,IBasicScope
,IGlobalScope
,IScope
,IServiceHandlerProvider
,IScopeStatistics
,IStatisticsBase
,GlobalScopeMXBean
,ScopeMXBean
,ResourceLoader
,ResourcePatternResolver
Global scope is a top level scope. Server instance is meant to be injected with Spring before initialization (otherwise NullPointerException is thrown).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.red5.server.scope.Scope
Scope.Builder
-
Field Summary
Fields inherited from class org.red5.server.scope.Scope
attributes, connectionStats, log, oName, subscopeStats
Fields inherited from class org.red5.server.scope.BasicScope
creation, keepDelay, keepOnDisconnect, listeners, name, parent, persistenceClass, persistent, securityHandlers, store, type
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the server instance connected to this scope.getStore()
Get persistence store for scopevoid
register()
Register global scope in server instance, then call initializationvoid
setPersistenceClass
(String persistenceClass) Set scope persistence classvoid
Setter for serverMethods inherited from class org.red5.server.scope.Scope
addChildScope, connect, connect, createChildScope, destroy, disconnect, dispatchEvent, dump, equals, from, getActiveClients, getActiveConnections, getActiveSubscopes, getAttribute, getAttributeNames, getAttributes, getBasicScope, getBasicScopeNames, getBroadcastScope, getClassLoader, getClientConnections, getClients, getConnections, getContext, getContextPath, getCreationTime, getDepth, getEnabled, getHandler, getMaxClients, getMaxConnections, getMaxSubscopes, getParent, getPath, getResource, getResources, getRunning, getScope, getScopeNames, getServiceHandler, getServiceHandlerNames, getServiceHandlers, getServiceHandlers, getStatistics, getTotalClients, getTotalConnections, getTotalSubscopes, handleEvent, hasAttribute, hasChildScope, hasChildScope, hasContext, hasHandler, hashCode, hasParent, init, isEnabled, isRunning, lookupConnection, lookupConnections, registerJMX, registerServiceHandler, removeAttribute, removeChildren, removeChildScope, setAttribute, setAutoStart, setChildLoadPath, setContext, setDepth, setEnabled, setHandler, setName, setParent, start, stop, toString, uninit, unregisterJMX, unregisterServiceHandler
Methods inherited from class org.red5.server.scope.BasicScope
addEventListener, compareTo, getEventListeners, getName, getType, hasEventListeners, isConnectionAllowed, isScopeAllowed, isValid, notifyEvent, removeEventListener, setKeepDelay, setSecurityHandlers
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.red5.server.api.scope.IBasicScope
getDepth, getName, getParent, getPath, getType, hasParent, isConnectionAllowed, isScopeAllowed, isValid, setKeepDelay, setSecurityHandlers
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
Methods inherited from interface org.red5.server.api.event.IEventObservable
addEventListener, getEventListeners, removeEventListener
Methods inherited from interface org.red5.server.api.scope.IScope
addChildScope, connect, connect, createChildScope, disconnect, getAttribute, getAttributeNames, getAttributes, getBasicScope, getBasicScopeNames, getBroadcastScope, getClientConnections, getClients, getConnections, getContext, getContextPath, getHandler, getScope, getScopeNames, getStatistics, hasAttribute, hasChildScope, hasChildScope, hasHandler, lookupConnection, lookupConnections, removeAttribute, removeChildren, removeChildScope, setAttribute
Methods inherited from interface org.red5.server.api.statistics.IScopeStatistics
getName
Methods inherited from interface org.red5.server.api.service.IServiceHandlerProvider
getServiceHandler, getServiceHandlerNames, registerServiceHandler, unregisterServiceHandler
Methods inherited from interface org.springframework.core.io.ResourceLoader
getClassLoader, getResource
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver
getResources
Methods inherited from interface org.red5.server.jmx.mxbeans.ScopeMXBean
createChildScope, destroy, getActiveClients, getActiveConnections, getActiveSubscopes, getContextPath, getDepth, getEnabled, getMaxClients, getMaxConnections, getMaxSubscopes, getPath, getRunning, getServiceHandlerNames, getTotalClients, getTotalConnections, getTotalSubscopes, hasChildScope, hasChildScope, hasContext, hasHandler, hasParent, init, setAutoStart, setChildLoadPath, setDepth, setEnabled, setName, start, stop, unregisterServiceHandler
-
Field Details
-
server
-
-
Constructor Details
-
GlobalScope
public GlobalScope()
-
-
Method Details
-
setPersistenceClass
Description copied from class:Scope
Set scope persistence class- Specified by:
setPersistenceClass
in interfaceScopeMXBean
- Overrides:
setPersistenceClass
in classScope
- Parameters:
persistenceClass
- Persistent class name- Throws:
Exception
- Exception
-
getStore
Get persistence store for scope- Specified by:
getStore
in interfaceIBasicScope
- Overrides:
getStore
in classBasicScope
- Returns:
- Persistence store
-
setServer
Setter for server- Parameters:
server
- Server
-
getServer
Return the server instance connected to this scope.- Specified by:
getServer
in interfaceIGlobalScope
- Overrides:
getServer
in classScope
- Returns:
- the server instance
-
register
public void register()Register global scope in server instance, then call initialization- Specified by:
register
in interfaceGlobalScopeMXBean
- Specified by:
register
in interfaceIGlobalScope
-