public abstract class CacheableCommandImpl extends TargetableCommandImpl implements CacheableCommand, com.ibm.websphere.cache.Sizeable
CacheableCommandImpl is a super class of all CacheableCommands.
LOCALserialVersionUID| Constructor and Description |
|---|
CacheableCommandImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
This implements the method in the Command interface, overriding
the implementation in TargetableCommandImpl.
|
boolean |
executeFromCache()
executeFromCache This method will check the cache to see if the
given command is present.
|
CommandCaller |
getCaller()
Implements the CacheableCommand interface method.
|
com.ibm.websphere.cache.EntryInfo |
getEntryInfo()
The gets this command's EntryInfo object, which holds its caching
metadata.
|
java.lang.String |
getId()
This is the method in the CacheableCommand interface.
|
long |
getObjectSize() |
int |
getSharingPolicy()
This is the method in the CacheableCommand interface.
|
void |
postExecute()
Implements the CacheableCommand interface.
|
boolean |
preExecute()
This implements the CacheableCommand interface.
|
void |
reset()
Reset the command for reuse.
|
void |
setCaller(CommandCaller caller)
Implements the CacheableCommand interface method.
|
void |
setObjectSize(long objectSize) |
void |
unionDependencies(com.ibm.websphere.cache.EntryInfo entryInfo)
This is called by the CommandCache to add dependencies to this command.
|
void |
updateCache()
This method will cause the current command to be placed into the cache.
|
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, isReadyToCallExecute, performExecute, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputPropertiesisReadyToCallExecutepublic final java.lang.String getId()
getId in interface CacheableCommandpublic final int getSharingPolicy()
getSharingPolicy in interface CacheableCommandpublic boolean preExecute()
preExecute in interface CacheableCommandpublic void postExecute()
postExecute in interface CacheableCommandpublic void execute()
throws CommandException
It does the following:
execute in interface Commandexecute in class TargetableCommandImplCommandException - The superclass for all command exceptions.public void setCaller(CommandCaller caller)
setCaller in interface CacheableCommandcaller - The command that called this command.public CommandCaller getCaller()
getCaller in interface CacheableCommandpublic void unionDependencies(com.ibm.websphere.cache.EntryInfo entryInfo)
unionDependencies in interface CommandCallerentryInfo - This command's entryInfo.public com.ibm.websphere.cache.EntryInfo getEntryInfo()
getEntryInfo in interface CacheableCommandpublic void reset()
reset in interface Commandreset in class TargetableCommandImplpublic boolean executeFromCache()
throws CommandException
executeFromCache in interface CacheableCommandCommandExceptionpublic void updateCache()
updateCache in interface CacheableCommandpublic long getObjectSize()
getObjectSize in interface com.ibm.websphere.cache.Sizeablepublic void setObjectSize(long objectSize)