public class TraceToAasServiceMain extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TraceToAasServiceMain.MyData
A simple data class.
|
private static class |
TraceToAasServiceMain.MyLifecycleDescriptor
An internal lifecycle descriptor (mocking the platform).
|
| Modifier and Type | Field and Description |
|---|---|
private static TraceToAasServiceMain.MyLifecycleDescriptor |
aasDesc |
private static de.iip_ecosphere.platform.support.Server |
aasServer |
private static de.iip_ecosphere.platform.support.Server |
qpid |
private static de.iip_ecosphere.platform.support.Server |
registryServer |
| Constructor and Description |
|---|
TraceToAasServiceMain() |
| Modifier and Type | Method and Description |
|---|---|
static de.iip_ecosphere.platform.services.environment.services.TraceToAasService |
createService()
Creates a test service instance.
|
static void |
main(String[] args)
A simple main program for tests starting up an AAS, the
TraceToAasService with
two log entries and waiting for CTRL-C. |
static void |
shutdown()
Shuts down the test.
|
static void |
startup(String host,
int aasRegistryPort,
int aasServerPort,
int aasProtocolPort)
Initializes the test.
|
private static de.iip_ecosphere.platform.support.Server qpid
private static TraceToAasServiceMain.MyLifecycleDescriptor aasDesc
private static de.iip_ecosphere.platform.support.Server registryServer
private static de.iip_ecosphere.platform.support.Server aasServer
public static void startup(String host, int aasRegistryPort, int aasServerPort, int aasProtocolPort)
host - the host name / IP address of the server if the server shall be visible, may be null or
empty for default ("localhost")aasRegistryPort - the port of the AAS registry, if -1 use ephemeral ports for registry/serveraasServerPort - the port of the AAS registry, if this or aasRegistryPort is -1 use
ephemeral ports for registry/serveraasProtocolPort - port for the AAS protocol server, may be -1 for ephemeralpublic static void shutdown()
public static de.iip_ecosphere.platform.services.environment.services.TraceToAasService createService()
public static void main(String[] args) throws ExecutionException
TraceToAasService with
two log entries and waiting for CTRL-C.args - optional command line arguments, --aasServerPort=<int> determines the port of the AAS server,
--aasRegistyPort=<int> the port of the AAS registry server, --aasProtocolPort=<int> the port of the
AAS implementation/protocol server for implementing functions, --aasHost=<String> as the host name/IP of
the serverExecutionException - if setting service states failsCopyright © 2022. All rights reserved.