|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.query.util.CommandContext
public class CommandContext
Defines the context that a command is processing in. For example, this defines who is processing the command and why. Also, this class (or subclasses) provide a means to pass context-specific information between users of the query processor framework.
Constructor Summary | |
---|---|
|
CommandContext()
|
protected |
CommandContext(CommandContext context)
|
|
CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
TupleSourceID tupleSourceID,
int outputBatchSize,
java.lang.String userName,
java.io.Serializable trustedPayload,
java.io.Serializable commandPayload,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.util.Properties envProperties,
boolean processDebug,
boolean collectNodeStatistics)
Construct a new context. |
|
CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
TupleSourceID tupleSourceID,
int outputBatchSize,
java.lang.String userName,
java.io.Serializable trustedPayLoad,
java.lang.String vdbName,
java.lang.String vdbVersion)
Construct a new context. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
getCallStackDepth()
|
boolean |
getCollectNodeStatistics()
|
java.io.Serializable |
getCommandPayload()
|
java.lang.String |
getConnectionID()
|
int |
getConnectorBatchSize()
|
java.util.Properties |
getEnvironmentProperties()
|
double |
getNextRand()
|
double |
getNextRand(long seed)
|
int |
getOutputBatchSize()
|
PlanToProcessConverter |
getPlanToProcessConverter()
|
java.util.List |
getPreparedBatchUpdateValues()
|
boolean |
getProcessDebug()
|
int |
getProcessorBatchSize()
|
java.lang.Object |
getProcessorID()
|
QueryProcessor.ProcessorFactory |
getQueryProcessorFactory()
|
SecurityFunctionEvaluator |
getSecurityFunctionEvaluator()
|
java.util.TimeZone |
getServerTimeZone()
|
int |
getStreamingBatchSize()
|
java.lang.Object |
getTempTableStore()
|
java.io.Serializable |
getTrustedPayload()
|
TupleSourceID |
getTupleSourceID()
|
java.lang.String |
getUserName()
|
java.lang.String |
getVdbName()
|
java.lang.String |
getVdbVersion()
|
int |
hashCode()
|
boolean |
isOptimisticTransaction()
|
void |
popCall()
|
void |
pushCall(java.lang.String value)
|
void |
setCollectNodeStatistics(boolean collectNodeStatistics)
|
void |
setCommandPayload(java.io.Serializable commandPayload)
|
void |
setConnectionID(java.lang.String connectionID)
Sets the connectionID. |
void |
setConnectorBatchSize(int connectorBatchSize)
|
void |
setEnvironmentProperties(java.util.Properties properties)
|
void |
setOptimisticTransaction(boolean optimisticTransaction)
|
void |
setOutputBatchSize(int i)
|
void |
setPlanToProcessConverter(PlanToProcessConverter planToProcessConverter)
|
void |
setPreparedBatchUpdateValues(java.util.List preparedBatchUpdateValues)
|
void |
setProcessDebug(boolean processDebug)
|
void |
setProcessorBatchSize(int processorBatchSize)
|
void |
setProcessorID(java.lang.Object object)
|
void |
setQueryProcessorFactory(QueryProcessor.ProcessorFactory queryProcessorFactory)
|
void |
setSecurityFunctionEvaluator(SecurityFunctionEvaluator securityFunctionEvaluator)
|
void |
setStreamingBatchSize(int streamingBatchSize)
|
void |
setTempTableStore(java.lang.Object tempTableStore)
|
void |
setTrustedPayload(java.io.Serializable trustedPayLoad)
Sets the trustedPayLoad. |
void |
setTupleSourceID(TupleSourceID sourceID)
|
void |
setUserName(java.lang.String userName)
Sets the userName. |
void |
setVdbName(java.lang.String vdbName)
Sets the vdbName. |
void |
setVdbVersion(java.lang.String vdbVersion)
Sets the vdbVersion. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandContext(java.lang.Object processorID, java.lang.String connectionID, TupleSourceID tupleSourceID, int outputBatchSize, java.lang.String userName, java.io.Serializable trustedPayload, java.io.Serializable commandPayload, java.lang.String vdbName, java.lang.String vdbVersion, java.util.Properties envProperties, boolean processDebug, boolean collectNodeStatistics)
collectNodeStatistics
- TODOpublic CommandContext(java.lang.Object processorID, java.lang.String connectionID, TupleSourceID tupleSourceID, int outputBatchSize, java.lang.String userName, java.io.Serializable trustedPayLoad, java.lang.String vdbName, java.lang.String vdbVersion)
protected CommandContext(CommandContext context)
public CommandContext()
Method Detail |
---|
public int getOutputBatchSize()
public java.lang.Object getProcessorID()
public TupleSourceID getTupleSourceID()
public boolean getProcessDebug()
public void setProcessDebug(boolean processDebug)
public void setOutputBatchSize(int i)
i
- public void setProcessorID(java.lang.Object object)
object
- public void setTupleSourceID(TupleSourceID sourceID)
sourceID
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getConnectionID()
public java.io.Serializable getTrustedPayload()
public java.lang.String getUserName()
public java.lang.String getVdbName()
public java.lang.String getVdbVersion()
public void setConnectionID(java.lang.String connectionID)
connectionID
- The connectionID to setpublic void setTrustedPayload(java.io.Serializable trustedPayLoad)
trustedPayLoad
- The trustedPayLoad to setpublic void setUserName(java.lang.String userName)
userName
- The userName to setpublic void setVdbName(java.lang.String vdbName)
vdbName
- The vdbName to setpublic void setVdbVersion(java.lang.String vdbVersion)
vdbVersion
- The vdbVersion to setpublic java.util.Properties getEnvironmentProperties()
public void setEnvironmentProperties(java.util.Properties properties)
public java.io.Serializable getCommandPayload()
public void setCommandPayload(java.io.Serializable commandPayload)
public void setCollectNodeStatistics(boolean collectNodeStatistics)
collectNodeStatistics
- The collectNodeStatistics to set.public boolean getCollectNodeStatistics()
public int getStreamingBatchSize()
public void setStreamingBatchSize(int streamingBatchSize)
public int getConnectorBatchSize()
public void setConnectorBatchSize(int connectorBatchSize)
public int getProcessorBatchSize()
public void setProcessorBatchSize(int processorBatchSize)
public double getNextRand()
public double getNextRand(long seed)
public void pushCall(java.lang.String value) throws QueryProcessingException
QueryProcessingException
public int getCallStackDepth()
public void popCall()
public void setOptimisticTransaction(boolean optimisticTransaction)
optimisticTransaction
- The optimisticTransaction to set.public boolean isOptimisticTransaction()
public SecurityFunctionEvaluator getSecurityFunctionEvaluator()
public void setSecurityFunctionEvaluator(SecurityFunctionEvaluator securityFunctionEvaluator)
securityFunctionEvaluator
- The securityFunctionEvaluator to set.public java.util.List getPreparedBatchUpdateValues()
public void setPreparedBatchUpdateValues(java.util.List preparedBatchUpdateValues)
public java.lang.Object getTempTableStore()
public void setTempTableStore(java.lang.Object tempTableStore)
public java.util.TimeZone getServerTimeZone()
public void setPlanToProcessConverter(PlanToProcessConverter planToProcessConverter)
public PlanToProcessConverter getPlanToProcessConverter()
public QueryProcessor.ProcessorFactory getQueryProcessorFactory()
public void setQueryProcessorFactory(QueryProcessor.ProcessorFactory queryProcessorFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |