public class OSClient
extends java.lang.Object
| Constructor and Description |
|---|
OSClient(java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SessionCreated |
createSession(CreateSession<?> message) |
SessionDestroyed |
destroySession(DestroySession message) |
java.net.InetAddress |
getHost() |
int |
getPort() |
static void |
main(java.lang.String[] args) |
ComparisonReply<?> |
query(ComparisonQuery<?,?> message) |
PredictReply<?> |
query(PredictQuery<?,?> message) |
Reply<?> |
query(Query<?> query) |
RecommendReply<?> |
query(RecommendQuery<?,?,?> message) |
SimpleReply<?> |
query(SimpleQuery<?> message) |
protected Response |
request(Request request) |
java.lang.String |
toString() |
public OSClient(java.lang.String host,
int port)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic void close()
public SessionCreated createSession(CreateSession<?> message) throws java.io.IOException, InvocationException, SessionClosedException
java.io.IOExceptionInvocationExceptionSessionClosedExceptionpublic SessionDestroyed destroySession(DestroySession message) throws java.io.IOException, InvocationException
java.io.IOExceptionInvocationExceptionpublic java.net.InetAddress getHost()
public int getPort()
public ComparisonReply<?> query(ComparisonQuery<?,?> message) throws InvocationException, java.io.IOException, SessionClosedException
InvocationExceptionjava.io.IOExceptionSessionClosedExceptionpublic PredictReply<?> query(PredictQuery<?,?> message) throws InvocationException, java.io.IOException, SessionClosedException
InvocationExceptionjava.io.IOExceptionSessionClosedExceptionpublic Reply<?> query(Query<?> query) throws InvocationException, java.io.IOException, SessionClosedException
InvocationExceptionjava.io.IOExceptionSessionClosedExceptionpublic RecommendReply<?> query(RecommendQuery<?,?,?> message) throws InvocationException, java.io.IOException, SessionClosedException
InvocationExceptionjava.io.IOExceptionSessionClosedExceptionpublic SimpleReply<?> query(SimpleQuery<?> message) throws InvocationException, java.io.IOException, SessionClosedException
InvocationExceptionjava.io.IOExceptionSessionClosedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected Response request(Request request) throws java.io.IOException, InvocationException, SessionClosedException
java.io.IOExceptionInvocationExceptionSessionClosedException