org.teiid.adminapi.impl
Class RequestMetadata
java.lang.Object
org.teiid.adminapi.impl.AdminObjectImpl
org.teiid.adminapi.impl.RequestMetadata
- All Implemented Interfaces:
- java.io.Serializable, AdminObject, Request
public class RequestMetadata
- extends AdminObjectImpl
- implements Request
- See Also:
- Serialized Form
| Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl |
addAttchment, addAttchment, addProperty, getAttachment, getAttachment, getJAXBProperties, getName, getProperties, getPropertyValue, removeAttachment, removeAttachment, setJAXBProperties, setName, setProperties |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RequestMetadata
public RequestMetadata()
getExecutionId
public long getExecutionId()
- Description copied from interface:
Request
- Get the ExecutionId for a Request
- Specified by:
getExecutionId in interface Request
- Returns:
- ExecutionId
setExecutionId
public void setExecutionId(long id)
getState
public Request.ProcessingState getState()
- Specified by:
getState in interface Request
- Returns:
- The request state
setState
public void setState(Request.ProcessingState state)
getThreadState
public Request.ThreadState getThreadState()
- Specified by:
getThreadState in interface Request
- Returns:
- The thread state
setThreadState
public void setThreadState(Request.ThreadState threadState)
getSessionId
public java.lang.String getSessionId()
- Description copied from interface:
Request
- Get the SessionID for a Request
- Specified by:
getSessionId in interface Request
- Returns:
- String SessionID
setSessionId
public void setSessionId(java.lang.String session)
getStartTime
public long getStartTime()
- Description copied from interface:
Request
- Get when the processing began for this Request
- Specified by:
getStartTime in interface Request
- Returns:
- Date processing began
setStartTime
public void setStartTime(long time)
getCommand
public java.lang.String getCommand()
- Description copied from interface:
Request
- Get the SQL Command sent to the Server for a Request
- Specified by:
getCommand in interface Request
- Returns:
- SQL Command
setCommand
public void setCommand(java.lang.String cmd)
sourceRequest
public boolean sourceRequest()
- Specified by:
sourceRequest in interface Request
- Returns:
- Returns whether this is a Source Request.
setSourceRequest
public void setSourceRequest(boolean sourceRequest)
getNodeId
public java.lang.Integer getNodeId()
- Specified by:
getNodeId in interface Request
- Returns:
- In the case that this is a source request this represents the node id. Otherwise null
setNodeId
public void setNodeId(java.lang.Integer nodeID)
getTransactionId
public java.lang.String getTransactionId()
- Description copied from interface:
Request
- Get the TransactionID of the Request
- Specified by:
getTransactionId in interface Request
- Returns:
- String of TransactionID if in a transaction
setTransactionId
public void setTransactionId(java.lang.String id)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2011. All Rights Reserved.