|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.red5.server.statistics.StatisticsService
public class StatisticsService
Implementation of the statistics service.
Constructor Summary | |
---|---|
StatisticsService()
|
Method Summary | |
---|---|
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 |
setGlobalScope(IScope scope)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticsService()
Method Detail |
---|
public void setGlobalScope(IScope scope)
public ISharedObject getScopeStatisticsSO(IScope scope)
IStatisticsService
getScopeStatisticsSO
in interface IStatisticsService
scope
- A scope to return the shared object for.
public Set<String> getScopes()
IStatisticsService
getScopes
in interface IStatisticsService
public Set<String> getScopes(String path) throws ScopeNotFoundException
IStatisticsService
getScopes
in interface IStatisticsService
path
- Path to start looking for scopes.
ScopeNotFoundException
- if the path on the server doesn't existpublic ISharedObject getSharedObjectStatisticsSO(IScope scope)
IStatisticsService
getSharedObjectStatisticsSO
in interface IStatisticsService
scope
- A scope to return the shared object for.
public Set<ISharedObjectStatistics> getSharedObjects(String path)
IStatisticsService
getSharedObjects
in interface IStatisticsService
path
- Path to scope to return shared object names for.
public void updateScopeStatistics(String path) throws ScopeNotFoundException
IStatisticsService
updateScopeStatistics
in interface IStatisticsService
path
- Path to scope to update.
ScopeNotFoundException
- if the given scope doesn't existpublic void updateSharedObjectStatistics(String path, String name) throws ScopeNotFoundException, SharedObjectException
IStatisticsService
updateSharedObjectStatistics
in interface IStatisticsService
path
- Path to scope that contains the shared object.name
- Name of shared object to update.
ScopeNotFoundException
- if the given scope doesn't exist
SharedObjectException
- if no shared object with the given name exists
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |