Package org.teiid.adminapi.impl
Class RequestMetadata
- java.lang.Object
-
- org.teiid.adminapi.impl.AdminObjectImpl
-
- org.teiid.adminapi.impl.RequestMetadata
-
- All Implemented Interfaces:
Serializable,AdminObject,DomainAware,Request,RequestBean
public class RequestMetadata extends AdminObjectImpl implements Request
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.adminapi.Request
Request.ProcessingState, Request.ThreadState
-
-
Field Summary
-
Fields inherited from class org.teiid.adminapi.impl.AdminObjectImpl
attachments
-
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description RequestMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCommand()Get the SQL Command sent to the Server for a RequestlonggetExecutionId()Get the ExecutionId for a RequestIntegergetNodeId()StringgetSessionId()Get the SessionID for a RequestlonggetStartTime()Get when the processing began for this RequestRequest.ProcessingStategetState()Request.ThreadStategetThreadState()StringgetTransactionId()Get the TransactionID of the RequestinthashCode()booleanisSourceRequest()voidsetCommand(String cmd)voidsetExecutionId(long id)voidsetNodeId(Integer nodeID)voidsetSessionId(String session)voidsetSourceRequest(boolean sourceRequest)voidsetStartTime(long time)voidsetState(Request.ProcessingState state)voidsetThreadState(Request.ThreadState threadState)voidsetTransactionId(String id)booleansourceRequest()StringtoString()-
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttachment, addAttchment, addProperty, getAttachment, getHostName, getName, getProperties, getPropertiesMap, getPropertyValue, getServerGroup, getServerName, removeAttachment, removeProperty, setHostName, setName, setProperties, setServerGroup, setServerName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teiid.adminapi.AdminObject
getName, getProperties, getPropertyValue
-
Methods inherited from interface org.teiid.adminapi.DomainAware
getHostName, getServerGroup, getServerName
-
-
-
-
Method Detail
-
getExecutionId
public long getExecutionId()
Description copied from interface:RequestBeanGet the ExecutionId for a Request- Specified by:
getExecutionIdin interfaceRequestBean- Returns:
- ExecutionId
-
setExecutionId
public void setExecutionId(long id)
-
getState
public Request.ProcessingState getState()
- Specified by:
getStatein interfaceRequestBean- Returns:
- The request state
-
setState
public void setState(Request.ProcessingState state)
-
getThreadState
public Request.ThreadState getThreadState()
- Specified by:
getThreadStatein interfaceRequestBean- Returns:
- The thread state
-
setThreadState
public void setThreadState(Request.ThreadState threadState)
-
getSessionId
public String getSessionId()
Description copied from interface:RequestBeanGet the SessionID for a Request- Specified by:
getSessionIdin interfaceRequestBean- Returns:
- String SessionID
-
setSessionId
public void setSessionId(String session)
-
getStartTime
public long getStartTime()
Description copied from interface:RequestBeanGet when the processing began for this Request- Specified by:
getStartTimein interfaceRequestBean- Returns:
- Date processing began
-
setStartTime
public void setStartTime(long time)
-
getCommand
public String getCommand()
Description copied from interface:RequestBeanGet the SQL Command sent to the Server for a Request- Specified by:
getCommandin interfaceRequestBean- Returns:
- SQL Command
-
setCommand
public void setCommand(String cmd)
-
sourceRequest
public boolean sourceRequest()
- Specified by:
sourceRequestin interfaceRequest- Returns:
- Returns whether this is a Source Request.
-
setSourceRequest
public void setSourceRequest(boolean sourceRequest)
-
getNodeId
public Integer getNodeId()
- Specified by:
getNodeIdin interfaceRequestBean- Returns:
- In the case that this is a source request this represents the node id. Otherwise null
-
setNodeId
public void setNodeId(Integer nodeID)
-
getTransactionId
public String getTransactionId()
Description copied from interface:RequestBeanGet the TransactionID of the Request- Specified by:
getTransactionIdin interfaceRequestBean- Returns:
- String of TransactionID if in a transaction
-
setTransactionId
public void setTransactionId(String id)
-
isSourceRequest
public boolean isSourceRequest()
- Specified by:
isSourceRequestin interfaceRequestBean- Returns:
- Returns whether this is a Source Request.
-
-