com.trendmicro.grid.acl.l0
Class ServerStatisticsRestService

java.lang.Object
  extended by com.trendmicro.grid.acl.l0.ServerStatisticsRestService
All Implemented Interfaces:
Level0RestService, RestService, Service

@Service
public class ServerStatisticsRestService
extends Object
implements Level0RestService

Implements a REST service that provides the values offered by the server statistics service.

Version:
1.0
Author:
Juergen_Kellerer, 2011-04-12

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.trendmicro.grid.acl.l0.Level0RestService
Level0RestService.RestUtil
 
Constructor Summary
ServerStatisticsRestService()
           
 
Method Summary
 UsageStatisticsCollection getCollectedUsageStatistics(String nodeName)
          Delegates to ServerStatisticsService.getCollectedUsageStatistics().
 UsageStatistics getCurrentUsageStatistics(String nodeName)
          Delegates to ServerStatisticsService.getCurrentUsageStatistics().
 NameList getNodeNames()
          Returns the node names (=node-addresses) of all ACL nodes within a cache cluster.
 UsageStatistics getOverallUsageStatistics(String nodeName)
          Delegates to ServerStatisticsService.getOverallUsageStatistics().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStatisticsRestService

public ServerStatisticsRestService()
Method Detail

getNodeNames

public NameList getNodeNames()
Returns the node names (=node-addresses) of all ACL nodes within a cache cluster.

Returns:
the node names (=node-addresses) of all ACL nodes within a cache cluster.

getOverallUsageStatistics

public UsageStatistics getOverallUsageStatistics(String nodeName)
Delegates to ServerStatisticsService.getOverallUsageStatistics().

The rest service optionally accepts to specify a node name allowing to retrieve the value from another node than the one it connected to. (This allows cross site scripting on this particular service, which is needed to display multiple node's data on a single page)

Parameters:
nodeName - the optional name of the node (defaults to 'localhost').
Returns:
the delegate's return value.

getCurrentUsageStatistics

public UsageStatistics getCurrentUsageStatistics(String nodeName)
Delegates to ServerStatisticsService.getCurrentUsageStatistics().

The rest service optionally accepts to specify a node name allowing to retrieve the value from another node than the one it connected to. (This allows cross site scripting on this particular service, which is needed to display multiple node's data on a single page)

Parameters:
nodeName - the optional name of the node (defaults to 'localhost').
Returns:
the delegate's return value.

getCollectedUsageStatistics

public UsageStatisticsCollection getCollectedUsageStatistics(String nodeName)
Delegates to ServerStatisticsService.getCollectedUsageStatistics().

The rest service optionally accepts to specify a node name allowing to retrieve the value from another node than the one it connected to. (This allows cross site scripting on this particular service, which is needed to display multiple node's data on a single page)

Parameters:
nodeName - the optional name of the node (defaults to 'localhost').
Returns:
the delegate's return value.