org.teiid.adminapi.impl
Class RequestMetadata

java.lang.Object
  extended by org.teiid.adminapi.impl.AdminObjectImpl
      extended by org.teiid.adminapi.impl.RequestMetadata
All Implemented Interfaces:
java.io.Serializable, AdminObject, Request

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 interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
RequestMetadata()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCommand()
          Get the SQL Command sent to the Server for a Request
 long getExecutionId()
          Get the ExecutionId for a Request
 java.lang.Integer getNodeId()
           
 java.lang.String getSessionId()
          Get the SessionID for a Request
 long getStartTime()
          Get when the processing began for this Request
 Request.ProcessingState getState()
           
 Request.ThreadState getThreadState()
           
 java.lang.String getTransactionId()
          Get the TransactionID of the Request
 int hashCode()
           
 void setCommand(java.lang.String cmd)
           
 void setExecutionId(long id)
           
 void setNodeId(java.lang.Integer nodeID)
           
 void setSessionId(java.lang.String session)
           
 void setSourceRequest(boolean sourceRequest)
           
 void setStartTime(long time)
           
 void setState(Request.ProcessingState state)
           
 void setThreadState(Request.ThreadState threadState)
           
 void setTransactionId(java.lang.String id)
           
 boolean sourceRequest()
           
 java.lang.String toString()
           
 
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
 
Methods inherited from interface org.teiid.adminapi.AdminObject
getName, getProperties, getPropertyValue
 

Constructor Detail

RequestMetadata

public RequestMetadata()
Method Detail

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.