GigaSpaces XAP 9.7.2 API

com.sun.jini.mahalo.log
Class MockLogManager

java.lang.Object
  extended by com.sun.jini.mahalo.log.MockLogManager
All Implemented Interfaces:
DestroyAdmin, FileModes, LogManager, MultiLogManagerAdmin, Administrable

public class MockLogManager
extends Object
implements LogManager, FileModes, Administrable, MultiLogManagerAdmin

mock log manager for transient mahalo


Field Summary
 
Fields inherited from interface com.sun.jini.mahalo.log.FileModes
RDONLY, READWRITE, WRONLY
 
Constructor Summary
MockLogManager()
           
 
Method Summary
 void destroy()
          Clean up all LogFile objects on behalf of caller.
 Object getAdmin()
          Retrieves the administration interface for the MultiLogManager
 ClientLog logFor(long cookie)
          Factory method which returns a Log interface which can be used to create persistent records which collectively represent a system's state.
 void recover()
          Consumes the log file and re-constructs a system's state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockLogManager

public MockLogManager()
Method Detail

logFor

public ClientLog logFor(long cookie)
                 throws LogException
Description copied from interface: LogManager
Factory method which returns a Log interface which can be used to create persistent records which collectively represent a system's state.

Specified by:
logFor in interface LogManager
Parameters:
cookie - identifier representing the information being logged.
Throws:
LogException

recover

public void recover()
             throws LogException
Consumes the log file and re-constructs a system's state.

Specified by:
recover in interface LogManager
Throws:
LogException

getAdmin

public Object getAdmin()
Retrieves the administration interface for the MultiLogManager

Specified by:
getAdmin in interface LogManager
Specified by:
getAdmin in interface Administrable
Returns:
an object that implements whatever administration interfaces are appropriate for the particular service.
See Also:
Administrable

destroy

public void destroy()
Clean up all LogFile objects on behalf of caller.

Specified by:
destroy in interface DestroyAdmin
Specified by:
destroy in interface MultiLogManagerAdmin
See Also:
DestroyAdmin, FileSystem

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.