com.karmasphere.client.bquery
Class BQueryClient

java.lang.Object
  extended by com.karmasphere.client.common.Client
      extended by com.karmasphere.client.bquery.BQueryClient

public class BQueryClient
extends Client


Nested Class Summary
static class BQueryClient.Proto
           
 
Field Summary
static String DEFAULT_HOST
           
static int DEFAULT_PORT
           
 
Constructor Summary
BQueryClient()
           
BQueryClient(String host)
           
BQueryClient(String host, BQueryClient.Proto proto)
           
BQueryClient(String host, int port, BQueryClient.Proto proto)
           
BQueryClient(String host, int port, BQueryClient.Proto proto, boolean verbose)
           
 
Method Summary
 Response ask(Query query)
           
 int getTimeout()
          Returns the socket timeout from the client socket.
 Response recv(Object id)
           
 Object send(Query query)
           
 void setTimeout(int timeout)
          Sets the socket timeout on the client socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HOST

public static final String DEFAULT_HOST
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

BQueryClient

public BQueryClient(String host,
                    int port,
                    BQueryClient.Proto proto,
                    boolean verbose)
             throws IOException
Throws:
IOException

BQueryClient

public BQueryClient(String host,
                    int port,
                    BQueryClient.Proto proto)
             throws IOException
Throws:
IOException

BQueryClient

public BQueryClient(String host,
                    BQueryClient.Proto proto)
             throws IOException
Throws:
IOException

BQueryClient

public BQueryClient(String host)
             throws IOException
Throws:
IOException

BQueryClient

public BQueryClient()
             throws IOException
Throws:
IOException
Method Detail

setTimeout

public void setTimeout(int timeout)
                throws SocketException
Sets the socket timeout on the client socket. The default timeout is set to infinite by the constructor.

Throws:
SocketException
See Also:
DatagramSocket.setSoTimeout(int)

getTimeout

public int getTimeout()
               throws SocketException
Returns the socket timeout from the client socket. The default timeout is set to infinite by the constructor.

Throws:
SocketException
See Also:
DatagramSocket.getSoTimeout()

ask

public Response ask(Query query)
             throws IOException
Overrides:
ask in class Client
Throws:
IOException

send

public Object send(Query query)
            throws IOException
Specified by:
send in class Client
Throws:
IOException

recv

public Response recv(Object id)
              throws IOException
Specified by:
recv in class Client
Throws:
IOException


Copyright © 2004-2005 Karamsphere. All Rights Reserved.