|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.method.Client
public class Client
Proxy InterfaceBinding over a socket.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simantics.databoard.method.MethodInterface |
---|
MethodInterface.AsyncRequestStatus, MethodInterface.AsyncResult, MethodInterface.ExecutionError, MethodInterface.InvokeListener, MethodInterface.Method |
Constructor Summary | |
---|---|
Client(java.net.InetAddress addr,
int port)
Create a new method interface client. |
|
Client(java.net.InetAddress addr,
int port,
MethodInterface localMethodHandler)
Create a new method interface client. |
|
Client(java.net.InetSocketAddress sa)
Create a new method interface client. |
|
Client(java.lang.String addr,
int port)
Create a new method interface client. |
Method Summary | |
---|---|
void |
close()
|
TcpConnection |
getConnection()
|
Interface |
getInterface()
Get remote method descriptions |
MethodInterface.Method |
getMethod(MethodTypeBinding binding)
Get an access to the implementation of a method. |
MethodInterface.Method |
getMethod(MethodTypeDefinition description)
Get an access to the implementation of a method. |
void |
setConnectListener(TcpConnection.ConnectionListener listener)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Client(java.lang.String addr, int port) throws java.io.IOException, SerializationException, BindingException
addr
- port
-
java.io.IOException
- connection error
SerializationException
- handshake communication error
BindingException
- handshake communication errorpublic Client(java.net.InetSocketAddress sa) throws java.io.IOException, SerializationException, BindingException
sa
-
java.io.IOException
- connection error
SerializationException
- handshake communication error
BindingException
- handshake communication errorpublic Client(java.net.InetAddress addr, int port) throws java.io.IOException, SerializationException, BindingException
addr
- port
-
java.io.IOException
- connection error
SerializationException
- handshake communication error
BindingException
- handshake communication errorpublic Client(java.net.InetAddress addr, int port, MethodInterface localMethodHandler) throws java.io.IOException, SerializationException, BindingException
addr
- port
- localMethodHandler
- handles requests sent by the server
java.io.IOException
BindingException
SerializationException
Method Detail |
---|
public void setConnectListener(TcpConnection.ConnectionListener listener)
public Interface getInterface()
getInterface
in interface MethodInterface
public MethodInterface.Method getMethod(MethodTypeBinding binding) throws MethodNotSupportedException
MethodInterface
getMethod
in interface MethodInterface
binding
- binding to use
MethodNotSupportedException
public MethodInterface.Method getMethod(MethodTypeDefinition description) throws MethodNotSupportedException
MethodInterface
getMethod
in interface MethodInterface
description
- method description
MethodNotSupportedException
public TcpConnection getConnection()
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |