com.metamatrix.server.serverapi
Class RequestInfo

java.lang.Object
  extended by com.metamatrix.server.serverapi.RequestInfo
All Implemented Interfaces:
java.io.Serializable

public class RequestInfo
extends java.lang.Object
implements java.io.Serializable

This class is used by RequestManager's getRequests methods to return request information useful for the console.

See Also:
Serialized Form

Constructor Summary
RequestInfo(RequestID requestId, java.lang.String originalCommand, java.util.Date submittedTime, java.util.Date processingTime)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCommand()
          Get the actual command to perform.
 java.lang.String getConnectorBindingUUID()
          Return the connector binding UUID;
 int getExecutionID()
           
 int getNodeID()
           
 java.util.Date getProcessingTimestamp()
          Get time that the request was assigned a unique ID by the server.
 RequestID getRequestID()
          Return RequestID for rquest this object represents
 SessionToken getSessionToken()
          Returns the session token that the request was submitted under.
 java.util.Date getSubmittedTimestamp()
          Get time that the request was created by the user.
 java.lang.String getTransactionId()
           
 java.lang.String getUserName()
           
 int hashCode()
           
 boolean isAtomicQuery()
          Return true if the request represents the sub atomic query for the specified request ID.
 boolean isSubscription()
          Return true if the request is for a subsription
 void setConnectorBindingUUID(java.lang.String connBindUUID)
          Set the connector binding UUID.
 void setExecutionID(int executionID)
           
 void setNodeID(int nodeID)
           
 void setSessionToken(SessionToken token)
          Set the session token that the request was submitted under.
 void setTransactionId(java.lang.String transactionId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInfo

public RequestInfo(RequestID requestId,
                   java.lang.String originalCommand,
                   java.util.Date submittedTime,
                   java.util.Date processingTime)
Method Detail

getRequestID

public RequestID getRequestID()
Return RequestID for rquest this object represents

Returns:
Request ID

getSessionToken

public SessionToken getSessionToken()
Returns the session token that the request was submitted under.

Returns:
The session token

getUserName

public java.lang.String getUserName()

getSubmittedTimestamp

public java.util.Date getSubmittedTimestamp()
Get time that the request was created by the user.

Returns:
Submitted time in millis.

getProcessingTimestamp

public java.util.Date getProcessingTimestamp()
Get time that the request was assigned a unique ID by the server.

Returns:
Server processing timestamp in millis

isSubscription

public boolean isSubscription()
Return true if the request is for a subsription

Returns:
tru for susription else false

isAtomicQuery

public boolean isAtomicQuery()
Return true if the request represents the sub atomic query for the specified request ID.

Returns:
tru for susription else false

getNodeID

public int getNodeID()

setNodeID

public void setNodeID(int nodeID)

getExecutionID

public int getExecutionID()

setExecutionID

public void setExecutionID(int executionID)

getCommand

public java.lang.String getCommand()
Get the actual command to perform.

Returns:
Command to perform

setSessionToken

public void setSessionToken(SessionToken token)
Set the session token that the request was submitted under.


setConnectorBindingUUID

public void setConnectorBindingUUID(java.lang.String connBindUUID)
Set the connector binding UUID.


getConnectorBindingUUID

public java.lang.String getConnectorBindingUUID()
Return the connector binding UUID;


getTransactionId

public java.lang.String getTransactionId()

setTransactionId

public void setTransactionId(java.lang.String transactionId)

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


Copyright © 2009. All Rights Reserved.