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
|
void |
cancelScaleOut() |
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() |
ClusterTopology |
getClusterTopology() |
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() |
boolean |
isStandaloneProcessingUnit() |
boolean |
isStub() |
SharedLock |
lock() |
SharedLock |
lock(long timeout,
TimeUnit timeunit) |
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 |
scaleHorizontal(int target,
String memory,
String cpu) |
void |
scaleVertical(String memory,
String cpu,
Long timeout,
PuScaleVStatusChangedEventListener listener) |
void |
setBackupGsmInSync(boolean isBackupInSync) |
void |
setManagingGridServiceManager(GridServiceManager gridServiceManager) |
void |
setNumberOfBackups(int numberOfBackups) |
void |
setNumberOfInstances(int numberOfInstances) |
boolean |
setStatus(int statusCode) |
void |
setStub(boolean stub) |
void |
updateStub(ProcessingUnitInstance processingUnitInstance) |
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, scale, scaleAndWait, scaleAndWait, setLogLevel, undeploy, undeployAndWait, undeployAndWait, undeployAsync, undeployAsync, 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 instanceboolean isStandaloneProcessingUnit()
void scaleVertical(String memory, String cpu, Long timeout, PuScaleVStatusChangedEventListener listener)
void cancelScaleOut() throws IOException, InterruptedException, TimeoutException
ClusterTopology getClusterTopology() throws IOException
IOException
SharedLock lock() throws IOException, TimeoutException, InterruptedException
SharedLock lock(long timeout, TimeUnit timeunit) throws IOException, TimeoutException, InterruptedException
void setStub(boolean stub)
stub
- - true if PU was created before any instanceboolean isStub()
void updateStub(ProcessingUnitInstance processingUnitInstance)
Copyright © GigaSpaces.