@MXBean public interface ScopeMXBean
| 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
true |
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()
true if scope is enabled, false otherwisevoid setEnabled(boolean enabled)
enabled - Enable flag valueboolean getRunning()
true if scope is in running state, false otherwisevoid setAutoStart(boolean autoStart)
autoStart - Autostart flag valuevoid init()
trueboolean start()
true if scope has handler and it's start method returned true, false otherwisevoid stop()
void destroy()
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 nametrue if scope has child node with given name, false otherwiseboolean hasChildScope(ScopeType type, String name)
type - Child scope typename - Child scope nametrue if scope has child node with given name and type, false otherwiseboolean hasContext()
true if scope has context, false otherwiseString getContextPath()
void setName(String name)
name - Scope nameString getPath()
boolean hasHandler()
true if scope or it's parent scope has a handler, false otherwiseboolean hasParent()
true if scope has parent scope, false otherwise`void setDepth(int depth)
depth - Scope depthint getDepth()
boolean createChildScope(String name)
name - Child scope nametrue on success, false otherwisevoid 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 © 2006-2012 The Red5 Project