|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.stats.StatsLogger.StatsConfig
public static final class StatsLogger.StatsConfig
Holds the configuration for one statistics set. As this object uses == for equals() [from Object], it is impossible to forge duplicates for any one stats source.
While immutable from outside the stats system, this does note when the last stats summary was done.
| Field Summary | |
|---|---|
private boolean |
adaptiveTime
If true, we dump at shorter intervals to start with. |
long |
creationTime
Time at which this stats set was created. |
private int |
dumpIntervalS
Interval in seconds between dumps of stats info; non-negative. |
private long |
lastSummaryDumpTime
Time at which last summary dump was done. |
private SimpleLoggerIF |
logger
Logger to log to; null if none. |
java.lang.String |
name
Name/token to identify this stats set; never null or zero length. |
private boolean |
printEveryEvent
If true we log every event, else only summary status. |
| Constructor Summary | |
|---|---|
StatsLogger.StatsConfig(java.lang.String setName,
java.io.PrintStream ps,
boolean printEvery,
int dumpS)
Create a new stats sink description. |
|
StatsLogger.StatsConfig(java.lang.String setName,
java.io.PrintStream ps,
boolean printEvery,
int dumpS,
boolean adaptive)
Create a new stats sink description. |
|
StatsLogger.StatsConfig(java.lang.String setName,
SimpleLoggerIF logger,
boolean printEvery,
int dumpS,
boolean adaptive)
Create a new stats sink description. |
|
| Method Summary | |
|---|---|
private boolean |
timeForSummary()
If stats summary dump is overdue, returns true and updates time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final long creationTime
public final java.lang.String name
private final SimpleLoggerIF logger
private final boolean printEveryEvent
private final int dumpIntervalS
private final boolean adaptiveTime
private long lastSummaryDumpTime
Atomically read and/or updated by timeForSummary().
| Constructor Detail |
|---|
public StatsLogger.StatsConfig(java.lang.String setName,
java.io.PrintStream ps,
boolean printEvery,
int dumpS)
setName - non-null token printed to identify this setps - if non-null, and while not closed, is a stream to
print statistics information toprintEvery - if true, every event is printed, else
only summary stats are recordeddumpS - if positive, dump cumulative stats at intervals
of this many seconds; if zero periodic dumps are disabled
public StatsLogger.StatsConfig(java.lang.String setName,
java.io.PrintStream ps,
boolean printEvery,
int dumpS,
boolean adaptive)
setName - non-null token printed to identify this setps - if non-null, and while not closed, is a stream to
print statistics information toprintEvery - if true, every event is printed, else
only summary stats are recordeddumpS - if positive, dump cumulative stats at intervals
of this many seconds; if zero periodic dumps are disabledadaptive - if true, print initial summaries at shorter
delays so that even short runs of the system yield
some interesting stats
public StatsLogger.StatsConfig(java.lang.String setName,
SimpleLoggerIF logger,
boolean printEvery,
int dumpS,
boolean adaptive)
setName - non-null token printed to identify this setlogger - if non-null, is a logger to
log statistics information toprintEvery - if true, every event is printed, else
only summary stats are recordeddumpS - if positive, dump cumulative stats at intervals
of this many seconds; if zero periodic dumps are disabledadaptive - if true, print initial summaries at shorter
delays so that even short runs of the system yield
some interesting stats| Method Detail |
|---|
private boolean timeForSummary()
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||