|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.log.TWGLogBookmark
This class is used as a cursor or bookmark to retrieve part of or updates to a log file.
Constructor Summary | |
---|---|
TWGLogBookmark()
|
Method Summary | |
---|---|
byte[] |
flatten()
Flatten a bookmark to a byte array so it can be sent as part of an IPC command. |
long |
getLastServiced()
Get the last serviced time from this bookmark. |
long |
getLastValidTimestamp()
Get the timestamp of the last message read using this bookmark. |
long |
getLastWrapped()
Get the last wrapped time from this bookmark. |
long |
getOffset()
Get the offset of where the last message was read using this bookmark. |
boolean |
isForBak()
|
boolean |
isForLog()
|
boolean |
isFullyRead()
|
boolean |
isUndefined()
|
void |
setForLog(boolean forLog)
|
void |
setFullyRead()
|
void |
startLog()
Set up this book mark to indicate the beginning of the the .log file. |
java.lang.String |
toString()
|
void |
unflatten(byte[] bytes)
Set up a bookmark from a byte array as it would be received from an IPC command. |
void |
update(long lastServiced,
long lastWrapped)
Update the bookmark's time stamps for log engine activities. |
void |
update(TWGLogMsg msg,
long offset,
boolean forLog)
Update the bookmark's place holding information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGLogBookmark()
Method Detail |
public void unflatten(byte[] bytes)
bytes
- an array of bytes containing the bookmark datapublic final byte[] flatten()
public void update(long lastServiced, long lastWrapped)
lastServiced
- new time for when log engine serviced loglastWrapped
- new time for when log engine wrapped logpublic void update(TWGLogMsg msg, long offset, boolean forLog)
msg
- a TWGLogMsg to get the message timestamp fromoffset
- the offset at which msg was readforLog
- true means set bookmark to represent .log;
false means set bookmark to represent .bakpublic void startLog()
public final long getLastServiced()
public final long getLastWrapped()
public final long getLastValidTimestamp()
public final long getOffset()
public final void setForLog(boolean forLog)
public final boolean isUndefined()
public final boolean isForBak()
public final boolean isForLog()
public final void setFullyRead()
public final boolean isFullyRead()
public final java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |