public interface InternalProcessingUnit extends ProcessingUnit, InternalProcessingUnitInstancesAware, InternalApplicationAware
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL
Modifier and Type | Method and Description |
---|---|
void |
addBackupGridServiceManager(GridServiceManager backupGridServiceManager) |
void |
addEmbeddedSpace(Space space) |
void |
addManagingGridServiceManager(GridServiceManager gridServiceManager) |
void |
addProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance) |
void |
addStatisticsCalculation(ProcessingUnitStatisticsId statisticsId)
Adds the specified statistics calculation
|
boolean |
decrementPlannedInstances()
Decrements a planned instance if the number of planned instances is less then the actual
instances to maintain.
|
String |
getApplicationDependencies()
Retrieves a context property containing the order of dependencies within an application.
|
String |
getApplicationName() |
String |
getClusterSchema() |
Map<String,String> |
getElasticProperties() |
ExactZonesConfig |
getHostingGridServiceAgentZones(ProcessingUnitInstance processingUnitInstance)
return the exact zones of the agent that belongs to processing unit instance
|
ProcessingUnitInstance |
getProcessingUnitInstanceByUid(String uid)
returns the processing unit instance based on its uid (see
GridComponent.getUid() ) |
Map<String,InternalProvisionStatusHolder> |
getProvisionStatusPerInstance() |
ScaleStrategyConfig |
getScaleStrategyConfig()
Returns the current scale strategy config
|
String |
getSimpleName()
In the case of application name prefix just processing unit name will be returned.
|
ProcessingUnitStatistics |
getStatistics() |
Set<ProcessingUnitStatisticsId> |
getStatisticsCalculations() |
boolean |
isBackupGsmInSync() |
void |
processProvisionEvent(org.jini.rio.monitor.ProvisionLifeCycleEvent provisionLifeCycleEvent) |
void |
removeBackupGridServiceManager(String gsmUID) |
boolean |
removeEmbeddedSpace(Space space) |
void |
removeProcessingUnitInstance(String uid) |
void |
removeStatisticsCalculation(ProcessingUnitStatisticsId statisticsId)
Removes the specified statistics calculation
|
void |
setBackupGsmInSync(boolean isBackupInSync) |
void |
setManagingGridServiceManager(GridServiceManager gridServiceManager) |
void |
setNumberOfBackups(int numberOfBackups) |
void |
setNumberOfInstances(int numberOfInstances) |
boolean |
setStatus(int statusCode) |
addLifecycleListener, canDecrementInstance, canIncrementInstance, decrementInstance, getApplication, getBackupGridServiceManager, getBackupGridServiceManagerChanged, getBackupGridServiceManagers, getBeanLevelProperties, getDependencies, getInstances, getManagingGridServiceManager, getManagingGridServiceManagerChanged, getMaxInstancesPerMachine, getMaxInstancesPerVM, getMaxInstancesPerZone, getName, getNumberOfBackups, getNumberOfInstances, getPartition, getPartitions, getPlannedNumberOfInstances, getPlannedNumberOfPartitions, getProcessingUnitInstanceAdded, getProcessingUnitInstanceMemberAliveIndicatorStatusChanged, getProcessingUnitInstanceProvisionStatusChanged, getProcessingUnitInstanceRemoved, getProcessingUnitInstanceStatisticsChanged, getProcessingUnits, getProcessingUnitStatusChanged, getQuiesceDetails, getRequiredContainerZones, getRequiredZones, getSpace, getSpaceCorrelated, getSpaces, getStatus, getTotalNumberOfInstances, getType, incrementInstance, isManaged, isRequiresIsolation, quiesce, removeLifecycleListener, scale, scaleAndWait, scaleAndWait, undeploy, undeployAndWait, undeployAndWait, unquiesce, waitFor, waitFor, waitFor, waitFor, waitForManaged, waitForManaged, waitForSpace, waitForSpace
forEach, iterator, spliterator
getAdmin
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitor
getProcessingUnitInstances
setApplication
void setNumberOfInstances(int numberOfInstances)
void setNumberOfBackups(int numberOfBackups)
void setManagingGridServiceManager(GridServiceManager gridServiceManager)
void addManagingGridServiceManager(GridServiceManager gridServiceManager)
void addBackupGridServiceManager(GridServiceManager backupGridServiceManager)
void removeBackupGridServiceManager(String gsmUID)
boolean setStatus(int statusCode)
void addProcessingUnitInstance(ProcessingUnitInstance processingUnitInstance)
void removeProcessingUnitInstance(String uid)
void addEmbeddedSpace(Space space)
boolean removeEmbeddedSpace(Space space)
String getApplicationName()
String getClusterSchema()
String getSimpleName()
String getApplicationDependencies()
ScaleStrategyConfig getScaleStrategyConfig()
boolean decrementPlannedInstances()
true
if a planned instance was successfully decremented;
false
planned instances hasn't changed.void processProvisionEvent(org.jini.rio.monitor.ProvisionLifeCycleEvent provisionLifeCycleEvent)
Map<String,InternalProvisionStatusHolder> getProvisionStatusPerInstance()
ProcessingUnitStatistics getStatistics()
void addStatisticsCalculation(ProcessingUnitStatisticsId statisticsId)
void removeStatisticsCalculation(ProcessingUnitStatisticsId statisticsId)
Set<ProcessingUnitStatisticsId> getStatisticsCalculations()
ExactZonesConfig getHostingGridServiceAgentZones(ProcessingUnitInstance processingUnitInstance) throws AdminException
AdminException
void setBackupGsmInSync(boolean isBackupInSync)
isBackupInSync
- - true if backup GSM is in sync with primary GSM, false if out of
sync.boolean isBackupGsmInSync()
ProcessingUnitInstance getProcessingUnitInstanceByUid(String uid)
GridComponent.getUid()
)uid
- the unique id of the processing unit instanceCopyright © GigaSpaces.