Class MockLogManager

java.lang.Object
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
  • Constructor Details

    • MockLogManager

      public MockLogManager()
  • Method Details

    • 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 Administrable
      Specified by:
      getAdmin in interface LogManager
      Returns:
      an object that implements whatever administration interfaces are appropriate for the particular service.
      See Also:
    • 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: