SilverStream
Application Server 3.5

com.sssw.rts.adminapi
Interface AgiAdmStatistics


public interface AgiAdmStatistics

This interface represents the statistics gathered by the SilverStream Server.

See Also:
AgiAdmServer

Method Summary
 long getEmittedBytes()
          Get the total number of bytes emited.
 long getFreeMemory()
          Get the amount of Runtime Free Memory
 int getFreeThreadCount()
          Get the number of free threads in the server.
 int getGcCount()
          Get the number of times that garbage collection (GC) has run since Silvermaster has been opened at Server startup
 long getHitCount()
          Get the total number of hits.
 int getIdleThreadCount()
          Get the number of idle threads in the server.
 long getMaxRequestTime()
          Get the max request processing time.
 URL getMaxRequestURL()
          Get the URL of the request that took the longest time to be processed.
 long getMeanRequestTime()
          Get the mean request processing time.
 long getMinRequestTime()
          Get the min request processing time.
 URL getMinRequestURL()
          Get the URL of the request that took the smallest time to be processed.
 int getServerLoad()
          Get the current server load.
 long getStartTime()
          Get the time at which the server was started.
 long getTotalMemory()
          Get the amount of Runtime Free Memory
 int getTotalThreadCount()
          Get the total number of client threads.
 

Method Detail

getServerLoad

public int getServerLoad()
Get the current server load.
Returns:
a number between 1 and 4
Example:
AgiAdmStatistics stats = server.getStatistics();
 int serverLoad = stats.getServerLoad();
 

getFreeThreadCount

public int getFreeThreadCount()
Get the number of free threads in the server.
Returns:
the number of threads ready to serve client requests
Example:
AgiAdmStatistics stats = server.getStatistics();
 int freeThreads = stats.getFreeThreadCount();
 

getIdleThreadCount

public int getIdleThreadCount()
Get the number of idle threads in the server. Idle threads are the threads ready to accept more requests on a given connection.
Returns:
the number of idle threads
Example:
AgiAdmStatistics stats = server.getStatistics();
 int idleThreads = stats.getIdleThreadCount();
 

getTotalThreadCount

public int getTotalThreadCount()
Get the total number of client threads.
Returns:
the total number of created threads
Example:
AgiAdmStatistics stats = server.getStatistics();
 int totalThreads = stats.getTotalThreadCount();
 

getHitCount

public long getHitCount()
Get the total number of hits.
Returns:
the total number of processed requests since the server is up
Example:
AgiAdmStatistics stats = server.getStatistics();
 long hitCount = stats.getHitCount();
 

getMeanRequestTime

public long getMeanRequestTime()
Get the mean request processing time.
Returns:
the average time to process a request
Example:
AgiAdmStatistics stats = server.getStatistics();
 long meanReqTime = stats.getMeanRequestTime();
 

getMaxRequestTime

public long getMaxRequestTime()
Get the max request processing time.
Returns:
a long giving the maximum duration for a request
Example:
AgiAdmStatistics stats = server.getStatistics();
 long maxReqTime = stats.getMaxRequestTime();
 

getMaxRequestURL

public URL getMaxRequestURL()
Get the URL of the request that took the longest time to be processed.
Returns:
a String giving the URL of the corresponding request, or null if no request has been processed yet
Example:
AgiAdmStatistics stats = server.getStatistics();
 URL maxReqURL = stats.getMaxRequestURL();
 

getMinRequestTime

public long getMinRequestTime()
Get the min request processing time.
Returns:
a long giving the minimum request processing time
Example:
AgiAdmStatistics stats = server.getStatistics();
 long minReqTime = stats.getMinRequestTime();
 

getMinRequestURL

public URL getMinRequestURL()
Get the URL of the request that took the smallest time to be processed.
Returns:
a String giving the URL of the corresponding request, or null if no request has been processed yet
Example:
AgiAdmStatistics stats = server.getStatistics();
 URL minReqURL = stats.getMinRequestURL();
 

getEmittedBytes

public long getEmittedBytes()
Get the total number of bytes emited.
Returns:
a long giving the total number of bytes emited by the server
Usage:
The number returned does not include the reply's header. It only counts the reply's body (or entity size).
Example:
AgiAdmStatistics stats = server.getStatistics();
 long bytes = stats.getEmittedBytes();
 

getStartTime

public long getStartTime()
Get the time at which the server was started.
Returns:
a number of milliseconds since java epoch, giving the date at which the server started
Example:
AgiAdmStatistics stats = server.getStatistics();
 long startTime = stats.getStartTime();
 

getFreeMemory

public long getFreeMemory()
Get the amount of Runtime Free Memory
Returns:
current amount of free memory for server process
Example:
AgiAdmStatistics stats = server.getStatistics();
 long freeMem = stats.getFreeMemory();
 

getTotalMemory

public long getTotalMemory()
Get the amount of Runtime Free Memory
Returns:
current amount of free memory for server process
Example:
AgiAdmStatistics stats = server.getStatistics();
 long totalMem = stats.getTotalMemory();
 

getGcCount

public int getGcCount()
Get the number of times that garbage collection (GC) has run since Silvermaster has been opened at Server startup
Returns:
number of times that GC has run
Example:
AgiAdmStatistics stats = server.getStatistics();
 int gcCount = stats.getGcCount();
 

SilverStream
Application Server 3.5