|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.mahalo.log.SimpleLogFile
public class SimpleLogFile
An implementation of a re-usable Log
.
Log
Constructor Summary | |
---|---|
SimpleLogFile(String name,
long cookie,
MultiLogManager.LogRemovalManager logMgr)
Creates a SimpleLogFile . |
|
SimpleLogFile(String name,
MultiLogManager.LogRemovalManager logMgr)
Creates a read-only SimpleLogFile
To be used for read-only access to a named Log . |
Method Summary | |
---|---|
long |
cookie()
Returns the identifier associated with information in this Log . |
void |
invalidate()
Invalidate the log. |
void |
recover(LogRecovery client)
Recover information from the log. |
void |
write(LogRecord rec)
Add a LogRecord to the Log . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLogFile(String name, MultiLogManager.LogRemovalManager logMgr)
SimpleLogFile
To be used for read-only access to a named Log
. This is
desired when recovering information from a Log
.
name
- names the file in which information is stored.logMgr
- LogRemovalManager
managing this log.
This object is called back to remove this log
from the manager's managed set of log files.Log
,
LogManager
,
MultiLogManager
,
MultiLogManager.LogRemovalManager
public SimpleLogFile(String name, long cookie, MultiLogManager.LogRemovalManager logMgr)
SimpleLogFile
.
name
- names the file in which information is stored.cookie
- identifier representing information being stored.logMgr
- LogRemovalManager
managing this log.
This object is called back to remove this log
from the manager's responsibility.Log
,
LogManager
,
MultiLogManager
,
MultiLogManager.LogRemovalManager
Method Detail |
---|
public long cookie()
Log
.
cookie
in interface Log
Log
public void write(LogRecord rec) throws LogException
LogRecord
to the Log
.
write
in interface ClientLog
rec
- the record to be logged.
LogException
LogRecord
public void invalidate() throws LogException
invalidate
in interface ClientLog
LogException
public void recover(LogRecovery client) throws LogException
recover
in interface Log
client
- who to inform with information from the log.
LogException
LogRecovery
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |