public abstract class InternalAdminDriver extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
InternalAdminDriver.UndeployListener |
Modifier and Type | Field and Description |
---|---|
protected InternalAdmin |
admin |
protected org.openspaces.zookeeper.attribute_store.ZooKeeperAttributeStore |
attributeStore |
protected org.apache.commons.logging.Log |
logger |
Modifier | Constructor and Description |
---|---|
protected |
InternalAdminDriver(InternalAdmin admin) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterDeploy(ProcessingUnit pu,
long deadline) |
protected void |
afterUndeploy(String pu,
Collection<String> spaceNames,
int numberOfPlannedInstances) |
protected void |
beforeDeploy(ProcessingUnitConfig puConfig) |
void |
beforeUndeployK8s(ProcessingUnit pu,
UndeployOptions options) |
abstract boolean |
checkIfPartitionHasAlreadyProvidedResource(ProcessingUnit pu,
Integer partitionId,
String memory,
String cpu) |
abstract void |
deleteSpaceInstancesPersistentData(UndeployedPuMetaData puMetaData,
String spaceName,
InternalSpaceDeleteInstancePersistentDataEventListener listener) |
void |
deleteTieredStorageData(String puName,
InternalSpaceDeleteInstancePersistentDataEventListener listener) |
ProcessingUnit |
deploy(ProcessingUnitConfigHolder puConfigHolder) |
ProcessingUnit |
deploy(ProcessingUnitConfigHolder puConfigHolder,
String applicationName,
long timeout,
TimeUnit timeUnit) |
protected abstract void |
deploy(ProcessingUnitConfig puConfig,
String applicationName) |
ProcessingUnit |
deploy(ProcessingUnitConfig puConfig,
String applicationName,
long timeout,
TimeUnit timeUnit) |
abstract com.gigaspaces.grid.gsm.PUDetails |
getPuDetails(ProcessingUnit pu) |
abstract QuiesceManager |
getQuiesceManager() |
abstract ResourcesResponse |
getResources(String serviceName,
String partitionId) |
UndeployedPuMetaData |
getUndeployedPu(String puName) |
List<UndeployedPuMetaData> |
getUnDeployedPus() |
protected boolean |
hasZkNode(String puName) |
protected abstract boolean |
implicitContainers() |
protected String |
initNameIfNeeded(ProcessingUnitConfig puConfig) |
abstract boolean |
isDeployed(String puName)
For service grid only
|
protected abstract boolean |
isOrphanInstancesBeingProvisioned(String puName) |
protected boolean |
isPersistent(String puName) |
void |
postDeploy(ProcessingUnit pu)
This method is intended for usage by kubernetes operator only - the operator calls predeploy, performs the actual
provisioning, then calls postdeploy
|
void |
postUndeployK8s(String puName) |
void |
preDeploy(ProcessingUnitConfigHolder puConfigHolder,
boolean deleteMetadata)
This method is intended for usage by kubernetes operator only - the operator calls predeploy, performs the actual
provisioning, then calls postdeploy
|
abstract void |
scaleIn(ProcessingUnit pu,
int factor) |
abstract void |
scaleOut(ProcessingUnit pu,
int factor,
String memory,
String cpu) |
void |
scaleUpDown(ProcessingUnit pu,
Integer partitionId,
String memory,
String cpu,
Long timeout,
PuScaleVStatusChangedEventListener listener) |
protected abstract void |
scaleUpDownUnsafe(ProcessingUnit pu,
Integer partitionId,
String memory,
String cpu,
Long timeout,
PuScaleVStatusChangedEventListener listener) |
void |
setUndeployedInstanceIp(String puName,
String instanceId,
String ip,
boolean validateHost) |
void |
setUndeployedLeader(String puName,
int partitionId,
String instanceId) |
protected abstract void |
undeploy(String puName) |
CompletableFuture<?> |
undeployAsync(ProcessingUnit pu) |
CompletableFuture<?> |
undeployAsync(ProcessingUnit pu,
UndeployOptions options) |
abstract void |
validateScaleUpDownInput(String memory,
String cpu) |
protected final org.apache.commons.logging.Log logger
protected final InternalAdmin admin
protected final org.openspaces.zookeeper.attribute_store.ZooKeeperAttributeStore attributeStore
protected InternalAdminDriver(InternalAdmin admin)
public abstract QuiesceManager getQuiesceManager()
public ProcessingUnit deploy(ProcessingUnitConfigHolder puConfigHolder)
public ProcessingUnit deploy(ProcessingUnitConfigHolder puConfigHolder, String applicationName, long timeout, TimeUnit timeUnit)
public ProcessingUnit deploy(ProcessingUnitConfig puConfig, String applicationName, long timeout, TimeUnit timeUnit)
public void preDeploy(ProcessingUnitConfigHolder puConfigHolder, boolean deleteMetadata)
public void postDeploy(ProcessingUnit pu)
public void beforeUndeployK8s(ProcessingUnit pu, UndeployOptions options)
public void postUndeployK8s(String puName)
protected String initNameIfNeeded(ProcessingUnitConfig puConfig)
protected void beforeDeploy(ProcessingUnitConfig puConfig) throws IOException
IOException
public abstract boolean isDeployed(String puName)
protected boolean hasZkNode(String puName)
protected boolean isPersistent(String puName) throws IOException
IOException
public CompletableFuture<?> undeployAsync(ProcessingUnit pu)
public CompletableFuture<?> undeployAsync(ProcessingUnit pu, UndeployOptions options)
protected abstract void deploy(ProcessingUnitConfig puConfig, String applicationName)
protected void afterDeploy(ProcessingUnit pu, long deadline) throws IOException
IOException
protected void afterUndeploy(String pu, Collection<String> spaceNames, int numberOfPlannedInstances) throws IOException
IOException
public List<UndeployedPuMetaData> getUnDeployedPus()
public UndeployedPuMetaData getUndeployedPu(String puName) throws IOException
IOException
public void setUndeployedLeader(String puName, int partitionId, String instanceId)
public void setUndeployedInstanceIp(String puName, String instanceId, String ip, boolean validateHost)
public void deleteTieredStorageData(String puName, InternalSpaceDeleteInstancePersistentDataEventListener listener)
public abstract void deleteSpaceInstancesPersistentData(UndeployedPuMetaData puMetaData, String spaceName, InternalSpaceDeleteInstancePersistentDataEventListener listener) throws AdminException
AdminException
public abstract void scaleIn(ProcessingUnit pu, int factor)
public abstract void scaleOut(ProcessingUnit pu, int factor, String memory, String cpu)
public abstract com.gigaspaces.grid.gsm.PUDetails getPuDetails(ProcessingUnit pu) throws RemoteException
RemoteException
protected abstract void scaleUpDownUnsafe(ProcessingUnit pu, Integer partitionId, String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener)
public void scaleUpDown(ProcessingUnit pu, Integer partitionId, String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener)
public abstract boolean checkIfPartitionHasAlreadyProvidedResource(ProcessingUnit pu, Integer partitionId, String memory, String cpu)
public abstract ResourcesResponse getResources(String serviceName, String partitionId)
protected abstract void undeploy(String puName)
protected abstract boolean isOrphanInstancesBeingProvisioned(String puName)
protected abstract boolean implicitContainers()
Copyright © GigaSpaces.