Package org.openspaces.admin.gsc
Interface GridServiceContainer
- All Superinterfaces:
AdminAware,AgentGridComponent,DiscoverableComponent,DumpProvider,GridComponent,Iterable<ProcessingUnitInstance>,LogProviderGridComponent,MachineAware,MetricProvider,OperatingSystemAware,TransportAware,VirtualMachineAware,ZoneAware
- All Known Subinterfaces:
InternalGridServiceContainer
- All Known Implementing Classes:
DefaultGridServiceContainer
public interface GridServiceContainer
extends AgentGridComponent, Iterable<ProcessingUnitInstance>, LogProviderGridComponent, DumpProvider, MetricProvider
A Grid Service Container is a container for
ProcessingUnitInstances
allocated to it through the GridServiceManager that manages it.- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Adds a processing unit lifecycle listener to the container.booleancontains(ProcessingUnitInstance processingUnitInstance) Returnstrueif the GSC contains the provided processing unit instance.getId()Returns the Grid Service Container IdentifierReturns an event manager allowing to register for processing unit instance additions to the container.getProcessingUnitInstanceByUID(String processingUnitInstanceUid) Returns the processing unit instance that are currently deployed within the grid service container according to its uid.Returns an event manager allowing to register for processing unit instance removals from the container.Returns the processing unit instances that are currently deployed within the grid service container.getProcessingUnitInstances(String processingUnitName) Returns the processing unit instances of the specified name that are currently deployed within the grid service container.voidremoveProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Removes a processing unit lifecycle listener to the container.booleanwaitFor(int numberOfProcessingUnitInstances) Waits indefinitely for the given number of processing unit instances to run within the container.booleanWaits for timeout value (in time unit) for the given number of processing unit instances to run within the container.booleanWaits indefinitely for the given number of processing unit instances of the specified name to run within the container.booleanwaitFor(String processingUnitName, int numberOfProcessingUnitInstances, long timeout, TimeUnit timeUnit) Waits for timeout value (in time unit) for the given number of processing unit instances of the specified name to run within the container.Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface org.openspaces.admin.AgentGridComponent
getAgentId, getGridServiceAgent, kill, restartMethods inherited from interface org.openspaces.admin.DiscoverableComponent
isDiscoveredMethods inherited from interface org.openspaces.admin.dump.DumpProvider
generateDump, generateDumpMethods inherited from interface org.openspaces.admin.GridComponent
getUidMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.openspaces.admin.LogProviderGridComponent
logEntries, logEntriesDirectMethods inherited from interface org.openspaces.admin.machine.MachineAware
getMachineMethods inherited from interface org.openspaces.admin.metrics.MetricProvider
reloadMetricConfigurationMethods inherited from interface org.openspaces.admin.os.OperatingSystemAware
getOperatingSystemMethods inherited from interface org.openspaces.admin.transport.TransportAware
getTransportMethods inherited from interface org.openspaces.admin.vm.VirtualMachineAware
getVirtualMachine
-
Method Details
-
getId
String getId()Returns the Grid Service Container Identifier- Since:
- 12.1
-
waitFor
boolean waitFor(int numberOfProcessingUnitInstances) Waits indefinitely for the given number of processing unit instances to run within the container. -
waitFor
Waits for timeout value (in time unit) for the given number of processing unit instances to run within the container. Returnstrueif the number was reached,falseif the timeout expired. -
waitFor
Waits indefinitely for the given number of processing unit instances of the specified name to run within the container. -
waitFor
boolean waitFor(String processingUnitName, int numberOfProcessingUnitInstances, long timeout, TimeUnit timeUnit) Waits for timeout value (in time unit) for the given number of processing unit instances of the specified name to run within the container. Returnstrueif the number was reached,falseif the timeout expired. -
getProcessingUnitInstances
ProcessingUnitInstance[] getProcessingUnitInstances()Returns the processing unit instances that are currently deployed within the grid service container. -
getProcessingUnitInstances
Returns the processing unit instances of the specified name that are currently deployed within the grid service container. -
getProcessingUnitInstanceByUID
Returns the processing unit instance that are currently deployed within the grid service container according to its uid.- Since:
- 8.0
-
contains
Returnstrueif the GSC contains the provided processing unit instance. -
getProcessingUnitInstanceAdded
ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()Returns an event manager allowing to register for processing unit instance additions to the container. -
getProcessingUnitInstanceRemoved
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()Returns an event manager allowing to register for processing unit instance removals from the container. -
addProcessingUnitInstanceLifecycleEventListener
void addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Adds a processing unit lifecycle listener to the container. -
removeProcessingUnitInstanceLifecycleEventListener
void removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener) Removes a processing unit lifecycle listener to the container. -
getExactZones
ExactZonesConfig getExactZones()- Returns:
- the list of zones that the GSC satisfies
- Since:
- 9.1.0
-