com.ibm.tspaces
Interface TSResponse

All Known Implementing Classes:
TSCmdLocalImpl

public interface TSResponse

TSResponse is the Interface that the Server uses to send response to the client. It is a Java Interface because there may be various implementations of the communication path used to communicate with the client.

Author:
Venkatesan Esakki
See Also:
TSRMIHandler

Method Summary
 java.util.Vector getTSpaceClients()
          Return the TSpace clients vector
 java.security.Principal getUserPrincipal()
          Return the Principal object for the authenticated userid
 boolean sendResponse(java.lang.String status_, java.lang.Integer seqNumber_, SuperTuple retValue_)
          Send a response to the client, All responses should come through here!
 

Method Detail

sendResponse

public boolean sendResponse(java.lang.String status_,
                            java.lang.Integer seqNumber_,
                            SuperTuple retValue_)
Send a response to the client, All responses should come through here!
Parameters:
status_ - was the status OK or EXCEPTION?
seqNumber_ - the unique *client* side sequence number of this command
retValue_ - the tuple going back to the client
Returns:
a boolean indicating if the response was put into the output stream and flushed without raising an exception --- we currently assume this means the send was ok

getUserPrincipal

public java.security.Principal getUserPrincipal()
Return the Principal object for the authenticated userid
Returns:
Principal for the authenticated user

getTSpaceClients

public java.util.Vector getTSpaceClients()
Return the TSpace clients vector
Returns:
vector having the list of Tspace Clients