public interface GridServiceContainer extends AgentGridComponent, Iterable<ProcessingUnitInstance>, LogProviderGridComponent, DumpProvider, MetricProvider
ProcessingUnitInstance
s
allocated to it through the GridServiceManager
that manages it.Modifier and Type | Method and Description |
---|---|
void |
addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Adds a processing unit lifecycle listener to the container.
|
boolean |
contains(ProcessingUnitInstance processingUnitInstance)
Returns
true if the GSC contains the provided processing unit instance. |
ExactZonesConfig |
getExactZones() |
ProcessingUnitInstanceAddedEventManager |
getProcessingUnitInstanceAdded()
Returns an event manager allowing to register for processing unit instance additions to the container.
|
ProcessingUnitInstance |
getProcessingUnitInstanceByUID(String processingUnitInstanceUid)
Returns the processing unit instance that are currently deployed within the grid service container
according to its uid.
|
ProcessingUnitInstanceRemovedEventManager |
getProcessingUnitInstanceRemoved()
Returns an event manager allowing to register for processing unit instance removals from the container.
|
ProcessingUnitInstance[] |
getProcessingUnitInstances()
Returns the processing unit instances that are currently deployed within the grid service container.
|
ProcessingUnitInstance[] |
getProcessingUnitInstances(String processingUnitName)
Returns the processing unit instances of the specified name that are currently deployed within the grid service
container.
|
void |
removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
Removes a processing unit lifecycle listener to the container.
|
boolean |
waitFor(int numberOfProcessingUnitInstances)
Waits indefinitely for the given number of processing unit instances to run within the container.
|
boolean |
waitFor(int numberOfProcessingUnitInstances,
long timeout,
TimeUnit timeUnit)
Waits for timeout value (in time unit) for the given number of processing unit instances to run within the container.
|
boolean |
waitFor(String processingUnitName,
int numberOfProcessingUnitInstances)
Waits indefinitely for the given number of processing unit instances of the specified name to run within the container.
|
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.
|
getAgentId, getGridServiceAgent, kill, restart
forEach, iterator, spliterator
logEntries, logEntriesDirect
getUid
isDiscovered
getAdmin
getMachine
getTransport
getOperatingSystem
getVirtualMachine
generateDump, generateDump
reloadMetricConfiguration
boolean waitFor(int numberOfProcessingUnitInstances)
boolean waitFor(int numberOfProcessingUnitInstances, long timeout, TimeUnit timeUnit)
true
if the number was reached, false
if the timeout expired.boolean waitFor(String processingUnitName, int numberOfProcessingUnitInstances)
boolean waitFor(String processingUnitName, int numberOfProcessingUnitInstances, long timeout, TimeUnit timeUnit)
true
if the number was reached, false
if the
timeout expired.ProcessingUnitInstance[] getProcessingUnitInstances()
ProcessingUnitInstance[] getProcessingUnitInstances(String processingUnitName)
ProcessingUnitInstance getProcessingUnitInstanceByUID(String processingUnitInstanceUid)
boolean contains(ProcessingUnitInstance processingUnitInstance)
true
if the GSC contains the provided processing unit instance.ProcessingUnitInstanceAddedEventManager getProcessingUnitInstanceAdded()
ProcessingUnitInstanceRemovedEventManager getProcessingUnitInstanceRemoved()
void addProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
void removeProcessingUnitInstanceLifecycleEventListener(ProcessingUnitInstanceLifecycleEventListener eventListener)
ExactZonesConfig getExactZones()
ProcessingUnit#getRequiredContainerZones()}
Copyright © GigaSpaces.