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 boolean
equals(Object obj)
String
getCommand()
Get the SQL Command sent to the Server for a Requestlong
getExecutionId()
Get the ExecutionId for a RequestInteger
getNodeId()
String
getSessionId()
Get the SessionID for a Requestlong
getStartTime()
Get when the processing began for this RequestRequest.ProcessingState
getState()
Request.ThreadState
getThreadState()
String
getTransactionId()
Get the TransactionID of the Requestint
hashCode()
boolean
isSourceRequest()
void
setCommand(String cmd)
void
setExecutionId(long id)
void
setNodeId(Integer nodeID)
void
setSessionId(String session)
void
setSourceRequest(boolean sourceRequest)
void
setStartTime(long time)
void
setState(Request.ProcessingState state)
void
setThreadState(Request.ThreadState threadState)
void
setTransactionId(String id)
boolean
sourceRequest()
String
toString()
-
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:RequestBean
Get the ExecutionId for a Request- Specified by:
getExecutionId
in interfaceRequestBean
- Returns:
- ExecutionId
-
setExecutionId
public void setExecutionId(long id)
-
getState
public Request.ProcessingState getState()
- Specified by:
getState
in interfaceRequestBean
- Returns:
- The request state
-
setState
public void setState(Request.ProcessingState state)
-
getThreadState
public Request.ThreadState getThreadState()
- Specified by:
getThreadState
in interfaceRequestBean
- Returns:
- The thread state
-
setThreadState
public void setThreadState(Request.ThreadState threadState)
-
getSessionId
public String getSessionId()
Description copied from interface:RequestBean
Get the SessionID for a Request- Specified by:
getSessionId
in interfaceRequestBean
- Returns:
- String SessionID
-
setSessionId
public void setSessionId(String session)
-
getStartTime
public long getStartTime()
Description copied from interface:RequestBean
Get when the processing began for this Request- Specified by:
getStartTime
in interfaceRequestBean
- Returns:
- Date processing began
-
setStartTime
public void setStartTime(long time)
-
getCommand
public String getCommand()
Description copied from interface:RequestBean
Get the SQL Command sent to the Server for a Request- Specified by:
getCommand
in interfaceRequestBean
- Returns:
- SQL Command
-
setCommand
public void setCommand(String cmd)
-
sourceRequest
public boolean sourceRequest()
- Specified by:
sourceRequest
in interfaceRequest
- Returns:
- Returns whether this is a Source Request.
-
setSourceRequest
public void setSourceRequest(boolean sourceRequest)
-
getNodeId
public Integer getNodeId()
- Specified by:
getNodeId
in 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:RequestBean
Get the TransactionID of the Request- Specified by:
getTransactionId
in interfaceRequestBean
- Returns:
- String of TransactionID if in a transaction
-
setTransactionId
public void setTransactionId(String id)
-
isSourceRequest
public boolean isSourceRequest()
- Specified by:
isSourceRequest
in interfaceRequestBean
- Returns:
- Returns whether this is a Source Request.
-
-