org.red5.server.api.statistics
public interface IStatisticsService
getScopeStatisticsSO
and getSharedObjectStatisticsSO
to get these shared objects. The property names are scopeName
for scope attributes and scopeName|sharedObjectName
for
shared object attributes. Each property holds a Map containing key/value
mappings of the corresponding attributes.
Sometime in the future, the updates on the shared objects will be done
automatically so a client doesn't need to poll for them.Modifier and Type | Method and Description |
---|---|
Set<String> |
getScopes()
Return a list of all scopes that currently exist on the server.
|
Set<String> |
getScopes(String path)
Return a list of all scopes that currently exist on the server
below a current path.
|
ISharedObject |
getScopeStatisticsSO(IScope scope)
Return the shared object that will be used to keep scope statistics.
|
Set<ISharedObjectStatistics> |
getSharedObjects(String path)
Return informations about shared objects for a given scope.
|
ISharedObject |
getSharedObjectStatisticsSO(IScope scope)
Return the shared object that will be used to keep SO statistics.
|
void |
updateScopeStatistics(String path)
Update statistics for a given scope.
|
void |
updateSharedObjectStatistics(String path,
String name)
Update informations about a shared object in a given scope.
|
ISharedObject getScopeStatisticsSO(IScope scope)
scope
- A scope to return the shared object for.ISharedObject getSharedObjectStatisticsSO(IScope scope)
scope
- A scope to return the shared object for.Set<String> getScopes()
Set<String> getScopes(String path) throws ScopeNotFoundException
path
- Path to start looking for scopes.ScopeNotFoundException
- if the path on the server doesn't existvoid updateScopeStatistics(String path) throws ScopeNotFoundException
path
- Path to scope to update.ScopeNotFoundException
- if the given scope doesn't existSet<ISharedObjectStatistics> getSharedObjects(String path)
path
- Path to scope to return shared object names for.void updateSharedObjectStatistics(String path, String name) throws ScopeNotFoundException, SharedObjectException
path
- Path to scope that contains the shared object.name
- Name of shared object to update.ScopeNotFoundException
- if the given scope doesn't existSharedObjectException
- if no shared object with the given name existsCopyright © 2006-2012 The Red5 Project