Open SiteSearch 4.1.1
Final

ORG.oclc.log
Class StatsLog

java.lang.Object
  |
  +--ORG.oclc.log.StatsLog

public class StatsLog
extends Object


Field Summary
static StatsLog out
           
 
Constructor Summary
StatsLog()
          Construct a StatsLog object.
 
Method Summary
 void close()
          Close the stats log.
 PrintStream getLogfile()
          Accessor method to the log file.
 void open()
          Open the log file with the original name information.
 void open(String portAndHost, String statsLogName, String statsLogDir)
          Open the log file with the input name parameters and save them.
 void println(String msg)
          Print to the stats log.
 void rollOver(long currentTime)
          Check the rollOver time period to close/re-open the server log.
 void setrollOverTime(int seconds)
          Set RollOver time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

public static StatsLog out
Constructor Detail

StatsLog

public StatsLog()
Construct a StatsLog object.
Method Detail

open

public void open()
Open the log file with the original name information.

open

public void open(String portAndHost,
                 String statsLogName,
                 String statsLogDir)
Open the log file with the input name parameters and save them.
Parameters:
portAndHost - the port and host for the server process
statsLogName - the name of the log file
statsLogDir - the directory for the file

println

public void println(String msg)
Print to the stats log.
Parameters:
msg - the text to print

rollOver

public void rollOver(long currentTime)
Check the rollOver time period to close/re-open the server log.
Parameters:
currentTime - the current millisecond time to compare with the log open time

close

public void close()
Close the stats log.

getLogfile

public PrintStream getLogfile()
Accessor method to the log file.

setrollOverTime

public void setrollOverTime(int seconds)
Set RollOver time.
Parameters:
seconds - the number of seconds for the rollover timer

Open SiteSearch 4.1.1
Final