com.metamatrix.common.comm.platform.socket.server
Interface ClientInstance

All Known Implementing Classes:
SocketClientInstance

public interface ClientInstance

Represents a ClientConnection from the server's point of view. This interface can be used by a ServerListener implementation to manage the incoming client connections, retrieve information about a particular connection, and send a message to a particular connection in the asynchronous message scenario.


Method Summary
 Cryptor getCryptor()
           
 org.teiid.dqp.internal.process.DQPWorkContext getWorkContext()
           
 void send(Message message, java.io.Serializable messageKey)
          Send a message to this particular client using the asynch message key.
 void shutdown()
          Shutdown the server's connection to the client.
 

Method Detail

send

void send(Message message,
          java.io.Serializable messageKey)
Send a message to this particular client using the asynch message key.

Parameters:
message - The message to send
messageKey - The key sent with the asynch query
Throws:
CommunicationException - If an error occurs during the send

shutdown

void shutdown()
              throws CommunicationException
Shutdown the server's connection to the client.

Throws:
CommunicationException - If an error occurs during the shutdown

getCryptor

Cryptor getCryptor()

getWorkContext

org.teiid.dqp.internal.process.DQPWorkContext getWorkContext()


Copyright © 2009. All Rights Reserved.