public class KieServerStateOpenShiftRepository extends KieServerStateCloudRepository
CFG_MAP_DATA_KEY, CFG_MAP_LABEL_NAME, CFG_MAP_LABEL_VALUE_IMMUTABLE, CFG_MAP_LABEL_VALUE_USED, ROLLOUT_REQUIRED, STATE_CHANGE_TIMESTAMP, xs| Constructor and Description |
|---|
KieServerStateOpenShiftRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(KieServerState kieServerState) |
protected io.fabric8.kubernetes.api.model.ConfigMap |
createNewKieServerStateCM(KieServerState kieServerState,
String serverId,
io.fabric8.openshift.client.OpenShiftClient client) |
KieServerState |
delete(String id) |
boolean |
exists(String id) |
boolean |
isKieContainerRemovalAllowed(io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState)
To be compatible with non kieserver process, (workbench), kie container at certain status,
i.e.
|
boolean |
isKieContainerUpdateDuringRolloutAllowed(io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState)
Non KieServer process including workbench is allowed to update KieServerState
even during DC rollout, but ONLY under certain conditions.
|
boolean |
isKieServerReady() |
protected boolean |
isServerStateUpdateAllowed(io.fabric8.openshift.api.model.DeploymentConfig dc,
io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState) |
protected boolean |
isUpdateByKieServerProcessAllowed(io.fabric8.openshift.api.model.DeploymentConfig dc,
io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState) |
protected boolean |
isUpdateByNonKieServerProcessAllowed(io.fabric8.openshift.api.model.DeploymentConfig dc,
io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState) |
KieServerState |
load(String serverId) |
List<String> |
retrieveAllKieServerIds() |
List<KieServerState> |
retrieveAllKieServerStates() |
void |
store(String serverId,
KieServerState kieServerState) |
initializeXStream, retrieveKieServerIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDCStablecreateKubernetesClient, createOpenShiftClient, setupConfigpublic void create(@NotNull
KieServerState kieServerState)
public List<KieServerState> retrieveAllKieServerStates()
public boolean exists(String id)
public KieServerState delete(String id)
public void store(@NotNull
String serverId,
@NotNull
KieServerState kieServerState)
public KieServerState load(@NotNull String serverId)
public boolean isKieServerReady()
public boolean isKieContainerRemovalAllowed(io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState)
dc - c - newState - public boolean isKieContainerUpdateDuringRolloutAllowed(io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState)
cm - newState - protected io.fabric8.kubernetes.api.model.ConfigMap createNewKieServerStateCM(KieServerState kieServerState, String serverId, io.fabric8.openshift.client.OpenShiftClient client)
protected boolean isServerStateUpdateAllowed(io.fabric8.openshift.api.model.DeploymentConfig dc,
io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState)
protected boolean isUpdateByNonKieServerProcessAllowed(io.fabric8.openshift.api.model.DeploymentConfig dc,
io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState)
protected boolean isUpdateByKieServerProcessAllowed(io.fabric8.openshift.api.model.DeploymentConfig dc,
io.fabric8.kubernetes.api.model.ConfigMap cm,
KieServerState newState)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.