Package org.guvnor.ala.openshift.access
Class OpenShiftClient
- java.lang.Object
-
- org.guvnor.ala.openshift.access.OpenShiftClient
-
public class OpenShiftClient extends Object
Guvnor ALA abstraction/wrapper of the io.fabricate Kubernetes/OpenShift client. Implements the "create" and "destroy" lifecycle aspects for the OpenShiftRuntimeExecExecutor. Implements the "start", "stop", "restart", and "pause" lifecycle aspects for the OpenShiftRuntimeManager.
-
-
Constructor Summary
Constructors Constructor Description OpenShiftClient(io.fabric8.openshift.client.OpenShiftClient delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenShiftRuntimeStatecreate(OpenShiftRuntimeConfig runtimeConfig)voiddestroy(String id)voiddispose()io.fabric8.openshift.client.OpenShiftClientgetDelegate()OpenShiftRuntimeEndpointgetRuntimeEndpoint(String id)OpenShiftRuntimeStategetRuntimeState(String id)voidpause(String id)voidrestart(String id)voidstart(String id)voidstop(String id)
-
-
-
Method Detail
-
getDelegate
public io.fabric8.openshift.client.OpenShiftClient getDelegate()
-
dispose
public void dispose()
-
create
public OpenShiftRuntimeState create(OpenShiftRuntimeConfig runtimeConfig) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
destroy
public void destroy(String id) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
getRuntimeEndpoint
public OpenShiftRuntimeEndpoint getRuntimeEndpoint(String id) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
getRuntimeState
public OpenShiftRuntimeState getRuntimeState(String id) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
start
public void start(String id) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
stop
public void stop(String id) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
restart
public void restart(String id) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
pause
public void pause(String id) throws OpenShiftClientException
- Throws:
OpenShiftClientException
-
-