Package com.sun.jini.mahalo.log
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback interface for log files to remove themselves from this manager -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a non-persistentMultiLogManager.MultiLogManager(LogRecovery client, String path) Create aMultiLogManager. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Clean up allLogFileobjects on behalf of caller.getAdmin()Retrieves the administration interface for theMultiLogManagerlogFor(long cookie) Factory method which returns a Log interface which can be used to create persistent records which collectively represent a system's state.voidrecover()Consumes the log file and re-constructs a system's state.
-
Constructor Details
-
MultiLogManager
public MultiLogManager()Create a non-persistentMultiLogManager. -
MultiLogManager
Create aMultiLogManager.- Parameters:
client- who to inform during recovery.path- where to store logging information.
-
-
Method Details
-
logFor
Description copied from interface:LogManagerFactory method which returns a Log interface which can be used to create persistent records which collectively represent a system's state.- Specified by:
logForin interfaceLogManager- Parameters:
cookie- identifier representing the information being logged.- Throws:
LogException
-
recover
Consumes the log file and re-constructs a system's state.- Specified by:
recoverin interfaceLogManager- Throws:
LogException
-
getAdmin
Retrieves the administration interface for theMultiLogManager- Specified by:
getAdminin interfaceAdministrable- Specified by:
getAdminin interfaceLogManager- Returns:
- an object that implements whatever administration interfaces are appropriate for the particular service.
- See Also:
-
destroy
public void destroy()Clean up allLogFileobjects on behalf of caller.- Specified by:
destroyin interfaceDestroyAdmin- Specified by:
destroyin interfaceMultiLogManagerAdmin- See Also:
-