com.apelon.apelonserver.client
Class TransientSCSocket

java.lang.Object
  extended by com.apelon.apelonserver.client.ServerConnection
      extended by com.apelon.apelonserver.client.ServerConnectionSocket
          extended by com.apelon.apelonserver.client.TransientSCSocket

public class TransientSCSocket
extends ServerConnectionSocket

Title: Transient Socket Connection Implemenation

Description: This class manages a socket connection by opening one when making a query and closing after the results from the query are retreived from the server.

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
unascribed

Field Summary
 
Fields inherited from class com.apelon.apelonserver.client.ServerConnectionSocket
rtt
 
Constructor Summary
TransientSCSocket(String host, int port)
          Constructor
 
Method Summary
protected  String executeQueryRemote(String query)
          Executes a given query on the remote server
 
Methods inherited from class com.apelon.apelonserver.client.ServerConnectionSocket
close, toString
 
Methods inherited from class com.apelon.apelonserver.client.ServerConnection
ping, setQueryServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransientSCSocket

public TransientSCSocket(String host,
                         int port)
                  throws ApelonException
Constructor

Parameters:
host - the host name/address to connect to
port - the port number on which the server is listening
Throws:
ApelonException
Method Detail

executeQueryRemote

protected String executeQueryRemote(String query)
                             throws ApelonException
Executes a given query on the remote server

Overrides:
executeQueryRemote in class ServerConnectionSocket
Parameters:
query - the query string to be executed
Returns:
String the results from the above query
Throws:
ApelonException


Copyright © 2011. All Rights Reserved.