|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogSequence
LogSequence is the ordered list of changes performed against a given map for a given transaction. These changes are recorded as LogElement objects.
Method Summary | |
---|---|
Iterator |
getAllChanges()
Returns an iterator for processing all of the changes for a LogSequence. |
Iterator |
getChangesByKeys(Collection keys)
Returns an iterator for processing the LogElements that have the requested keys. |
Iterator |
getChangesByTypes(Collection types)
Returns an iterator for processing the LogElements that are of the requested type. |
String |
getMapName()
Returns the name of the map that these changes apply to. |
String |
getObjectGridName()
Returns the name of the ObjectGrid that houses the map that these changes apply to. |
Iterator |
getPendingChanges()
Returns an iterator for processing all of the "pending" changes for a LogSequence (for example, pending inserts, updates, and deletes). |
boolean |
isDirty()
Returns whether this LogSequence has any LogElements that would "dirty" a Map. |
boolean |
isRollback()
Returns whether or not this LogSequence was generated to rollback a transaction. |
int |
size()
Returns the total number of LogElements within this LogSequence. |
Method Detail |
---|
int size()
Iterator getPendingChanges()
This method is normally used by a Loader
. A pending change
is one that has not been written out to a loader yet using a
flush()
operation. Note, the returned iterator's
remove()
is not allowed to be called and will throw
an exception.
ObjectMap.flush()
,
Session.flush()
Iterator getAllChanges()
This method would normally be used by an Evictor
and other
plugins that want to know all of the changes introduced by this LogSequence.
Note, the returned iterator's remove()
is not allowed to be
called and will throw an exception.
Iterator getChangesByTypes(Collection types)
Each member of the input Collection should be one of the defined
LogElement Types (INSERT, UPDATE, DELETE, FETCH, TOUCH, or EVICT).
Note, the returned iterator's remove()
is not allowed to be
called and will throw an exception.
types
- A Collection of LogElement Types (INSERT, UPDATE, etc)
IllegalArgumentException
- if types is null
LogElement.DELETE
,
LogElement.EVICT
,
LogElement.FETCH
,
LogElement.INSERT
,
LogElement.TOUCH
,
LogElement.UPDATE
,
LogElement.CLEAR
Iterator getChangesByKeys(Collection keys)
Note, the returned iterator's remove()
is not allowed to be
called and will throw an exception.
keys
- a collection of key objects
String getMapName()
The caller can use the return value of this method as input to the
Session.getMap(String)
method.
Session.getMap(String)
String getObjectGridName()
boolean isDirty()
That is, if it contains any LogElements of any type other than Fetch/Get, it is considered "dirty".
true
if the LogSequence would modify a Map, if applied;
false
if the LogSequence would not modify a Map, if appliedboolean isRollback()
Note, depending on when this LogSequence is used, the transaction itself might already be rolled back.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |