Class InternalAdminDriver
java.lang.Object
org.openspaces.admin.internal.driver.InternalAdminDriver
- Direct Known Subclasses:
KubernetesAdminDriver,ServiceGridAdminDriver
- Since:
- 15.5
- Author:
- Niv Ingberg
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InternalAdminprotected final org.openspaces.zookeeper.attribute_store.ZooKeeperAttributeStoreprotected final org.apache.commons.logging.Log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterDeploy(ProcessingUnit pu, long deadline) protected voidafterUndeploy(String pu, Collection<String> spaceNames, int numberOfPlannedInstances) protected voidbeforeDeploy(ProcessingUnitConfig puConfig) voidbeforeUndeployK8s(ProcessingUnit pu, UndeployOptions options) abstract booleancheckIfPartitionHasAlreadyProvidedResource(ProcessingUnit pu, Integer partitionId, String memory, String cpu) abstract voiddeleteSpaceInstancesPersistentData(UndeployedPuMetaData puMetaData, String spaceName, InternalSpaceDeleteInstancePersistentDataEventListener listener) voiddeleteTieredStorageData(String puName, InternalSpaceDeleteInstancePersistentDataEventListener listener) protected abstract voiddeploy(ProcessingUnitConfig puConfig, String applicationName) deploy(ProcessingUnitConfig puConfig, String applicationName, long timeout, TimeUnit timeUnit) deploy(ProcessingUnitConfigHolder puConfigHolder) deploy(ProcessingUnitConfigHolder puConfigHolder, String applicationName, long timeout, TimeUnit timeUnit) abstract com.gigaspaces.grid.gsm.PUDetailsabstract QuiesceManagerabstract ResourcesResponsegetResources(String serviceName, String partitionId) getUndeployedPu(String puName) protected booleanprotected abstract booleanprotected StringinitNameIfNeeded(ProcessingUnitConfig puConfig) abstract booleanisDeployed(String puName) For service grid onlyprotected abstract booleanprotected booleanisPersistent(String puName) voidThis method is intended for usage by kubernetes operator only - the operator calls predeploy, performs the actual provisioning, then calls postdeployvoidpostUndeployK8s(String puName) voidpreDeploy(ProcessingUnitConfigHolder puConfigHolder, boolean deleteMetadata) This method is intended for usage by kubernetes operator only - the operator calls predeploy, performs the actual provisioning, then calls postdeployabstract voidscaleIn(ProcessingUnit pu, int factor, String memory, String cpu) abstract voidscaleOut(ProcessingUnit pu, int factor, String memory, String cpu) voidscaleUpDown(ProcessingUnit pu, Integer partitionId, String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener) protected abstract voidscaleUpDownUnsafe(ProcessingUnit pu, Integer partitionId, String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener) voidsetUndeployedInstanceIp(String puName, String instanceId, String ip, boolean validateHost) voidsetUndeployedLeader(String puName, int partitionId, String instanceId) abstract SpaceCfgprotected abstract voidundeployAsync(ProcessingUnit pu, UndeployOptions options) abstract voidvalidateScaleUpDownInput(String memory, String cpu)
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger -
admin
-
attributeStore
protected final org.openspaces.zookeeper.attribute_store.ZooKeeperAttributeStore attributeStore
-
-
Constructor Details
-
InternalAdminDriver
-
-
Method Details
-
getQuiesceManager
-
deploy
-
deploy
public ProcessingUnit deploy(ProcessingUnitConfigHolder puConfigHolder, String applicationName, long timeout, TimeUnit timeUnit) -
deploy
public ProcessingUnit deploy(ProcessingUnitConfig puConfig, String applicationName, long timeout, TimeUnit timeUnit) -
preDeploy
This method is intended for usage by kubernetes operator only - the operator calls predeploy, performs the actual provisioning, then calls postdeploy- Since:
- 16.0
-
postDeploy
This method is intended for usage by kubernetes operator only - the operator calls predeploy, performs the actual provisioning, then calls postdeploy- Since:
- 16.0
-
beforeUndeployK8s
-
postUndeployK8s
-
initNameIfNeeded
-
beforeDeploy
- Throws:
IOException
-
isDeployed
For service grid only -
hasZkNode
-
isPersistent
- Throws:
IOException
-
undeployAsync
-
undeployAsync
-
deploy
-
toCfg
-
afterDeploy
- Throws:
IOException
-
afterUndeploy
protected void afterUndeploy(String pu, Collection<String> spaceNames, int numberOfPlannedInstances) throws IOException - Throws:
IOException
-
getUnDeployedPus
-
getUndeployedPu
- Throws:
IOException
-
setUndeployedLeader
-
setUndeployedInstanceIp
-
deleteTieredStorageData
public void deleteTieredStorageData(String puName, InternalSpaceDeleteInstancePersistentDataEventListener listener) -
deleteSpaceInstancesPersistentData
public abstract void deleteSpaceInstancesPersistentData(UndeployedPuMetaData puMetaData, String spaceName, InternalSpaceDeleteInstancePersistentDataEventListener listener) throws AdminException - Throws:
AdminException
-
scaleIn
-
scaleOut
-
getPuDetails
public abstract com.gigaspaces.grid.gsm.PUDetails getPuDetails(ProcessingUnit pu) throws RemoteException - Throws:
RemoteException
-
scaleUpDownUnsafe
protected abstract void scaleUpDownUnsafe(ProcessingUnit pu, Integer partitionId, String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener) -
scaleUpDown
public void scaleUpDown(ProcessingUnit pu, Integer partitionId, String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener) -
validateScaleUpDownInput
-
checkIfPartitionHasAlreadyProvidedResource
public abstract boolean checkIfPartitionHasAlreadyProvidedResource(ProcessingUnit pu, Integer partitionId, String memory, String cpu) -
getResources
-
undeploy
-
isOrphanInstancesBeingProvisioned
-
implicitContainers
protected abstract boolean implicitContainers()
-