org.opengts.db
Interface SessionStatsFactory


public interface SessionStatsFactory


Field Summary
static long IP_OVERHEAD
           
static long TCP_OVERHEAD
           
static long TCP_SESSION_OVERHEAD
           
static long UDP_OVERHEAD
           
 
Method Summary
 void addSessionStatistic(Device device, long timestamp, java.lang.String ipAddr, boolean isDuplex, long bytesRead, long bytesWritten, long eventsRecv)
           
 long[] getByteCounts(Device device, long timeStart, long timeEnd)
           
 long[] getConnectionCounts(Device device, long timeStart, long timeEnd)
           
 

Field Detail

IP_OVERHEAD

static final long IP_OVERHEAD
See Also:
Constant Field Values

UDP_OVERHEAD

static final long UDP_OVERHEAD
See Also:
Constant Field Values

TCP_OVERHEAD

static final long TCP_OVERHEAD
See Also:
Constant Field Values

TCP_SESSION_OVERHEAD

static final long TCP_SESSION_OVERHEAD
See Also:
Constant Field Values
Method Detail

addSessionStatistic

void addSessionStatistic(Device device,
                         long timestamp,
                         java.lang.String ipAddr,
                         boolean isDuplex,
                         long bytesRead,
                         long bytesWritten,
                         long eventsRecv)
                         throws DBException
Throws:
DBException

getByteCounts

long[] getByteCounts(Device device,
                     long timeStart,
                     long timeEnd)
                     throws DBException
Throws:
DBException

getConnectionCounts

long[] getConnectionCounts(Device device,
                           long timeStart,
                           long timeEnd)
                           throws DBException
Throws:
DBException