public class NetworkManagerAasClient
extends de.iip_ecosphere.platform.support.net.AbstractNetworkManagerImpl
NetworkManagerAas.| Modifier and Type | Field and Description |
|---|---|
private de.iip_ecosphere.platform.support.aas.Submodel |
submodel |
| Constructor and Description |
|---|
NetworkManagerAasClient()
Creates a client instance based on a deployed IIP-AAS from
AasPartRegistry based on a submodel with
name. |
NetworkManagerAasClient(de.iip_ecosphere.platform.support.aas.Submodel submodel)
Creates a client instance based on the submodel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHighPort() |
int |
getLowPort() |
de.iip_ecosphere.platform.support.net.ManagedServerAddress |
getPort(String key) |
boolean |
isInUse(int port) |
boolean |
isInUse(de.iip_ecosphere.platform.support.ServerAddress address) |
de.iip_ecosphere.platform.support.net.ManagedServerAddress |
obtainPort(String key) |
void |
releasePort(String key) |
de.iip_ecosphere.platform.support.net.ManagedServerAddress |
reservePort(String key,
de.iip_ecosphere.platform.support.ServerAddress address) |
public NetworkManagerAasClient()
throws IOException
AasPartRegistry based on a submodel with
name.IOException - if retrieving the IIP-AAS or the respective submodel failspublic NetworkManagerAasClient(de.iip_ecosphere.platform.support.aas.Submodel submodel)
NetworkManagerAas with
respect to the operations, signatures, but also the name,submodel - the submodel to usepublic de.iip_ecosphere.platform.support.net.ManagedServerAddress obtainPort(String key)
public de.iip_ecosphere.platform.support.net.ManagedServerAddress getPort(String key)
public de.iip_ecosphere.platform.support.net.ManagedServerAddress reservePort(String key, de.iip_ecosphere.platform.support.ServerAddress address)
public void releasePort(String key)
public boolean isInUse(de.iip_ecosphere.platform.support.ServerAddress address)
public boolean isInUse(int port)
public int getLowPort()
getLowPort in interface de.iip_ecosphere.platform.support.net.NetworkManagergetLowPort in class de.iip_ecosphere.platform.support.net.AbstractNetworkManagerImplpublic int getHighPort()
getHighPort in interface de.iip_ecosphere.platform.support.net.NetworkManagergetHighPort in class de.iip_ecosphere.platform.support.net.AbstractNetworkManagerImplCopyright © 2021. All rights reserved.