org.teiid.adminapi
Interface Request

All Superinterfaces:
AdminObject, java.io.Serializable
All Known Implementing Classes:
RequestMetadata

public interface Request
extends AdminObject

When a user submits a SQL command to the system for processing, usually that represents a single request. A single request might have one or more source requests (the requests that are being processed on the physical data sources) as part of original request.

A request is identified by a numbers separated by '|'. usually in they are arranged in the pattern [session]|[request] or [session]|[request]|[source request]


Nested Class Summary
static class Request.ProcessingState
           
static class Request.ThreadState
           
 
Field Summary
 
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Method Summary
 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
 boolean sourceRequest()
           
 
Methods inherited from interface org.teiid.adminapi.AdminObject
getName, getProperties, getPropertyValue
 

Method Detail

getExecutionId

long getExecutionId()
Get the ExecutionId for a Request

Returns:
ExecutionId

getSessionId

java.lang.String getSessionId()
Get the SessionID for a Request

Returns:
String SessionID

getCommand

java.lang.String getCommand()
Get the SQL Command sent to the Server for a Request

Returns:
SQL Command

getStartTime

long getStartTime()
Get when the processing began for this Request

Returns:
Date processing began

getTransactionId

java.lang.String getTransactionId()
Get the TransactionID of the Request

Returns:
String of TransactionID if in a transaction

sourceRequest

boolean sourceRequest()
Returns:
Returns whether this is a Source Request.

getNodeId

java.lang.Integer getNodeId()
Returns:
In the case that this is a source request this represents the node id. Otherwise null

getState

Request.ProcessingState getState()
Returns:
The request state

getThreadState

Request.ThreadState getThreadState()
Returns:
The thread state


Copyright © 2010. All Rights Reserved.