Class WorkerK8SAas
java.lang.Object
test.de.iip_ecosphere.platform.ecsRuntime.kubernetes.WorkerK8SAas
Create client side aas for the worker node.
- Author:
- Ahmad Alamoush, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorkerK8SAas(String serverIP, String serverPort, int vabPort, int aasPort) Creates a Client K8S aas instance. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the aas port.Returns the IP Address of the server.Returns the port of the server (either the Aas port or K8S apiserver port).intReturns the vab port.private static Objectget response to request.private static ObjectsendWatchToAAS(Object[] params) get response to request.voidsetAasPort(int aasPort) Set the aas port.voidsetServerIP(String serverIP) Set the IP Address of the server.voidsetServerPort(String serverPort) Set the port of the server (either the Aas port or K8S apiserver port).voidsetVabPort(int vabPort) Set the vab port.ArrayList<de.iip_ecosphere.platform.support.Server> Start the local aas.
-
Field Details
-
serverIP
-
serverPort
-
submodel
private static de.iip_ecosphere.platform.support.aas.Submodel submodel -
vabPort
private int vabPort -
aasPort
private int aasPort
-
-
Constructor Details
-
WorkerK8SAas
Creates a Client K8S aas instance.- Parameters:
serverIP- the IP Address of the serverserverPort- the port of the server (either the Aas port or K8S apiserver port)vabPort- the vab portaasPort- the aas port
-
-
Method Details
-
getServerIP
Returns the IP Address of the server.- Returns:
- the IP Address of the server
-
setServerIP
Set the IP Address of the server.- Parameters:
serverIP- the IP Address of the server
-
getServerPort
Returns the port of the server (either the Aas port or K8S apiserver port).- Returns:
- the port of the server (either the Aas port or K8S apiserver port)
-
setServerPort
Set the port of the server (either the Aas port or K8S apiserver port).- Parameters:
serverPort- the port of the server (either the Aas port or K8S apiserver port)
-
getVabPort
public int getVabPort()Returns the vab port.- Returns:
- the vab port
-
setVabPort
public void setVabPort(int vabPort) Set the vab port.- Parameters:
vabPort- the vab port
-
getAasPort
public int getAasPort()Returns the aas port.- Returns:
- the aas port
-
setAasPort
public void setAasPort(int aasPort) Set the aas port.- Parameters:
aasPort- the aas port
-
startLocalAas
Start the local aas.- Returns:
- the running servers
- Throws:
IOException- if deployment fails
-
sendToAAS
get response to request.- Parameters:
params- the call parameters, only the first is evaluated- Returns:
- the response string
-
sendWatchToAAS
get response to request.- Parameters:
params- the call parameters, only the first is evaluated- Returns:
- the response string
-