public class AasPartRegistry extends Object
AasContributor instances to be loaded via the Java Service loader.ExcludeFirst| Modifier and Type | Class and Description |
|---|---|
static class |
AasPartRegistry.AasBuildResult
Represents the result of building the platform AAS.
|
static class |
AasPartRegistry.AasMode
Aas installation/setup modes.
|
static class |
AasPartRegistry.AasSetup
The technical setup of the AAS/VAB endpoints as data class to be used with a usual configuration format/YAML
parser.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_AAS_ENDPOINT |
static String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
static String |
DEFAULT_PROTOCOL |
static int |
DEFAULT_PROTOCOL_PORT |
static String |
DEFAULT_REGISTRY_ENDPOINT |
static int |
DEFAULT_REGISTRY_PORT |
static de.iip_ecosphere.platform.support.Schema |
DEFAULT_SCHEMA |
static String |
NAME_AAS
The name of the top-level AAS created by this registry in
build(). |
static String |
NAME_SUBMODEL_RESOURCES |
private static AasPartRegistry.AasSetup |
setup |
static String |
URN_AAS
The URN of the top-level AAS created by this registry in
build(). |
| Constructor and Description |
|---|
AasPartRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static AasPartRegistry.AasBuildResult |
build()
Build up all AAS of the currently running platform part including all contributors.
|
static AasPartRegistry.AasBuildResult |
build(boolean startImplServer)
Build up all AAS of the currently running platform part including all contributors.
|
static AasPartRegistry.AasBuildResult |
build(Predicate<AasContributor> filter)
Build up all AAS of the currently running platform part.
|
static AasPartRegistry.AasBuildResult |
build(Predicate<AasContributor> filter,
boolean startImplServer)
Build up all AAS of the currently running platform part.
|
static Set<Class<? extends AasContributor>> |
contributorClasses()
Returns the contributor classes.
|
static Iterator<AasContributor> |
contributors()
Returns the contributors.
|
static de.iip_ecosphere.platform.support.Server |
deploy(List<de.iip_ecosphere.platform.support.aas.Aas> aas,
String... options)
Deploy the given AAS to a local server.
|
static de.iip_ecosphere.platform.support.aas.Aas |
getAas(List<de.iip_ecosphere.platform.support.aas.Aas> list,
String idShort)
Returns the first AAS in
list matching the given name. |
private static ServiceLoader<AasContributor> |
getContributorLoader()
Returns the contributor loader.
|
static de.iip_ecosphere.platform.support.Server |
register(List<de.iip_ecosphere.platform.support.aas.Aas> aas,
de.iip_ecosphere.platform.support.Endpoint registry,
String... options)
Registers the given AAS to a remote registry and creates a local server for the AAS.
|
static void |
remoteDeploy(List<de.iip_ecosphere.platform.support.aas.Aas> aas)
Performs a remote deployment of the given
aas. |
static de.iip_ecosphere.platform.support.aas.Aas |
retrieveIipAas()
Obtains the IIP-Ecosphere platform AAS.
|
static de.iip_ecosphere.platform.support.Endpoint |
setAasEndpoint(de.iip_ecosphere.platform.support.Endpoint endpoint)
Deprecated.
use
setAasSetup(AasSetup) instead |
static AasPartRegistry.AasSetup |
setAasSetup(AasPartRegistry.AasSetup aasSetup)
Defines the AAS setup.
|
static de.iip_ecosphere.platform.support.ServerAddress |
setProtocolAddress(de.iip_ecosphere.platform.support.ServerAddress address)
Deprecated.
use
setAasSetup(AasSetup) instead |
public static final String NAME_AAS
build().public static final String NAME_SUBMODEL_RESOURCES
public static final String URN_AAS
build().public static final de.iip_ecosphere.platform.support.Schema DEFAULT_SCHEMA
public static final String DEFAULT_HOST
public static final int DEFAULT_PORT
public static final int DEFAULT_REGISTRY_PORT
public static final int DEFAULT_PROTOCOL_PORT
public static final String DEFAULT_AAS_ENDPOINT
public static final String DEFAULT_REGISTRY_ENDPOINT
public static final String DEFAULT_PROTOCOL
private static AasPartRegistry.AasSetup setup
@Deprecated public static de.iip_ecosphere.platform.support.Endpoint setAasEndpoint(de.iip_ecosphere.platform.support.Endpoint endpoint)
setAasSetup(AasSetup) insteadendpoint - the registry endpoint@Deprecated public static de.iip_ecosphere.platform.support.ServerAddress setProtocolAddress(de.iip_ecosphere.platform.support.ServerAddress address)
setAasSetup(AasSetup) insteadaddress - the addresspublic static AasPartRegistry.AasSetup setAasSetup(AasPartRegistry.AasSetup aasSetup)
aasSetup - the setup informationprivate static ServiceLoader<AasContributor> getContributorLoader()
public static Iterator<AasContributor> contributors()
public static Set<Class<? extends AasContributor>> contributorClasses()
public static AasPartRegistry.AasBuildResult build()
public static AasPartRegistry.AasBuildResult build(boolean startImplServer)
startImplServer - whether the implementation server shall be started before creating the AAS, this may be
required for incremental deploymentpublic static AasPartRegistry.AasBuildResult build(Predicate<AasContributor> filter)
filter - filter out contributors, in particular for testing, e.g., active AAS that require an
implementation serverpublic static AasPartRegistry.AasBuildResult build(Predicate<AasContributor> filter, boolean startImplServer)
filter - filter out contributors, in particular for testing, e.g., active AAS that require an
implementation serverstartImplServer - whether the implementation server shall be started before creating the AAS, this may be
required for incremental deploymentpublic static de.iip_ecosphere.platform.support.aas.Aas retrieveIipAas()
throws IOException
IOException - if the AAS cannot be read due to connection errorspublic static de.iip_ecosphere.platform.support.Server deploy(List<de.iip_ecosphere.platform.support.aas.Aas> aas, String... options)
aas - the list of aas, e.g., from build()options - optional server creation optionspublic static de.iip_ecosphere.platform.support.Server register(List<de.iip_ecosphere.platform.support.aas.Aas> aas, de.iip_ecosphere.platform.support.Endpoint registry, String... options) throws IOException
aas - the list of aas, e.g., from build()registry - optional registry endpoint for remote registration, assuming a local in-memory registry
if nulloptions - optional server creation optionsIOException - if access to the AAS registry failspublic static void remoteDeploy(List<de.iip_ecosphere.platform.support.aas.Aas> aas) throws IOException
aas.aas - the list of AAS, e.g., from build()IOException - if the deployment of an AAS fails or access to the AAS registry failspublic static de.iip_ecosphere.platform.support.aas.Aas getAas(List<de.iip_ecosphere.platform.support.aas.Aas> list, String idShort)
list matching the given name. [utility]list - the list to consideridShort - the short name to filter forCopyright © 2021. All rights reserved.