GigaSpaces XAP 9.7.2 API

com.sun.jini.mahalo.log
Class MultiLogManager

java.lang.Object
  extended by 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.

Nested Class Summary
static interface MultiLogManager.LogRemovalManager
          Callback interface for log files to remove themselves from this manager
 
Field Summary
 
Fields inherited from interface com.sun.jini.mahalo.log.FileModes
RDONLY, READWRITE, WRONLY
 
Constructor Summary
MultiLogManager()
          Create a non-persistent MultiLogManager.
MultiLogManager(LogRecovery client, String path)
          Create a MultiLogManager.
 
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

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 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.