Interface InternalProcessingUnitInstance
- All Superinterfaces:
AdminAware, DiscoverableComponent, GridComponent, InternalDiscoverableComponent, InternalGridComponent, InternalMachineAware, InternalOperatingSystemAware, InternalOperatingSystemInfoProvider, InternalTransportAware, InternalTransportInfoProvider, InternalVirtualMachineAware, InternalVirtualMachineInfoProvider, InternalZoneAware, Iterable<ServiceDetails>, MachineAware, OperatingSystemAware, ProcessingUnitInstance, StatisticsMonitor, TransportAware, VirtualMachineAware, ZoneAware
- All Known Implementing Classes:
DefaultProcessingUnitInstance
public interface InternalProcessingUnitInstance
extends ProcessingUnitInstance, InternalGridComponent
- Author:
- kimchy
-
Field Summary
Fields inherited from interface StatisticsMonitor
DEFAULT_HISTORY_SIZE, DEFAULT_MONITOR_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSpaceInstanceIfMatching(SpaceInstance spaceInstance) Adds a space instance only if it is one that the processing unit has started.This method is non-blocking and should used in conjunction withProcessingUnitInstance.getStatistics()orStatisticsMonitor.setStatisticsInterval(long, java.util.concurrent.TimeUnit)longbooleanvoidvoidsetClusterInfo(ClusterInfo clusterInfo) voidsetGridServiceContainer(GridServiceContainer gridServiceContainer) voidsetMemberAliveIndicatorStatus(org.jini.rio.monitor.ServiceFaultDetectionEvent serviceFaultDetectionEvent) voidsetProcessingUnit(ProcessingUnit processingUnit) voidsetProcessingUnitPartition(ProcessingUnitPartition processingUnitPartition) Methods inherited from interface AdminAware
getAdminMethods inherited from interface DiscoverableComponent
isDiscoveredMethods inherited from interface GridComponent
getUidMethods inherited from interface InternalDiscoverableComponent
setDiscoveredMethods inherited from interface InternalMachineAware
setMachineMethods inherited from interface InternalOperatingSystemAware
setOperatingSystemMethods inherited from interface InternalOperatingSystemInfoProvider
getCurrentTimeInMillis, getOSDetails, getOSStatisticsMethods inherited from interface InternalTransportAware
setTransportMethods inherited from interface InternalTransportInfoProvider
disableLRMIMonitoring, enableLRMIMonitoring, fetchLRMIMonitoringDetails, getNIODetails, getNIOStatisticsMethods inherited from interface InternalVirtualMachineAware
setVirtualMachineMethods inherited from interface InternalVirtualMachineInfoProvider
getJVMDetails, getJVMStatistics, getUid, runGcMethods inherited from interface InternalZoneAware
addZoneMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface MachineAware
getMachineMethods inherited from interface OperatingSystemAware
getOperatingSystemMethods inherited from interface ProcessingUnitInstance
decrement, destroy, getAsyncPollingEventContainerDetails, getBackupId, getClusterInfo, getEmbeddedSpaceDetails, getEmbeddedSpacesDetails, getEventContainerDetails, getGridServiceContainer, getId, getInstanceId, getJeeDetails, getMemberAliveIndicatorStatus, getName, getNotifyEventContainerDetails, getPartition, getPollingEventContainerDetails, getProcessingUnit, getProcessingUnitInstanceName, getProperties, getRemotingDetails, getServiceDetailsByServiceId, getServiceDetailsByServiceId, getServiceDetailsByServiceType, getServicesDetailsByServiceType, getSpaceDetails, getSpaceInstance, getSpaceInstances, getStatistics, isEmbeddedSpaces, isJee, relocate, relocate, relocateAndWait, relocateAndWait, relocateAndWait, relocateAndWait, restart, restartAndWait, restartAndWait, waitForSpaceInstance, waitForSpaceInstanceMethods inherited from interface StatisticsMonitor
isMonitoring, setStatisticsHistorySize, setStatisticsInterval, startStatisticsMonitor, stopStatisticsMonitorMethods inherited from interface TransportAware
getTransportMethods inherited from interface VirtualMachineAware
getVirtualMachine
-
Method Details
-
getServiceID
ServiceID getServiceID() -
getGridServiceContainerServiceID
ServiceID getGridServiceContainerServiceID() -
setProcessingUnit
-
setGridServiceContainer
-
setProcessingUnitPartition
-
addSpaceInstanceIfMatching
Adds a space instance only if it is one that the processing unit has started. -
removeSpaceInstance
-
getPUServiceBean
PUServiceBean getPUServiceBean() -
invoke
-
isUndeploying
boolean isUndeploying() -
getProcessingUnitInstanceSimpleName
String getProcessingUnitInstanceSimpleName()- Returns:
- Return instance name without prefix of application name ( if exists )
- Since:
- 8.0.6
-
setMemberAliveIndicatorStatus
void setMemberAliveIndicatorStatus(org.jini.rio.monitor.ServiceFaultDetectionEvent serviceFaultDetectionEvent) -
getLastStatistics
ProcessingUnitInstanceStatistics getLastStatistics()This method is non-blocking and should used in conjunction withProcessingUnitInstance.getStatistics()orStatisticsMonitor.setStatisticsInterval(long, java.util.concurrent.TimeUnit)- Returns:
- the last statistics (regardless of its timestamp), or null if no statistics has been ever collected.
- Since:
- 8.0.6
-
getStatisticsIntervalMilliseconds
long getStatisticsIntervalMilliseconds()- Returns:
- the statistics interval milliseconds
- Since:
- 9.0.0
-
setClusterInfo
-