public class Processor extends Object implements IConsumerObject<BusPacket<Processor>>
Constructor and Description |
---|
Processor(SpaceEngine engine) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
clean up resources
|
void |
dispatch(BusPacket<Processor> packet)
Main event loop.
|
void |
entryArrivedSA(EntryArrivedPacket packet)
Handles EntryArrived packets.
|
void |
entryUnmatchedSA(EntryUnmatchedPacket packet)
Handles overridden packets.
|
void |
entryUpdatedSA(EntryUpdatedPacket packet) |
void |
handleCheckXtnStatusInTm(CheckXtnStatusInTmBusPackect packet)
Handles check xtn state in TM .
|
void |
handleCommitSA(CommitBusPacket packet)
Handles commit SA.
|
void |
handleCommittedTakenEntries(Context context,
XtnEntry xtnEntry)
handle taken entries under commit .
|
void |
handleDirectChangeSA(Context context,
ITemplateHolder template,
boolean fromReplication,
boolean origin) |
void |
handleDirectMultipleChangeSA(Context context,
ITemplateHolder template) |
void |
handleDirectMultipleReadIEOrTakeIESA(Context context,
ITemplateHolder template) |
void |
handleDirectMultipleReadTakeSA(Context context,
ITemplateHolder template) |
void |
handleDirectReadIEOrTakeIESA(Context context,
ITemplateHolder template,
boolean fromReplication,
boolean origin) |
void |
handleDirectReadOrTakeSA(Context context,
ITemplateHolder template,
boolean fromReplication,
boolean origin) |
void |
handleDirectUpdateSA(Context context,
ITemplateHolder template)
perform update given a template which is the updated entry.
|
WriteEntryResult |
handleDirectWriteSA(Context context,
IEntryHolder entry,
IServerTypeDesc typeDesc,
boolean fromReplication,
boolean origin,
boolean reInsertedEntry,
boolean supplied_uid,
boolean lockXtnsIfNeeded,
int modifiers)
Handles Direct write SA.
|
void |
handleEntryExpiredCoreSA(IEntryHolder entry,
ServerTransaction txn,
boolean fromReplication)
Handles EntryExpired packets.
|
void |
handleEntryExpiredSA(EntryExpiredBusPacket packet)
Handles EntryExpired packets.
|
void |
handleEntryTakenSA(EntryTakenPacket packet)
Handles EntryTaked packets.
|
void |
handleLockedFifoEntriesBeforeXtnEnd(Context context,
XtnEntry xtnEntry,
boolean fromRollback)
before xtn terminated update the last readLock/Writelock fifo xtn number for this entryin
order to have a coherent picture its is called during prepare/commit/rb from the engine main
routines before status change
|
void |
handleLockedFifoEntriesOnXtnEnd(Context context,
XtnEntry xtnEntry,
boolean fromRollback)
when xtn terminated send the fifo entries to look for for fifo templates its is called during
commit/rb from the engine main routines
|
void |
handleNewRolledbackEntries(Context context,
XtnEntry xtnEntry)
handle new entries under rollback .
|
boolean |
handleNotifyFifoInCommit(Context context,
XtnEntry xtnEntry,
boolean fifoNotifyForNonFifoEvents)
this routine is called if the m_CrossXtnsFifoNotifications proprty is set if inserts the
entries to the recentFifo queue of notify this routine is called directly after commit and
not by backgroud thread return true if any entry considered
|
void |
handleNotifyRegistration(NotifyTemplateHolder template,
boolean fromReplication,
AnswerHolder answer,
OperationID operationID) |
void |
handleRemoveWaitingForInfoSA(RemoveWaitingForInfoSABusPacket packet)
Handles the remove of waiting for info of a entry .
|
void |
handleRollbackSA(RollbackBusPacket packet)
Handles rollback SA.
|
void |
handleUpdateOrWrite(IResponseContext respContext,
UpdateOrWriteContext ctx,
ReplyPacket<?> respPacket) |
public Processor(SpaceEngine engine)
public void cleanUp()
IConsumerObject
cleanUp
in interface IConsumerObject<BusPacket<Processor>>
public void dispatch(BusPacket<Processor> packet)
dispatch
in interface IConsumerObject<BusPacket<Processor>>
public WriteEntryResult handleDirectWriteSA(Context context, IEntryHolder entry, IServerTypeDesc typeDesc, boolean fromReplication, boolean origin, boolean reInsertedEntry, boolean supplied_uid, boolean lockXtnsIfNeeded, int modifiers) throws TransactionException, UnusableEntryException, RemoteException, SAException
public void handleUpdateOrWrite(IResponseContext respContext, UpdateOrWriteContext ctx, ReplyPacket<?> respPacket)
public void handleDirectUpdateSA(Context context, ITemplateHolder template)
public void entryUpdatedSA(EntryUpdatedPacket packet) throws EntryDeletedException, SAException
packet
- SAException
EntryDeletedException
public void entryUnmatchedSA(EntryUnmatchedPacket packet) throws SAException, EntryDeletedException
SAException
EntryDeletedException
public void entryArrivedSA(EntryArrivedPacket packet) throws SAException, EntryDeletedException
SAException
EntryDeletedException
public void handleEntryTakenSA(EntryTakenPacket packet) throws Exception
Exception
public void handleEntryExpiredSA(EntryExpiredBusPacket packet) throws Exception
Exception
public void handleEntryExpiredCoreSA(IEntryHolder entry, ServerTransaction txn, boolean fromReplication) throws Exception
Exception
public void handleDirectReadOrTakeSA(Context context, ITemplateHolder template, boolean fromReplication, boolean origin)
public void handleDirectChangeSA(Context context, ITemplateHolder template, boolean fromReplication, boolean origin)
public void handleDirectReadIEOrTakeIESA(Context context, ITemplateHolder template, boolean fromReplication, boolean origin)
public void handleNotifyRegistration(NotifyTemplateHolder template, boolean fromReplication, AnswerHolder answer, OperationID operationID)
public void handleCommitSA(CommitBusPacket packet) throws SAException
SAException
public boolean handleNotifyFifoInCommit(Context context, XtnEntry xtnEntry, boolean fifoNotifyForNonFifoEvents) throws SAException
SAException
public void handleLockedFifoEntriesOnXtnEnd(Context context, XtnEntry xtnEntry, boolean fromRollback) throws SAException
SAException
public void handleLockedFifoEntriesBeforeXtnEnd(Context context, XtnEntry xtnEntry, boolean fromRollback) throws SAException
SAException
public void handleCommittedTakenEntries(Context context, XtnEntry xtnEntry) throws SAException
SAException
public void handleRollbackSA(RollbackBusPacket packet) throws SAException
SAException
public void handleNewRolledbackEntries(Context context, XtnEntry xtnEntry) throws SAException
SAException
public void handleRemoveWaitingForInfoSA(RemoveWaitingForInfoSABusPacket packet) throws SAException
SAException
public void handleDirectMultipleReadTakeSA(Context context, ITemplateHolder template)
public void handleDirectMultipleReadIEOrTakeIESA(Context context, ITemplateHolder template)
public void handleDirectMultipleChangeSA(Context context, ITemplateHolder template)
public void handleCheckXtnStatusInTm(CheckXtnStatusInTmBusPackect packet)
Copyright © GigaSpaces.