com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus Class Reference

Contains the status of a Nirvana Realm server interface. More...

Inherits Observable.

Public Member Functions

int getCurrentIdleCount ()
 Returns the number of idle threads waiting for connections. More...
 
String getErrorMessage ()
 Only valid if the state is s_error. More...
 
nInterface getInterface ()
 This method returns the interface configuration details. More...
 
long getPoolExhaused ()
 Returns the total number of times the thread pool reached 0 idle. More...
 
int getReadBandWidth ()
 Returns the read bandwidth. More...
 
long getRxBytes ()
 Returns the number of bytes this interface has received. More...
 
int getStatus ()
 Returns the current status of this interface. More...
 
long getTotalAuthenticationTime ()
 Return the total time spent authenticating connections. More...
 
long getTotalConnections ()
 Returns the total number of connections created by this interface. More...
 
long getTotalFailedConnections ()
 Returns the total number of connections which failed during the initial security handshake and validation. More...
 
long getTotalReads ()
 Returns the total number of reads. More...
 
long getTotalWrites ()
 Returns the total number of writes. More...
 
long getTxBytes ()
 Returns the number of bytes this interface has transmitted. More...
 
long getWaitTime ()
 Returns the total milliseconds that there was no accept thread processing new connections. More...
 
int getWriteBandWidth ()
 Returns the write bandwidth. More...
 
String toString ()
 Return a string repsentation of the interface configuration. More...
 

Static Public Attributes

static final int s_error = 3
 Indicates an interface with an error during startup.
 
static final int s_started = 1
 Indicates a started state on an interface.
 
static final int s_stopped = 0
 Indicates a stopped state on an interface.
 

Detailed Description

Contains the status of a Nirvana Realm server interface.

Member Function Documentation

int com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getCurrentIdleCount ( )

Returns the number of idle threads waiting for connections.

Returns
long count
String com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getErrorMessage ( )

Only valid if the state is s_error.

Returns
Exception message created during interface startup
nInterface com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getInterface ( )

This method returns the interface configuration details.

Returns
nInterface object containing the interface details
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getPoolExhaused ( )

Returns the total number of times the thread pool reached 0 idle.

Returns
long count
int com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getReadBandWidth ( )

Returns the read bandwidth.

Returns
the read bandwidth in bytes
Since
5.5
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getRxBytes ( )

Returns the number of bytes this interface has received.

Returns
long byte count
int com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getStatus ( )

Returns the current status of this interface.

Can be one of stopped, started, paused or error

Returns
current status
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getTotalAuthenticationTime ( )

Return the total time spent authenticating connections.

Returns
long milliseconds
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getTotalConnections ( )

Returns the total number of connections created by this interface.

Returns
long count
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getTotalFailedConnections ( )

Returns the total number of connections which failed during the initial security handshake and validation.

Returns
long count
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getTotalReads ( )

Returns the total number of reads.

Returns
the number of reads on the interface
Since
5.5
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getTotalWrites ( )

Returns the total number of writes.

Returns
the number of writes on the interface
Since
5.5
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getTxBytes ( )

Returns the number of bytes this interface has transmitted.

Returns
long byte count
long com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getWaitTime ( )

Returns the total milliseconds that there was no accept thread processing new connections.

Returns
long milliseconds
int com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.getWriteBandWidth ( )

Returns the write bandwidth.

Returns
the write bandwidth in bytes
Since
5.5
String com.pcbsys.nirvana.nAdminAPI.nInterfaceStatus.toString ( )

Return a string repsentation of the interface configuration.

Returns
the string that represents the interface configuration