public abstract class AbstractOpenShiftAdapter extends Object implements OpenShiftAdapter
| Modifier and Type | Field and Description |
|---|---|
protected CubeOpenShiftConfiguration |
configuration |
protected Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOpenShiftAdapter(CubeOpenShiftConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Object |
addRoleBinding(String resourcesKey,
String roleRefName,
String userName) |
protected abstract Proxy |
createProxy() |
Object |
createResource(String resourcesKey,
InputStream stream) |
protected abstract OpenShiftResourceHandle |
createResourceFromStream(InputStream stream) |
protected abstract OpenShiftResourceHandle |
createRoleBinding(String roleRefName,
String userName) |
void |
delay(Map<String,String> labels,
int replicas,
Operator op) |
Object |
deleteResources(String resourcesKey) |
InputStream |
execute(int pod,
int port,
String path) |
InputStream |
execute(Map<String,String> labels,
int pod,
int port,
String path) |
InputStream |
execute(String podName,
int port,
String path) |
protected abstract Map<String,String> |
getLabels(String prefix) |
List<String> |
getPods() |
Proxy |
getProxy() |
Set<String> |
getReadyPods(String prefix) |
<T> T |
jolokia(Class<T> expectedReturnType,
String podName,
Object input) |
void |
replacePods(String prefix,
int size,
int replicas) |
void |
setProtocolMetaData(org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData> pmd) |
String |
url(String podName,
int port,
String path,
String parameters) |
void |
waitForReadyPods(String prefix,
int replicas) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckProject, cleanPods, cleanRemnants, cleanReplicationControllers, deleteProject, deleteTemplate, deployPod, deployReplicationController, getService, processTemplateAndCreateResourcesdeletePod, exec, getLog, getLog, getPods, scaleDeployment, streamLog, triggerDeploymentConfigUpdate, triggerDeploymentConfigUpdateprotected final Logger log
protected final CubeOpenShiftConfiguration configuration
protected AbstractOpenShiftAdapter(CubeOpenShiftConfiguration configuration)
public void setProtocolMetaData(org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData> pmd)
protected abstract Proxy createProxy()
public String url(String podName, int port, String path, String parameters)
url in interface OpenShiftHandlepublic InputStream execute(String podName, int port, String path) throws Exception
execute in interface OpenShiftHandleExceptionpublic InputStream execute(int pod, int port, String path) throws Exception
execute in interface OpenShiftHandleExceptionpublic InputStream execute(Map<String,String> labels, int pod, int port, String path) throws Exception
execute in interface OpenShiftHandleExceptionpublic Proxy getProxy()
getProxy in interface OpenShiftAdapterprotected abstract OpenShiftResourceHandle createResourceFromStream(InputStream stream) throws IOException
IOExceptionpublic Object createResource(String resourcesKey, InputStream stream) throws IOException
createResource in interface OpenShiftAdapterIOExceptionpublic Object deleteResources(String resourcesKey)
deleteResources in interface OpenShiftAdapterprotected abstract OpenShiftResourceHandle createRoleBinding(String roleRefName, String userName)
public Object addRoleBinding(String resourcesKey, String roleRefName, String userName)
addRoleBinding in interface OpenShiftAdapterprotected abstract Map<String,String> getLabels(String prefix) throws Exception
Exceptionpublic void waitForReadyPods(String prefix, int replicas) throws Exception
waitForReadyPods in interface OpenShiftHandleExceptionpublic void replacePods(String prefix, int size, int replicas) throws Exception
replacePods in interface OpenShiftHandleExceptionpublic Set<String> getReadyPods(String prefix) throws Exception
getReadyPods in interface OpenShiftHandleExceptionpublic List<String> getPods() throws Exception
getPods in interface OpenShiftHandleExceptionpublic void delay(Map<String,String> labels, int replicas, Operator op) throws Exception
delay in interface OpenShiftAdapterop - compare current number of pods vs. replicasExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.