| Modifier and Type | Method and Description |
|---|---|
boolean |
createChildScope(String name)
Create child scope with given name
|
void |
destroy()
Destroys scope
|
int |
getActiveClients()
Return current number of clients connected to the scope.
|
int |
getActiveConnections()
Return current number of connections to the scope.
|
int |
getActiveSubscopes()
Return number of currently existing subscopes.
|
String |
getContextPath()
Return scope context path
|
int |
getDepth()
return scope depth
|
boolean |
getEnabled()
Check if scope is enabled
|
int |
getMaxClients()
Return maximum number of clients concurrently connected to the scope.
|
int |
getMaxConnections()
Return maximum number of concurrent connections to the scope.
|
int |
getMaxSubscopes()
Return maximum number of concurrently existing subscopes.
|
String |
getPath()
Return scope path calculated from parent path and parent scope name
|
boolean |
getRunning()
Check if scope is in running state
|
Set<String> |
getServiceHandlerNames()
Return set of service handler names
|
int |
getTotalClients()
Return total number of clients connected to the scope.
|
int |
getTotalConnections()
Return total number of connections to the scope.
|
int |
getTotalSubscopes()
Return total number of subscopes created.
|
boolean |
hasChildScope(ScopeType type,
String name)
Check whether scope has child scope with given name and type
|
boolean |
hasChildScope(String name)
Check whether scope has child scope with given name
|
boolean |
hasContext()
Check if scope has a context
|
boolean |
hasHandler()
Check if scope or it's parent has handler
|
boolean |
hasParent()
Check if scope has parent scope
|
void |
init()
Initialization actions, start if autostart is set to
|
void |
setAutoStart(boolean autoStart)
Setter for autostart flag
|
void |
setChildLoadPath(String pattern)
Setter for child load path.
|
void |
setDepth(int depth)
Set scope depth
|
void |
setEnabled(boolean enabled)
Enable or disable scope by setting enable flag
|
void |
setName(String name)
Setter for scope name
|
void |
setPersistenceClass(String persistenceClass)
Set scope persistence class
|
boolean |
start()
Starts scope
|
void |
stop()
Stops scope
|
void |
unregisterServiceHandler(String name)
Unregisters service handler by name
|
boolean getEnabled()
trueif scope is enabled,
falseotherwise
void setEnabled(boolean enabled)
enabled - Enable flag valueboolean getRunning()
trueif scope is in running state,
falseotherwise
void setAutoStart(boolean autoStart)
autoStart - Autostart flag valuevoid init()
true
boolean start()
trueif scope has handler and it's start method returned true,
falseotherwise
void stop()
void setPersistenceClass(String persistenceClass) throws Exception
persistenceClass - Scope's persistence classException - Exceptionvoid setChildLoadPath(String pattern)
pattern - Load path patternboolean hasChildScope(String name)
name - Child scope nametrueif scope has child node with given name,
falseotherwise
boolean hasChildScope(ScopeType type, String name)
type - Child scope typename - Child scope nametrueif scope has child node with given name and type,
falseotherwise
boolean hasContext()
trueif scope has context,
falseotherwise
String getContextPath()
void setName(String name)
name - Scope nameString getPath()
boolean hasHandler()
trueif scope or it's parent scope has a handler,
falseotherwise
boolean hasParent()
trueif scope has parent scope,
falseotherwise`
void setDepth(int depth)
depth - Scope depthint getDepth()
boolean createChildScope(String name)
name - Child scope nametrueon success,
falseotherwise
void unregisterServiceHandler(String name)
name - Service handler nameSet<String> getServiceHandlerNames()
int getTotalConnections()
int getMaxConnections()
int getActiveConnections()
int getTotalClients()
int getMaxClients()
int getActiveClients()
int getTotalSubscopes()
int getMaxSubscopes()
int getActiveSubscopes()
Copyright © 2005–2017 Red5. All rights reserved.