org.tranche.flatfile.logs
Interface DataBlockUtilLog

All Known Implementing Classes:
DataBlockUtilLogger, DiskBackedTransactionLog, InMemoryAggregateLog

public interface DataBlockUtilLog

An interface for any log object used by the DataBlockUtil.

Author:
Bryan Smith - bryanesmith@gmail.com

Method Summary
 void close()
          Close off resources associated with this log.
 long getBlockGetFailures()
          Uses the default log.
 long getBlockGetSuccesses()
          Uses the default log.
 long getBlockSetFailures()
          Uses the default log.
 long getBlockSetSuccesses()
          Uses the default log.
 long getRuntime()
          Uses the default log.
 long getTimeSpentMerging()
          Uses the default log.
 void logGetBlockFailed(BigHash hash)
          Log failed get request.
 void logGetBlockSucceed(BigHash hash)
          Log successful get request.
 void logGetStarted(BigHash hash)
          Log start of a get request.
 void logHasFalse(BigHash hash)
          Log does not have a chunk.
 void logHasStarted(BigHash hash)
          Log the start of a has chunk activity.
 void logHasTrue(BigHash hash)
          Log has a chunk.
 void logMergeFinish(java.io.File datablock)
          Log stop of merge.
 void logMergeStart(java.io.File datablock)
          Log start of merge.
 void logSetBlockFailed(BigHash hash)
          Log failed set request.
 void logSetBlockSucceed(BigHash hash)
          Log successful set request.
 void logSetStarted(BigHash hash)
          Log start of a set request.
 java.lang.String toString()
           
 

Method Detail

logMergeStart

void logMergeStart(java.io.File datablock)

Log start of merge.

Parameters:
datablock -

logMergeFinish

void logMergeFinish(java.io.File datablock)

Log stop of merge.

Parameters:
datablock -

logHasStarted

void logHasStarted(BigHash hash)

Log the start of a has chunk activity.

Parameters:
hash -

logHasTrue

void logHasTrue(BigHash hash)

Log has a chunk.

Parameters:
hash -

logHasFalse

void logHasFalse(BigHash hash)

Log does not have a chunk.

Parameters:
hash -

logGetStarted

void logGetStarted(BigHash hash)

Log start of a get request.

Parameters:
hash -

logSetStarted

void logSetStarted(BigHash hash)

Log start of a set request.

Parameters:
hash -

logGetBlockSucceed

void logGetBlockSucceed(BigHash hash)

Log successful get request.

Parameters:
hash -

logGetBlockFailed

void logGetBlockFailed(BigHash hash)

Log failed get request.

Parameters:
hash -

logSetBlockSucceed

void logSetBlockSucceed(BigHash hash)

Log successful set request.

Parameters:
hash -

logSetBlockFailed

void logSetBlockFailed(BigHash hash)

Log failed set request.

Parameters:
hash -

getTimeSpentMerging

long getTimeSpentMerging()

Uses the default log. For more information, call logs directly.

Returns:

getRuntime

long getRuntime()

Uses the default log. For more information, call logs directly.

Returns:

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object

getBlockGetSuccesses

long getBlockGetSuccesses()

Uses the default log. For more information, call logs directly.

Returns:

getBlockGetFailures

long getBlockGetFailures()

Uses the default log. For more information, call logs directly.

Returns:

getBlockSetSuccesses

long getBlockSetSuccesses()

Uses the default log. For more information, call logs directly.

Returns:

getBlockSetFailures

long getBlockSetFailures()

Uses the default log. For more information, call logs directly.

Returns:

close

void close()
           throws java.lang.Exception

Close off resources associated with this log.

Throws:
java.lang.Exception


This code is free for use both commercially and non-commercially as stated in the project's license