org.opcfoundation.ua.transport
Interface EndpointServer

All Superinterfaces:
CloseableObject, ConnectionMonitor, IStatefulObject<CloseableObjectState,ServiceResultException>
All Known Implementing Classes:
HttpsServer, OpcTcpServer

public interface EndpointServer
extends CloseableObject, ConnectionMonitor

EndpointServer is an object that binds to a network socket and offers hosting for endpoints.

See Also:
tcp.opc implementation

Nested Class Summary
static interface EndpointServer.EndpointHandle
           
 
Nested classes/interfaces inherited from interface org.opcfoundation.ua.transport.ConnectionMonitor
ConnectionMonitor.ConnectListener
 
Field Summary
static Endpoint discoveryEndpoint
          Constant discoveryEndpoint
 
Method Summary
 EndpointServer.EndpointHandle bind(SocketAddress socketAddress, EndpointBinding endpointBinding)
          Bind an endpoint to a handle.
 List<SocketAddress> getBoundSocketAddresses()
          getBoundSocketAddresses.
 EncoderContext getEncoderContext()
          getEncoderContext.
 EndpointBindingCollection getEndpointBindings()
          Get a collection that contains related endpoints bindings.
 
Methods inherited from interface org.opcfoundation.ua.transport.CloseableObject
close
 
Methods inherited from interface org.opcfoundation.ua.utils.IStatefulObject
addStateListener, addStateNotifiable, getError, getState, removeStateListener, removeStateNotifiable, waitForState, waitForState, waitForStateUninterruptibly
 
Methods inherited from interface org.opcfoundation.ua.transport.ConnectionMonitor
addConnectionListener, getConnections, removeConnectionListener
 

Field Detail

discoveryEndpoint

static final Endpoint discoveryEndpoint
Constant discoveryEndpoint

Method Detail

getEndpointBindings

EndpointBindingCollection getEndpointBindings()
Get a collection that contains related endpoints bindings.

Returns:
endpoint collection

bind

EndpointServer.EndpointHandle bind(SocketAddress socketAddress,
                                   EndpointBinding endpointBinding)
                                   throws ServiceResultException
Bind an endpoint to a handle.

Parameters:
socketAddress - a SocketAddress object.
endpointBinding - a EndpointBinding object.
Returns:
a EndpointServer.EndpointHandle object.
Throws:
ServiceResultException - if any.

getBoundSocketAddresses

List<SocketAddress> getBoundSocketAddresses()

getBoundSocketAddresses.

Returns:
a List object.

getEncoderContext

EncoderContext getEncoderContext()

getEncoderContext.

Returns:
a EncoderContext object.


Copyright © 2018. All rights reserved.