Open SiteSearch 4.1.1
Final

ORG.oclc.util
Interface BasicFileStats


public abstract interface BasicFileStats


Field Summary
static Vector fileStatsObjectTable
          Each object which implements BasicFileStats should add themselves to this vector when they are instantiated and remove themselves when they are closed.
 
Method Summary
 int getBlockSize()
          return the files block size in byte.
 String getFilename()
          return the entire filename including path.
 long getReadCount()
          return total number of reads performed since the last time the stats where reset
 long getTotalReadTime()
          return total accumulative read time in milli seconds since the last time the stats where reset.
 long getTotalWriteTime()
          return total accumulative write time in milli seconds since the last time the stats where reset.
 long getWriteCount()
          return total number of writes performed since the last time the stats where reset
 void resetStats()
          retset all of the stats
 

Field Detail

fileStatsObjectTable

public static final Vector fileStatsObjectTable
Each object which implements BasicFileStats should add themselves to this vector when they are instantiated and remove themselves when they are closed.
Method Detail

getFilename

public String getFilename()
return the entire filename including path.

getReadCount

public long getReadCount()
return total number of reads performed since the last time the stats where reset

getWriteCount

public long getWriteCount()
return total number of writes performed since the last time the stats where reset

getTotalReadTime

public long getTotalReadTime()
return total accumulative read time in milli seconds since the last time the stats where reset. This time also includes seek time.

getTotalWriteTime

public long getTotalWriteTime()
return total accumulative write time in milli seconds since the last time the stats where reset. This time also includes seek time.

getBlockSize

public int getBlockSize()
return the files block size in byte.

resetStats

public void resetStats()
retset all of the stats

Open SiteSearch 4.1.1
Final