Class ServerSetup
- java.lang.Object
-
- test.de.iip_ecosphere.platform.connectors.opcuav1.ServerSetup
-
- Direct Known Subclasses:
NoSecuritySetup,SecureSetup
public abstract class ServerSetup extends java.lang.ObjectDetails the server setup.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Constructor Description ServerSetup(java.lang.String path, int tcpPort, int httpsPort)Creates a server setup instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidconfigureCommonEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)Configures the common endpoint builder used as basis for the following endpoint builders below.abstract org.eclipse.milo.opcua.stack.server.EndpointConfiguration.BuilderconfigureHttpsEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)Configures the HTTPS builder on usual non-discovery endpoints.abstract org.eclipse.milo.opcua.stack.server.EndpointConfiguration.BuilderconfigureNoSecurityBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)Configures the no-security builder on usual non-discovery endpoints.abstract voidconfigureServerBuilder(org.eclipse.milo.opcua.sdk.server.api.config.OpcUaServerConfigBuilder builder)Configures the server builder.abstract org.eclipse.milo.opcua.stack.server.EndpointConfiguration.BuilderconfigureTcpEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)Configures the TCP builder on usual non-discovery endpoints.abstract de.iip_ecosphere.platform.connectors.ConnectorParametergetConnectorParameter()Returns the connector parameter for setting up a corresponding connector.intgetHttpsPort()Returns the HTTPS port to serve.java.lang.StringgetPath()Returns the URL path on the endpoints.intgetTcpPort()Returns the TCP port to serve.abstract java.lang.StringinitializeApplication()Initializes the application.abstract voidshutdownApplication()Shuts down the application to clean up resources if needed.
-
-
-
Method Detail
-
getTcpPort
public int getTcpPort()
Returns the TCP port to serve.- Returns:
- the TCP port
-
getHttpsPort
public int getHttpsPort()
Returns the HTTPS port to serve.- Returns:
- the HTTPS port
-
getPath
public java.lang.String getPath()
Returns the URL path on the endpoints.- Returns:
- the path
-
initializeApplication
public abstract java.lang.String initializeApplication() throws java.util.concurrent.ExecutionExceptionInitializes the application.- Returns:
- the application URL
- Throws:
java.util.concurrent.ExecutionException- if initializing the application fails
-
shutdownApplication
public abstract void shutdownApplication() throws java.util.concurrent.ExecutionExceptionShuts down the application to clean up resources if needed.- Throws:
java.util.concurrent.ExecutionException- if shutdown fails.
-
configureCommonEndpointBuilder
public abstract void configureCommonEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
Configures the common endpoint builder used as basis for the following endpoint builders below.- Parameters:
builder- the builder
-
configureNoSecurityBuilder
public abstract org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder configureNoSecurityBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
Configures the no-security builder on usual non-discovery endpoints.- Parameters:
builder- the builder- Returns:
builderor null for no such endpoint
-
configureTcpEndpointBuilder
public abstract org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder configureTcpEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
Configures the TCP builder on usual non-discovery endpoints.- Parameters:
builder- the builder- Returns:
builderor null for no such endpoint
-
configureHttpsEndpointBuilder
public abstract org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder configureHttpsEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
Configures the HTTPS builder on usual non-discovery endpoints.- Parameters:
builder- the builder- Returns:
builderor null for no such endpoint
-
configureServerBuilder
public abstract void configureServerBuilder(org.eclipse.milo.opcua.sdk.server.api.config.OpcUaServerConfigBuilder builder)
Configures the server builder.- Parameters:
builder- the server builder
-
getConnectorParameter
public abstract de.iip_ecosphere.platform.connectors.ConnectorParameter getConnectorParameter()
Returns the connector parameter for setting up a corresponding connector. [convenience]- Returns:
- the connector parameter instance
-
-