com.karmasphere.client.bquery
Class BQueryClient
java.lang.Object
com.karmasphere.client.common.Client
com.karmasphere.client.bquery.BQueryClient
public class BQueryClient
- extends Client
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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.