Class AbstractOpenShiftAdapter
java.lang.Object
org.arquillian.cube.openshift.impl.adapter.AbstractOpenShiftAdapter
- All Implemented Interfaces:
Closeable,AutoCloseable,OpenShiftHandle,OpenShiftAdapter
- Direct Known Subclasses:
F8OpenShiftAdapter
- Author:
- Ales Justin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CubeOpenShiftConfigurationprotected final Logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractOpenShiftAdapter(CubeOpenShiftConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionaddRoleBinding(String resourcesKey, String roleRefName, String userName) protected abstract ProxycreateResource(String resourcesKey, InputStream stream) protected abstract OpenShiftResourceHandlecreateResourceFromStream(InputStream stream) protected abstract OpenShiftResourceHandlecreateRoleBinding(String roleRefName, String userName) voiddeleteResources(String resourcesKey) getPods()getProxy()getReadyPods(String prefix) <T> TvoidreplacePods(String prefix, int size, int replicas) voidsetProtocolMetaData(org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData> pmd) voidwaitForReadyPods(String prefix, int replicas) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.arquillian.cube.openshift.impl.adapter.OpenShiftAdapter
checkProject, cleanPods, cleanRemnants, cleanReplicationControllers, deleteProject, deleteTemplate, deployPod, deployReplicationController, getService, processTemplateAndCreateResourcesMethods inherited from interface org.arquillian.cube.openshift.api.OpenShiftHandle
deletePod, exec, getLog, getLog, getPods, scaleDeployment, streamLog, triggerDeploymentConfigUpdate, triggerDeploymentConfigUpdate
-
Field Details
-
log
-
configuration
-
-
Constructor Details
-
AbstractOpenShiftAdapter
-
-
Method Details
-
setProtocolMetaData
public void setProtocolMetaData(org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData> pmd) -
createProxy
-
url
- Specified by:
urlin interfaceOpenShiftHandle
-
execute
- Specified by:
executein interfaceOpenShiftHandle- Throws:
Exception
-
execute
- Specified by:
executein interfaceOpenShiftHandle- Throws:
Exception
-
execute
public InputStream execute(Map<String, String> labels, int pod, int port, String path) throws Exception- Specified by:
executein interfaceOpenShiftHandle- Throws:
Exception
-
getProxy
- Specified by:
getProxyin interfaceOpenShiftAdapter
-
createResourceFromStream
protected abstract OpenShiftResourceHandle createResourceFromStream(InputStream stream) throws IOException - Throws:
IOException
-
createResource
- Specified by:
createResourcein interfaceOpenShiftAdapter- Throws:
IOException
-
deleteResources
- Specified by:
deleteResourcesin interfaceOpenShiftAdapter
-
createRoleBinding
-
addRoleBinding
- Specified by:
addRoleBindingin interfaceOpenShiftAdapter
-
getLabels
- Throws:
Exception
-
waitForReadyPods
- Specified by:
waitForReadyPodsin interfaceOpenShiftHandle- Throws:
Exception
-
replacePods
- Specified by:
replacePodsin interfaceOpenShiftHandle- Throws:
Exception
-
getReadyPods
- Specified by:
getReadyPodsin interfaceOpenShiftHandle- Throws:
Exception
-
getPods
- Specified by:
getPodsin interfaceOpenShiftHandle- Throws:
Exception
-
delay
- Specified by:
delayin interfaceOpenShiftAdapterop- compare current number of pods vs. replicas- Throws:
Exception
-
jolokia
- Specified by:
jolokiain interfaceOpenShiftHandle- Throws:
Exception
-