GigaSpaces XAP 9.1 API

com.sun.jini.mahalo.log
Class TransientLogFile

java.lang.Object
  extended by com.sun.jini.mahalo.log.TransientLogFile
All Implemented Interfaces:
ClientLog, Log

public class TransientLogFile
extends Object
implements Log

An implementation of a non-persistent Log.

Author:
Sun Microsystems, Inc.
See Also:
Log

Constructor Summary
TransientLogFile(long id, MultiLogManager.LogRemovalManager lrm)
          Simple constructor that simply assigns the given parameter to an internal field.
 
Method Summary
 long cookie()
          Returns the identifier associated with information in this Log.
 void invalidate()
          Invalidate the log.
 void recover(LogRecovery client)
          Recover information from the log.
 void write(LogRecord rec)
          Add a LogRecord to the Log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientLogFile

public TransientLogFile(long id,
                        MultiLogManager.LogRemovalManager lrm)
Simple constructor that simply assigns the given parameter to an internal field.

Parameters:
id - the unique identifier for this log
See Also:
Log, LogManager, MultiLogManager, MultiLogManager.LogRemovalManager
Method Detail

cookie

public long cookie()
Returns the identifier associated with information in this Log.

Specified by:
cookie in interface Log
See Also:
Log

write

public void write(LogRecord rec)
           throws LogException
Add a LogRecord to the Log. This method does nothing with the provided argument.

Specified by:
write in interface ClientLog
Parameters:
rec - the record to be ignored.
Throws:
LogException
See Also:
LogRecord

invalidate

public void invalidate()
                throws LogException
Invalidate the log.

Specified by:
invalidate in interface ClientLog
Throws:
LogException

recover

public void recover(LogRecovery client)
             throws LogException
Recover information from the log. Does nothing.

Specified by:
recover in interface Log
Parameters:
client - who to inform with information from the log.
Throws:
LogException
See Also:
LogRecovery

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.