Class MultiLogManager

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

public class MultiLogManager extends Object implements LogManager, FileModes, Administrable, MultiLogManagerAdmin
Author:
Sun Microsystems, Inc.
  • Constructor Details

    • MultiLogManager

      public MultiLogManager()
      Create a non-persistent MultiLogManager.
    • MultiLogManager

      public MultiLogManager(LogRecovery client, String path)
      Create a MultiLogManager.
      Parameters:
      client - who to inform during recovery.
      path - where to store logging information.
  • 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: