com.prosysopc.ua.server
Class UaServer.DiscoveryServer

java.lang.Object
  extended by org.opcfoundation.ua.application.Server
      extended by com.prosysopc.ua.server.UaServer.DiscoveryServer
Enclosing class:
UaServer

public class UaServer.DiscoveryServer
extends org.opcfoundation.ua.application.Server

Service handler that serves onFindServers & onRegisteredServer requests. onGetEndpoint request is handled by a default EndpointDiscoveryService.


Field Summary
 
Fields inherited from class org.opcfoundation.ua.application.Server
application, boundHandles, endpointBindings, endpointDiscoveryService, HTTPS_BINARY_TRANSPORT_PROFILE_URI, serviceHandlers, SOAP_XML_TRANSPORT_PROFILE_URI, UATCP_BINARY_TRANSPORT_PROFILE_URI, userTokenPolicies
 
Constructor Summary
UaServer.DiscoveryServer(org.opcfoundation.ua.application.Application application)
           
 
Method Summary
 org.opcfoundation.ua.core.RegisteredServer[] getRegisteredServers()
          Get a list of servers registered to this server using the Discovery Interface.
 void onFindServers(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.FindServersRequest,org.opcfoundation.ua.core.FindServersResponse> req)
           
 void registerServer(UaServer uaServer, String semaphoreFilePath, boolean isOnline)
           
 
Methods inherited from class org.opcfoundation.ua.application.Server
addServiceHandler, addUserTokenPolicy, bind, bind, close, createApplicationDescription, createServerApplication, getApplication, getBindings, getEncoderContext, getEndpointBindings, getEndpointByUri, getEndpointDescriptions, getEndpointDescriptions, getEndpoints, getServiceHandlerByService, getServiceHandlerComposition, getServiceHandlers, getUserTokenPolicies, handlesService, hasEndpoint, removeUserTokenPolicy, setEndpointBindings, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UaServer.DiscoveryServer

public UaServer.DiscoveryServer(org.opcfoundation.ua.application.Application application)
Method Detail

getRegisteredServers

public org.opcfoundation.ua.core.RegisteredServer[] getRegisteredServers()
Get a list of servers registered to this server using the Discovery Interface.

UaServer functions as a Discovery Server by default.

Returns:
the servers that are registered to the discovery server, not including this server

onFindServers

public final void onFindServers(org.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<org.opcfoundation.ua.core.FindServersRequest,org.opcfoundation.ua.core.FindServersResponse> req)
                         throws org.opcfoundation.ua.common.ServiceFaultException
Throws:
org.opcfoundation.ua.common.ServiceFaultException

registerServer

public void registerServer(UaServer uaServer,
                           String semaphoreFilePath,
                           boolean isOnline)
Parameters:
uaServer -
semaphoreFilePath -
isOnline -


Copyright © 2018. All rights reserved.