|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.websphere.command.TargetableCommandImpl | +--com.ibm.websphere.command.CacheableCommandImpl
This CacheableCommandImpl abstract class provides an implementation for all CacheableCommand interface methods except those that the command writer must write. This class provides a runtime for command execution that interacts with the CommandCache. It also provides the contract between this command runtime and the command writer.
CacheableCommandImpl is a super class of all CacheableCommands.
Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl |
---|
commandTarget, commandTargetName, hasOutputProperties, LOCAL, targetPolicy |
Fields inherited from interface com.ibm.websphere.command.Command |
---|
serialVersionUID |
Constructor Summary | |
---|---|
CacheableCommandImpl()
|
Method Summary | |
---|---|
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. |
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. |
int |
getSharingPolicy()
This is the method in the CacheableCommand interface. |
void |
postExecute()
Implements the CacheableCommand interface. |
boolean |
preExecute()
This implements the CacheableCommand interface. |
protected void |
prepareMetadata()
This method implements the default command cache policy |
void |
reset()
Reset the command for reuse... |
void |
setCaller(CommandCaller caller)
Implements the CacheableCommand interface method. |
void |
unionDependencies(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. |
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl |
---|
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, isReadyToCallExecute, performExecute, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.websphere.command.TargetableCommand |
---|
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties |
Methods inherited from interface com.ibm.websphere.command.Command |
---|
isReadyToCallExecute |
Constructor Detail |
public CacheableCommandImpl()
Method Detail |
public final java.lang.String getId()
getId
in interface CacheableCommand
public final int getSharingPolicy()
getSharingPolicy
in interface CacheableCommand
public boolean preExecute()
preExecute
in interface CacheableCommand
com.ibm.websphere.command.CacheableCommand
public void postExecute()
postExecute
in interface CacheableCommand
public void execute() throws CommandException
It does the following:
execute
in interface Command
execute
in class TargetableCommandImpl
CommandException
- The superclass for all command exceptions.public void setCaller(CommandCaller caller)
setCaller
in interface CacheableCommand
caller
- The command that called this command.public CommandCaller getCaller()
getCaller
in interface CacheableCommand
public void unionDependencies(EntryInfo entryInfo)
unionDependencies
in interface CommandCaller
entryInfo
- This command's entryInfo.public EntryInfo getEntryInfo()
getEntryInfo
in interface CacheableCommand
public void reset()
reset
in interface Command
reset
in class TargetableCommandImpl
public boolean executeFromCache() throws CommandException
executeFromCache
in interface CacheableCommand
public void updateCache()
updateCache
in interface CacheableCommand
protected void prepareMetadata()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |