Class MasterK8SAas
java.lang.Object
test.de.iip_ecosphere.platform.ecsRuntime.kubernetes.MasterK8SAas
Create client side aas for the worker node.
- Author:
- Ahmad Alamoush, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMasterK8SAas(String serverIP, String serverPort, int vabPort, int aasPort, boolean tlsCheck) 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 ObjectsendWatchToK8S(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.ArrayList<de.iip_ecosphere.platform.support.Server> Start the local TLS aas.
-
Field Details
-
serverIP
-
serverPort
-
aasPort
private static int aasPort -
requestMapIDs
-
aasK8SJavaProxy
private static de.iip_ecosphere.platform.ecsRuntime.kubernetes.proxy.K8SJavaProxy aasK8SJavaProxy -
vabPort
private int vabPort
-
-
Constructor Details
-
MasterK8SAas
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 porttlsCheck- check to use tls security
-
-
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
-
startLocalTLSAas
Start the local TLS aas.- Returns:
- the running servers
- Throws:
IOException
-
sendToK8S
get response to request.- Parameters:
params- the call parameters, only the first is evaluated- Returns:
- the response string
-
sendWatchToK8S
get response to request.- Parameters:
params- the call parameters, only the first is evaluated- Returns:
- the response string
-