Package org.openspaces.admin.internal.pu
Interface InternalProcessingUnit
- All Superinterfaces:
AdminAware,InternalApplicationAware,InternalProcessingUnitInstancesAware,Iterable<ProcessingUnitInstance>,ProcessingUnit,StatisticsMonitor
- All Known Implementing Classes:
DefaultProcessingUnit
public interface InternalProcessingUnit
extends ProcessingUnit, InternalProcessingUnitInstancesAware, InternalApplicationAware
- Author:
- kimchy
-
Field Summary
Fields inherited from interface org.openspaces.admin.StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBackupGridServiceManager(GridServiceManager backupGridServiceManager) voidaddEmbeddedSpace(Space space) voidaddManagingGridServiceManager(GridServiceManager gridServiceManager) voidaddProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance) voidaddStatisticsCalculation(ProcessingUnitStatisticsId statisticsId) Adds the specified statistics calculationvoidbooleanDecrements a planned instance if the number of planned instances is less then the actual instances to maintain.Retrieves a context property containing the order of dependencies within an application.getHostingGridServiceAgentZones(ProcessingUnitInstance processingUnitInstance) return the exact zones of the agent that belongs to processing unit instancereturns the processing unit instance based on its uid (seeGridComponent.getUid())In the case of application name prefix just processing unit name will be returned.booleanbooleanbooleanisStub()lock()voidprocessProvisionEvent(org.jini.rio.monitor.ProvisionLifeCycleEvent provisionLifeCycleEvent) voidremoveBackupGridServiceManager(String gsmUID) booleanremoveEmbeddedSpace(Space space) voidvoidremoveStatisticsCalculation(ProcessingUnitStatisticsId statisticsId) Removes the specified statistics calculationvoidscaleHorizontal(int target, String memory, String cpu, String requestId) voidscaleVertical(String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener) voidsetBackupGsmInSync(boolean isBackupInSync) voidsetManagingGridServiceManager(GridServiceManager gridServiceManager) voidsetNumberOfBackups(int numberOfBackups) voidsetNumberOfInstances(int numberOfInstances) booleansetStatus(int statusCode) voidsetStub(boolean stub) voidupdateStub(ProcessingUnitInstance processingUnitInstance) Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface org.openspaces.admin.internal.application.InternalApplicationAware
setApplicationMethods inherited from interface org.openspaces.admin.internal.pu.InternalProcessingUnitInstancesAware
getProcessingUnitInstancesMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.openspaces.admin.pu.ProcessingUnit
addLifecycleListener, canDecrementInstance, canIncrementInstance, decrementInstance, getApplication, getArchiveName, getBackupGridServiceManager, getBackupGridServiceManagerChanged, getBackupGridServiceManagers, getBeanLevelProperties, getDependencies, getGridServiceContainers, getInstances, getManagingGridServiceManager, getManagingGridServiceManagerChanged, getMaxInstancesPerMachine, getMaxInstancesPerVM, getMaxInstancesPerZone, getName, getNumberOfBackups, getNumberOfInstances, getPartition, getPartitions, getPlannedNumberOfInstances, getPlannedNumberOfPartitions, getPrimaryZones, getProcessingUnitInstance, getProcessingUnitInstanceAdded, getProcessingUnitInstanceMemberAliveIndicatorStatusChanged, getProcessingUnitInstanceProvisionStatusChanged, getProcessingUnitInstanceRemoved, getProcessingUnitInstanceStatisticsChanged, getProcessingUnits, getProcessingUnitStatusChanged, getQuiesceDetails, getRequiredContainerZones, getRequiredZones, getSpace, getSpaceCorrelated, getSpaces, getStatus, getTotalNumberOfInstances, getType, hasSpace, incrementInstance, isManaged, isRequiresIsolation, quiesce, removeLifecycleListener, setLogLevel, undeploy, undeployAndWait, undeployAndWait, undeployAsync, undeployAsync, unquiesce, waitFor, waitFor, waitFor, waitFor, waitForManaged, waitForManaged, waitForSpace, waitForSpaceMethods inherited from interface org.openspaces.admin.StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
-
Method Details
-
setNumberOfInstances
void setNumberOfInstances(int numberOfInstances) -
setNumberOfBackups
void setNumberOfBackups(int numberOfBackups) -
setManagingGridServiceManager
-
addManagingGridServiceManager
-
addBackupGridServiceManager
-
removeBackupGridServiceManager
-
setStatus
boolean setStatus(int statusCode) -
addProcessingUnitInstance
-
removeProcessingUnitInstance
-
addEmbeddedSpace
-
removeEmbeddedSpace
- Since:
- 9.1.0
-
getApplicationName
String getApplicationName() -
getClusterSchema
String getClusterSchema() -
getSimpleName
String getSimpleName()In the case of application name prefix just processing unit name will be returned. Otherwise name will be returned.- Since:
- 8.0.6
-
getApplicationDependencies
String getApplicationDependencies()Retrieves a context property containing the order of dependencies within an application.- Returns:
- The property value, in a CSV format.
- Since:
- 8.0.4
-
decrementPlannedInstances
boolean decrementPlannedInstances()Decrements a planned instance if the number of planned instances is less then the actual instances to maintain.- Returns:
trueif a planned instance was successfully decremented;falseplanned instances hasn't changed.- Since:
- 8.0.4
-
processProvisionEvent
void processProvisionEvent(org.jini.rio.monitor.ProvisionLifeCycleEvent provisionLifeCycleEvent) - Since:
- 8.0.6
-
getProvisionStatusPerInstance
Map<String,InternalProvisionStatusHolder> getProvisionStatusPerInstance()- Since:
- 8.0.6
-
getStatistics
ProcessingUnitStatistics getStatistics()- Returns:
- the processing unit (aggregated) statistics.
- Since:
- 9.0.0
-
addStatisticsCalculation
Adds the specified statistics calculation- Since:
- 9.0.0
-
removeStatisticsCalculation
Removes the specified statistics calculation- Since:
- 9.0.0
-
getStatisticsCalculations
Set<ProcessingUnitStatisticsId> getStatisticsCalculations()- Returns:
- the generated statistics identifiers.
- Since:
- 9.0.0
-
getHostingGridServiceAgentZones
ExactZonesConfig getHostingGridServiceAgentZones(ProcessingUnitInstance processingUnitInstance) throws AdminException return the exact zones of the agent that belongs to processing unit instance- Throws:
AdminException- Since:
- 9.1.0
-
setBackupGsmInSync
void setBackupGsmInSync(boolean isBackupInSync) - Parameters:
isBackupInSync- - true if backup GSM is in sync with primary GSM, false if out of sync.
-
isBackupGsmInSync
boolean isBackupGsmInSync()- Returns:
- true if backup GSM is in sync with primary GSM, false if out of sync or no backup gsm.
-
getProcessingUnitInstanceByUid
returns the processing unit instance based on its uid (seeGridComponent.getUid())- Parameters:
uid- the unique id of the processing unit instance- Returns:
- the processing unit instance or null
- Since:
- 10.1.1
-
isStandaloneProcessingUnit
boolean isStandaloneProcessingUnit()- Returns:
- true if this processing unit is un-managed by the Service Grid.
- Since:
- 14.0.0
-
scaleHorizontal
-
scaleVertical
void scaleVertical(String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener) -
cancelScaleOut
-
getClusterTopology
- Throws:
IOException
-
lock
- Throws:
Exception
-
lock
SharedLock lock(long timeout, TimeUnit timeunit) throws IOException, TimeoutException, InterruptedException -
setStub
void setStub(boolean stub) - Parameters:
stub- - true if PU was created before any instance
-
isStub
boolean isStub() -
updateStub
-