public class TemplateHolder extends AbstractSpaceItem implements ITemplateHolder
This class extends entryHolder object.
Constructor and Description |
---|
TemplateHolder(IServerTypeDesc typeDesc,
IEntryPacket packet,
String uid,
long expirationTime,
XtnEntry xidOriginated,
long scn,
int templateOperation,
IResponseContext respContext,
int operationModifiers) |
TemplateHolder(IServerTypeDesc typeDesc,
ITemplatePacket packet,
String uid,
long expirationTime,
XtnEntry xidOriginated,
long scn,
int templateOperation,
IResponseContext respContext,
boolean returnOnlyUid,
int operationModifiers,
boolean isfifo) |
TemplateHolder(IServerTypeDesc typeDesc,
ITemplatePacket packet,
String uid,
long expirationTime,
XtnEntry xidOriginated,
long scn,
int templateOperation,
IResponseContext respContext,
boolean returnOnlyUid,
int operationModifiers,
boolean isfifo,
boolean fromReplication) |
getClassName, getEvictableLockObject, getExpirationTime, getHandback, getNotifyType, getOrder, getRoutingValue, getSCN, getServerTypeDesc, getUID, getVersionID, hasShadow, isDeleted, isLockSubject, isShadow, isTransient, setDeleted, setMaybeUnderXtn, setOrder, setSCN, setUID, toString, toText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExpirationTime
getHandback, getNotifyType, getOrder, getRoutingValue, hasShadow, isShadow, setOrder, setSCN, setUID
getClassName, getSCN, getServerTypeDesc, isDeleted, isTransient, setDeleted, setMaybeUnderXtn
isLockSubject
getUID
public TemplateHolder(IServerTypeDesc typeDesc, ITemplatePacket packet, String uid, long expirationTime, XtnEntry xidOriginated, long scn, int templateOperation, IResponseContext respContext, boolean returnOnlyUid, int operationModifiers, boolean isfifo, boolean fromReplication)
public TemplateHolder(IServerTypeDesc typeDesc, ITemplatePacket packet, String uid, long expirationTime, XtnEntry xidOriginated, long scn, int templateOperation, IResponseContext respContext, boolean returnOnlyUid, int operationModifiers, boolean isfifo)
public TemplateHolder(IServerTypeDesc typeDesc, IEntryPacket packet, String uid, long expirationTime, XtnEntry xidOriginated, long scn, int templateOperation, IResponseContext respContext, int operationModifiers)
public boolean isHasWaitingFor()
isHasWaitingFor
in interface ISpaceItem
public void setHasWaitingFor(boolean value)
setHasWaitingFor
in interface ISpaceItem
public boolean isNotifyTemplate()
isNotifyTemplate
in interface ITemplateHolder
public void setExpirationTime(long expirationTime)
setExpirationTime
in interface ISpaceItem
setExpirationTime
in class AbstractSpaceItem
public void setExpirationTime(long expirationTime, boolean createSnapshot)
public boolean isExpired()
isExpired
in interface IEntryHolder
public boolean isExpired(long limit)
isExpired
in interface IEntryHolder
public void updateVersionAndExpiration(int versionID, long expiration)
updateVersionAndExpiration
in interface ISpaceItem
public int getTemplateOperation()
getTemplateOperation
in interface ITemplateHolder
public boolean hasPendingRemoteException()
public void setPendingRemoteException(boolean value)
public QueryResultTypeInternal getQueryResultType()
getQueryResultType
in interface ITemplateHolder
public IResponseContext getResponseContext()
getResponseContext
in interface ITemplateHolder
public int getTokenFieldNumber()
getTokenFieldNumber
in interface ITemplateHolder
public boolean isInitialIfExistSearchActive()
isInitialIfExistSearchActive
in interface ITemplateHolder
public void setInitialIfExistSearchActive()
setInitialIfExistSearchActive
in interface ITemplateHolder
public void resetInitialIfExistSearchActive()
resetInitialIfExistSearchActive
in interface ITemplateHolder
public boolean isEmptyTemplate()
isEmptyTemplate
in interface ITemplateHolder
public boolean hasExtendedMatchCodes()
hasExtendedMatchCodes
in interface ITemplateHolder
public short[] getExtendedMatchCodes()
getExtendedMatchCodes
in interface ITemplateHolder
public boolean isExclusiveReadLockOperation()
isExclusiveReadLockOperation
in interface ITemplateHolder
public boolean isFifoSearch()
isFifoSearch
in interface ITemplateHolder
public boolean isFifoTemplate()
isFifoTemplate
in interface ITemplateHolder
public boolean isIfExist()
isIfExist
in interface ITemplateHolder
public boolean isInCache()
isInCache
in interface ITemplateHolder
public void setInCache()
setInCache
in interface ITemplateHolder
public boolean isExpirationTimeSet()
isExpirationTimeSet
in interface ITemplateHolder
public void removePendingFifoSearchObject(boolean disableInitialSearch)
removePendingFifoSearchObject
in interface ITemplateHolder
public void setPendingFifoSearchObject(PendingFifoSearch pobj)
setPendingFifoSearchObject
in interface ITemplateHolder
public PendingFifoSearch getPendingFifoSearchObject()
getPendingFifoSearchObject
in interface ITemplateHolder
public boolean isInitialFifoSearchActive()
isInitialFifoSearchActive
in interface ITemplateHolder
public void setInitialFifoSearchActive()
setInitialFifoSearchActive
in interface ITemplateHolder
public void resetInitialFifoSearchActive()
public long getFifoXtnNumberOnSearchStart()
getFifoXtnNumberOnSearchStart
in interface ITemplateHolder
public void setFifoXtnNumberOnSearchStart(long xtnnum)
setFifoXtnNumberOnSearchStart
in interface ITemplateHolder
public void resetFifoXtnNumberOnSearchStart()
resetFifoXtnNumberOnSearchStart
in interface ITemplateHolder
public boolean isWriteLockOperation()
isWriteLockOperation
in interface ITemplateHolder
public boolean isReadOperation()
isReadOperation
in interface ITemplateHolder
public boolean isTakeOperation()
isTakeOperation
in interface ITemplateHolder
public boolean isUpdateOperation()
isUpdateOperation
in interface ITemplateHolder
public boolean isInitiatedEvictionOperation()
isInitiatedEvictionOperation
in interface ITemplateHolder
public boolean isReadCommittedRequested()
isReadCommittedRequested
in interface ITemplateHolder
public boolean isDirtyReadRequested()
isDirtyReadRequested
in interface ITemplateHolder
public int getFifoThreadPartition()
getFifoThreadPartition
in interface ITemplateHolder
public void setFifoThreadPartition(int nThread)
setFifoThreadPartition
in interface ITemplateHolder
public boolean isSecondPhase()
isSecondPhase
in interface ITemplateHolder
com.gigaspaces.internal.server.space.SpaceEngine#notifyReceiver(ITemplateHolder,
IEntryPacket, Exception, boolean)
public void setSecondPhase()
setSecondPhase
in interface ITemplateHolder
isSecondPhase()
public boolean hasAnswer()
hasAnswer
in interface ITemplateHolder
public AnswerHolder getAnswerHolder()
getAnswerHolder
in interface ITemplateHolder
public void setAnswerHolder(AnswerHolder answerHolder)
setAnswerHolder
in interface ITemplateHolder
public void setInExpirationManager(boolean inManager)
setInExpirationManager
in interface ITemplateHolder
public boolean isInExpirationManager()
isInExpirationManager
in interface ITemplateHolder
public boolean isExplicitInsertionToExpirationManager()
isExplicitInsertionToExpirationManager
in interface ITemplateHolder
public String getExternalEntryImplClassName()
getExternalEntryImplClassName
in interface ITemplateHolder
public OperationID getOperationID()
getOperationID
in interface ITemplateHolder
public void resetXidOriginated()
resetXidOriginated
in interface IEntryHolder
m_XidOriginated
- the m_XidOriginated to setpublic XtnEntry getXidOriginated()
getXidOriginated
in interface ISpaceItem
public ServerTransaction getXidOriginatedTransaction()
getXidOriginatedTransaction
in interface ISpaceItem
public boolean isMaybeUnderXtn()
isMaybeUnderXtn
in interface ISpaceItem
isMaybeUnderXtn
in class AbstractSpaceItem
public void setNonBlockingRead(boolean val)
setNonBlockingRead
in interface ITemplateHolder
public boolean isNonBlockingRead()
isNonBlockingRead
in interface ITemplateHolder
public Object getRangeValue(int index)
getRangeValue
in interface ITemplateHolder
public boolean getRangeInclusion(int index)
getRangeInclusion
in interface ITemplateHolder
public void dump(Logger logger, String msg)
dump
in class AbstractSpaceItem
public boolean isMatchByID()
isMatchByID
in interface ITemplateHolder
public Object getEntryId()
getEntryId
in interface IEntryHolder
getEntryId
in class AbstractSpaceItem
public String getUidToOperateBy()
getUidToOperateBy
in interface ISpaceItem
public void setUidToOperateBy(String uid)
setUidToOperateBy
in interface ITemplateHolder
public String[] getMultipleUids()
getMultipleUids
in interface ITemplateHolder
public boolean isReturnOnlyUid()
isReturnOnlyUid
in interface ITemplateHolder
public IEntryHolder getUpdatedEntry()
getUpdatedEntry
in interface ITemplateHolder
public void setUpdatedEntry(IEntryHolder updatedEntry)
setUpdatedEntry
in interface ITemplateHolder
public void setReRegisterLeaseOnUpdate(boolean value)
setReRegisterLeaseOnUpdate
in interface ITemplateHolder
public boolean isReRegisterLeaseOnUpdate()
isReRegisterLeaseOnUpdate
in interface ITemplateHolder
public int getOperationModifiers()
getOperationModifiers
in interface ITemplateHolder
public IEntryData getEntryData()
getEntryData
in interface ISpaceItem
public boolean isMemoryOnlySearch()
isMemoryOnlySearch
in interface ITemplateHolder
public void setMemoryOnlySearch(boolean memoryOnly)
setMemoryOnlySearch
in interface ITemplateHolder
public ICustomQuery getCustomQuery()
getCustomQuery
in interface ITemplateHolder
public void setCustomQuery(ICustomQuery customQuery)
public SQLQuery<?> toSQLQuery(ITypeDesc typeDesc)
toSQLQuery
in interface ITemplateHolder
public void setID(Object id)
setID
in interface ITemplateHolder
public Object getID()
getID
in interface ITemplateHolder
public MatchResult match(CacheManager cacheManager, IEntryHolder entry, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry, Context context, RegexCache regexCache)
match
in interface ITemplateHolder
public boolean quickReject(Context context, FifoSearch fifoSearch)
quickReject
in interface ITemplateHolder
public ITransactionalEntryData getTxnEntryData()
getTxnEntryData
in interface IEntryHolder
public boolean anyReadLockXtn()
anyReadLockXtn
in interface IEntryHolder
public List<XtnEntry> getReadLockOwners()
getReadLockOwners
in interface IEntryHolder
public void addReadLockOwner(XtnEntry xtn)
addReadLockOwner
in interface IEntryHolder
public void removeReadLockOwner(XtnEntry xtn)
removeReadLockOwner
in interface IEntryHolder
public void clearReadLockOwners()
clearReadLockOwners
in interface IEntryHolder
public XtnEntry getWriteLockOwner()
getWriteLockOwner
in interface IEntryHolder
public boolean isEntryUnderWriteLockXtn()
isEntryUnderWriteLockXtn
in interface IEntryHolder
public int getWriteLockOperation()
getWriteLockOperation
in interface IEntryHolder
public ServerTransaction getWriteLockTransaction()
getWriteLockTransaction
in interface IEntryHolder
public Collection<ITemplateHolder> getTemplatesWaitingForEntry()
getTemplatesWaitingForEntry
in interface IEntryHolder
public Collection<ITemplateHolder> getCopyOfTemplatesWaitingForEntry()
getCopyOfTemplatesWaitingForEntry
in interface IEntryHolder
public void addTemplateWaitingForEntry(ITemplateHolder template)
addTemplateWaitingForEntry
in interface IEntryHolder
public void removeTemplateWaitingForEntry(ITemplateHolder template)
removeTemplateWaitingForEntry
in interface IEntryHolder
public IEntryHolder getMaster()
getMaster
in interface IEntryHolder
public void setFieldsValues(Object[] fieldsValues, boolean createSnapsht)
public void updateEntryData(IEntryData newEntryData, long expirationTime)
updateEntryData
in interface IEntryHolder
public void resetEntryXtnInfo()
resetEntryXtnInfo
in interface IEntryHolder
public void resetWriteLockOwner()
resetWriteLockOwner
in interface IEntryHolder
public void setWriteLockOperation(int writeLockOperation, boolean createSnapshot)
setWriteLockOperation
in interface IEntryHolder
public void setWriteLockOwnerAndOperation(XtnEntry writeLockOwner, int writeLockOperation)
setWriteLockOwnerAndOperation
in interface IEntryHolder
public void setWriteLockOwnerAndOperation(XtnEntry writeLockOwner, int writeLockOperation, boolean createSnapshot)
setWriteLockOwnerAndOperation
in interface IEntryHolder
public void setWriteLockOwnerOperationAndShadow(XtnEntry writeLockOwner, int writeLockOperation, IEntryHolder otherEh)
setWriteLockOwnerOperationAndShadow
in interface IEntryHolder
public boolean hasShadow(boolean safeEntry)
hasShadow
in interface IEntryHolder
hasShadow
in class AbstractSpaceItem
public ShadowEntryHolder getShadow()
getShadow
in interface IEntryHolder
public void restoreUpdateXtnRollback(IEntryData entryData)
restoreUpdateXtnRollback
in interface IEntryHolder
public void setOtherUpdateUnderXtnEntry(IEntryHolder eh)
setOtherUpdateUnderXtnEntry
in interface IEntryHolder
public IEntryHolder createCopy()
createCopy
in interface IEntryHolder
public IEntryHolder createDummy()
createDummy
in interface IEntryHolder
public boolean isUnstable()
isUnstable
in interface IEntryHolder
public void setunStable(boolean value)
setunStable
in interface IEntryHolder
public int getPreviousVersion()
getPreviousVersion
in interface ITemplateHolder
public int getAfterOpFilterCode()
getAfterOpFilterCode
in interface ITemplateHolder
public IEntryPacket getUpdateOperationEntry()
getUpdateOperationEntry
in interface ITemplateHolder
public SpaceContext getSpaceContext()
getSpaceContext
in interface ITemplateHolder
public FilterManager getFilterManager()
getFilterManager
in interface ITemplateHolder
public void setForAfterOperationFilter(int afterOpFilterCode, SpaceContext sc, FilterManager fm, IEntryPacket updateOperationEntry)
setForAfterOperationFilter
in interface ITemplateHolder
public boolean isFifoGroupPoll()
isFifoGroupPoll
in interface ITemplateHolder
public boolean isChange()
isChange
in interface ITemplateHolder
public boolean isChangeById()
isChangeById
in interface ITemplateHolder
public void setMutators(Collection<SpaceEntryMutator> mutators)
setMutators
in interface ITemplateHolder
public Collection<SpaceEntryMutator> getMutators()
getMutators
in interface ITemplateHolder
public void setChangeExpiration(long expirationTime)
setChangeExpiration
in interface ITemplateHolder
public EntryHolderAggregatorContext getAggregatorContext()
getAggregatorContext
in interface ITemplateHolder
public void setAggregatorContext(EntryHolderAggregatorContext aggregatorContext)
setAggregatorContext
in interface ITemplateHolder
public long getChangeExpiration()
getChangeExpiration
in interface ITemplateHolder
public void setIfExistForChange()
setIfExistForChange
in interface ITemplateHolder
public Throwable getRejectedOpOriginalException()
getRejectedOpOriginalException
in interface ITemplateHolder
public void setRejectedOpOriginalExceptionAndEntry(Throwable cause, IEntryData rejectedEntry)
setRejectedOpOriginalExceptionAndEntry
in interface ITemplateHolder
public IEntryData getRejectedOperationEntry()
getRejectedOperationEntry
in interface ITemplateHolder
public boolean isSetSingleOperationExtendedErrorInfo()
isSetSingleOperationExtendedErrorInfo
in interface ITemplateHolder
public Collection<IEntryHolder> getEntriesWaitingForTemplate()
getEntriesWaitingForTemplate
in interface ITemplateHolder
public void addEntryWaitingForTemplate(IEntryHolder entry)
addEntryWaitingForTemplate
in interface ITemplateHolder
public void removeEntryWaitingForTemplate(IEntryHolder entry)
removeEntryWaitingForTemplate
in interface ITemplateHolder
public boolean isBatchOperation()
isBatchOperation
in interface ITemplateHolder
public boolean isReadMultiple()
isReadMultiple
in interface ITemplateHolder
public boolean isTakeMultiple()
isTakeMultiple
in interface ITemplateHolder
public BatchQueryOperationContext getBatchOperationContext()
getBatchOperationContext
in interface ITemplateHolder
public void setBatchOperationContext(BatchQueryOperationContext batchOpContext)
setBatchOperationContext
in interface ITemplateHolder
public boolean canFinishBatchOperation()
canFinishBatchOperation
in interface ITemplateHolder
public boolean isChangeMultiple()
isChangeMultiple
in interface ITemplateHolder
public boolean isChangeQuery()
isChangeQuery
in interface ITemplateHolder
public AbstractProjectionTemplate getProjectionTemplate()
getProjectionTemplate
in interface ITemplateHolder
public boolean isIdQuery()
isIdQuery
in interface ITemplateHolder
public boolean isMultipleIdsOperation()
isMultipleIdsOperation
in interface ITemplateHolder
public MultipleIdsContext getMultipleIdsContext()
getMultipleIdsContext
in interface ITemplateHolder
public void setMultipleIdsContext(MultipleIdsContext byIdsContext)
setMultipleIdsContext
in interface ITemplateHolder
public boolean isUpdateMultiple()
isUpdateMultiple
in interface ITemplateHolder
public void setOrdinalForEntryByIdMultipleOperation(int ordinal)
setOrdinalForEntryByIdMultipleOperation
in interface ITemplateHolder
public int getOrdinalForEntryByIdMultipleOperation()
getOrdinalForEntryByIdMultipleOperation
in interface ITemplateHolder
public UpdateOrWriteContext getUpfdateOrWriteContext()
getUpfdateOrWriteContext
in interface ITemplateHolder
public void setUpdateOrWriteContext(UpdateOrWriteContext ctx)
setUpdateOrWriteContext
in interface ITemplateHolder
public boolean isSameEntryInstance(IEntryHolder other)
isSameEntryInstance
in interface IEntryHolder
public boolean isBlobStoreEntry()
isBlobStoreEntry
in interface IEntryHolder
public IEntryHolder getOriginalEntryHolder()
getOriginalEntryHolder
in interface IEntryHolder
public boolean isAllValuesIndexSqlQuery()
isAllValuesIndexSqlQuery
in interface ITemplateHolder
public boolean isSqlQuery()
isSqlQuery
in interface ITemplateHolder
public ILockObject getExternalLockObject()
ILockedSubject
getExternalLockObject
in interface ILockedSubject
public boolean isOptimizedForBlobStoreOp(CacheManager cacheManager)
isOptimizedForBlobStoreOp
in interface ITemplateHolder
public static boolean isOptimizedForBlobStoreClear(CacheManager cacheManager, ITemplatePacket templatePacket, TemplateEntryData templateEntryData)
public SingleExplainPlan getExplainPlan()
Copyright © GigaSpaces.