Class NetworkManagerAasClient
java.lang.Object
de.iip_ecosphere.platform.support.net.AbstractNetworkManagerImpl
de.iip_ecosphere.platform.support.iip_aas.NetworkManagerAasClient
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.net.NetworkManager
public class NetworkManagerAasClient
extends de.iip_ecosphere.platform.support.net.AbstractNetworkManagerImpl
Implementing a network manager acting as client for an AAS-based network manager. The AAS shall be provided by
NetworkManagerAas.- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsFields inherited from interface de.iip_ecosphere.platform.support.net.NetworkManager
PREFIX_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionCreates a client instance based on a deployed IIP-AAS fromAasPartRegistrybased on a submodel withname.NetworkManagerAasClient(de.iip_ecosphere.platform.support.aas.Submodel submodel) Creates a client instance based on the submodel. -
Method Summary
Modifier and TypeMethodDescriptionintintde.iip_ecosphere.platform.support.net.ManagedServerAddressintbooleanisInUse(int port) booleanisInUse(de.iip_ecosphere.platform.support.ServerAddress address) de.iip_ecosphere.platform.support.net.ManagedServerAddressobtainPort(String key) voidregisterInstance(String key, String hostId) voidreleasePort(String key) de.iip_ecosphere.platform.support.net.ManagedServerAddressreservePort(String key, de.iip_ecosphere.platform.support.ServerAddress address) voidunregisterInstance(String key, String hostId) Methods inherited from class de.iip_ecosphere.platform.support.net.AbstractNetworkManagerImpl
checkAddress, checkKey, configure, getNetmaskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.net.NetworkManager
reserveGlobalPort
-
Field Details
-
submodel
private de.iip_ecosphere.platform.support.aas.Submodel submodel
-
-
Constructor Details
-
NetworkManagerAasClient
Creates a client instance based on a deployed IIP-AAS fromAasPartRegistrybased on a submodel withname.- Throws:
IOException- if retrieving the IIP-AAS or the respective submodel fails
-
NetworkManagerAasClient
public NetworkManagerAasClient(de.iip_ecosphere.platform.support.aas.Submodel submodel) Creates a client instance based on the submodel. The submodel shall conform toNetworkManagerAaswith respect to the operations, signatures, but also thename,- Parameters:
submodel- the submodel to use
-
-
Method Details
-
obtainPort
-
getPort
-
reservePort
public de.iip_ecosphere.platform.support.net.ManagedServerAddress reservePort(String key, de.iip_ecosphere.platform.support.ServerAddress address) -
releasePort
-
isInUse
public boolean isInUse(de.iip_ecosphere.platform.support.ServerAddress address) -
isInUse
public boolean isInUse(int port) -
getLowPort
public int getLowPort()- Specified by:
getLowPortin interfacede.iip_ecosphere.platform.support.net.NetworkManager- Overrides:
getLowPortin classde.iip_ecosphere.platform.support.net.AbstractNetworkManagerImpl
-
getHighPort
public int getHighPort()- Specified by:
getHighPortin interfacede.iip_ecosphere.platform.support.net.NetworkManager- Overrides:
getHighPortin classde.iip_ecosphere.platform.support.net.AbstractNetworkManagerImpl
-
registerInstance
-
unregisterInstance
-
getRegisteredInstances
-