public class ActiveAasBase extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ActiveAasBase.NotificationMode
Supported notification modes.
|
static interface |
ActiveAasBase.NotificationProcessor
Defines the interface for a notification processor.
|
| Modifier and Type | Field and Description |
|---|---|
private static ExecutorService |
exec |
private static org.slf4j.Logger |
LOGGER |
private static ActiveAasBase.NotificationMode |
mode |
| Constructor and Description |
|---|
ActiveAasBase() |
| Modifier and Type | Method and Description |
|---|---|
static de.iip_ecosphere.platform.support.aas.Submodel |
getSubmodel(String name)
Obtains a submodel of
AasPartRegistry.retrieveIipAas(). |
static void |
processNotification(String subId,
ActiveAasBase.NotificationMode mode,
ActiveAasBase.NotificationProcessor processor)
Processes a notification on a submodel of
AasPartRegistry.retrieveIipAas(). |
static void |
processNotification(String subId,
ActiveAasBase.NotificationProcessor processor)
Processes a notification on a submodel of
AasPartRegistry.retrieveIipAas() with the notification
#mode mode set in this class. |
static ActiveAasBase.NotificationMode |
setNotificationMode(ActiveAasBase.NotificationMode mo)
Changes the notification execution mode.
|
private static final org.slf4j.Logger LOGGER
private static ActiveAasBase.NotificationMode mode
private static ExecutorService exec
public static void processNotification(String subId, ActiveAasBase.NotificationProcessor processor)
AasPartRegistry.retrieveIipAas() with the notification
#mode mode set in this class.subId - the short id of the submodelprocessor - the processor to executepublic static void processNotification(String subId, ActiveAasBase.NotificationMode mode, ActiveAasBase.NotificationProcessor processor)
AasPartRegistry.retrieveIipAas().subId - the short id of the submodelmode - explicit notification mode to be used if mode is not ActiveAasBase.NotificationMode.NONE. If
parameter is null, use mode insteadprocessor - the processor to executepublic static ActiveAasBase.NotificationMode setNotificationMode(ActiveAasBase.NotificationMode mo)
mo - the new modepublic static de.iip_ecosphere.platform.support.aas.Submodel getSubmodel(String name) throws IOException
AasPartRegistry.retrieveIipAas().name - the name of the submodelIOException - if the submodel cannot be foundCopyright © 2021. All rights reserved.