Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
GridServiceAgent.startGridServiceAndWait(GridServiceContainerOptions options)
Starts a
GridServiceContainer based on the provided options
and waits indefinitely until it is discovered by the admin, which is then returned. |
GridServiceContainer |
GridServiceAgent.startGridServiceAndWait(GridServiceContainerOptions options,
long timeout,
TimeUnit timeUnit)
Starts a
GridServiceContainer based on the provided options
and waits for the given timeout (in time unit) until it is discovered by the admin, which is
then returned. |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
GridServiceContainers.getContainerByUID(String uid)
Returns a container based on its uid.
|
GridServiceContainer[] |
GridServiceContainers.getContainers()
Returns all the currently discovered containers.
|
Modifier and Type | Method and Description |
---|---|
Map<String,GridServiceContainer> |
GridServiceContainers.getUids()
Returns a map of grid service container with the key as the uid.
|
Modifier and Type | Method and Description |
---|---|
void |
GridServiceContainerAddedEventListener.gridServiceContainerAdded(GridServiceContainer gridServiceContainer)
Called when a grid service container is added.
|
void |
GridServiceContainerRemovedEventListener.gridServiceContainerRemoved(GridServiceContainer gridServiceContainer)
Called when a grid service container is removed.
|
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
DefaultGridServiceAgent.startGridServiceAndWait(GridServiceContainerOptions options) |
GridServiceContainer |
DefaultGridServiceAgent.startGridServiceAndWait(GridServiceContainerOptions options,
long timeout,
TimeUnit timeUnit) |
Modifier and Type | Interface and Description |
---|---|
interface |
InternalGridServiceContainer |
Modifier and Type | Class and Description |
---|---|
class |
DefaultGridServiceContainer |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
DefaultGridServiceContainers.getContainerByUID(String uid) |
GridServiceContainer[] |
DefaultGridServiceContainers.getContainers() |
Modifier and Type | Method and Description |
---|---|
Map<String,GridServiceContainer> |
DefaultGridServiceContainers.getUids() |
Iterator<GridServiceContainer> |
DefaultGridServiceContainers.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
ClosureGridServiceContainerAddedEventListener.gridServiceContainerAdded(GridServiceContainer gridServiceContainer) |
void |
DefaultGridServiceContainerAddedEventManager.gridServiceContainerAdded(GridServiceContainer gridServiceContainer) |
void |
ClosureGridServiceContainerRemovedEventListener.gridServiceContainerRemoved(GridServiceContainer gridServiceContainer) |
void |
DefaultGridServiceContainerRemovedEventManager.gridServiceContainerRemoved(GridServiceContainer gridServiceContainer) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultGridServiceManager.relocate(ProcessingUnitInstance processingUnitInstance,
GridServiceContainer gridServiceContainer) |
void |
InternalGridServiceManager.relocate(ProcessingUnitInstance processingUnitInstance,
GridServiceContainer gridServiceContainer) |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
DefaultProcessingUnitInstance.getGridServiceContainer() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultProcessingUnitInstance.relocate(GridServiceContainer gridServiceContainerToRelocateTo) |
ProcessingUnitInstance |
DefaultProcessingUnitInstance.relocateAndWait(GridServiceContainer gridServiceContainerToRelocateTo) |
ProcessingUnitInstance |
DefaultProcessingUnitInstance.relocateAndWait(GridServiceContainer gridServiceContainerToRelocateTo,
long timeout,
TimeUnit timeUnit) |
void |
DefaultProcessingUnitInstance.setGridServiceContainer(GridServiceContainer gridServiceContainer) |
void |
InternalProcessingUnitInstance.setGridServiceContainer(GridServiceContainer gridServiceContainer) |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
DefaultVirtualMachine.getGridServiceContainer() |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
ProcessingUnitInstance.getGridServiceContainer()
Returns the
GridServiceContainer the processing unit is
running on. |
Modifier and Type | Method and Description |
---|---|
void |
ProcessingUnitInstance.relocate(GridServiceContainer gridServiceContainerToRelocateTo)
Relocates the instance to the provided
GridServiceContainer . |
ProcessingUnitInstance |
ProcessingUnitInstance.relocateAndWait(GridServiceContainer gridServiceContainerToRelocateTo)
Relocates the instance to the provided
GridServiceContainer . |
ProcessingUnitInstance |
ProcessingUnitInstance.relocateAndWait(GridServiceContainer gridServiceContainerToRelocateTo,
long timeout,
TimeUnit timeUnit)
Relocates the instance to the provided
GridServiceContainer . |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
ProcessingUnitInstanceProvisionFailure.getGridServiceContainer() |
GridServiceContainer |
ProcessingUnitInstanceProvisionStatusChangedEvent.getGridServiceContainer()
For
ProvisionStatus.ATTEMPT - returns the GridServiceContainer a processing
unit instance is instantiating on. |
Constructor and Description |
---|
ProcessingUnitInstanceProvisionStatusChangedEvent(ProcessingUnit processingUnit,
String processingUnitInstanceName,
ProvisionStatus previousStatus,
ProvisionStatus newStatus,
GridServiceContainer gridServiceContainer,
ProcessingUnitInstance processingUnitInstance,
ProcessingUnitInstanceProvisionFailure provisionFailure) |
Modifier and Type | Method and Description |
---|---|
void |
TestEventSampler.gridServiceContainerAdded(GridServiceContainer gridServiceContainer) |
void |
TestEventSampler.gridServiceContainerRemoved(GridServiceContainer gridServiceContainer) |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer |
VirtualMachine.getGridServiceContainer()
Returns the grid service container started within this virtual machine.
|
Modifier and Type | Method and Description |
---|---|
GridServiceContainer[] |
ContainersSlaEnforcementEndpoint.getContainers() |
Modifier and Type | Method and Description |
---|---|
static Collection<GridServiceContainer> |
ContainersSlaUtils.getContainersByZone(Admin admin,
String zone) |
static List<GridServiceContainer> |
ContainersSlaUtils.getContainersByZoneOnAgentUid(Admin admin,
String zone,
String agentUid) |
Modifier and Type | Method and Description |
---|---|
static long |
ContainersSlaUtils.getMemoryInMB(GridServiceContainer container) |
static String |
ContainersSlaUtils.gscsToString(GridServiceContainer[] containers) |
static boolean |
ContainersSlaUtils.isContainerMatchesZone(GridServiceContainer container,
String zone) |
Modifier and Type | Method and Description |
---|---|
static String |
ContainersSlaUtils.gscsToString(Collection<GridServiceContainer> containers) |
Constructor and Description |
---|
ContainerNotDiscoveredException(ProcessingUnit pu,
GridServiceContainer container) |
Constructor and Description |
---|
ContainersSlaEnforcementPendingProcessingUnitDeallocationException(ProcessingUnit pu,
Collection<GridServiceContainer> containers) |
Constructor and Description |
---|
NeedToWaitUntilAllGridServiceAgentsDiscoveredException(ProcessingUnit pu,
GridServiceContainer container) |
Modifier and Type | Method and Description |
---|---|
GridServiceContainer[] |
RebalancingSlaPolicy.getContainers() |
static GridServiceContainer[] |
RebalancingUtils.getContainersOnMachines(ProcessingUnit pu) |
GridServiceContainer[] |
FutureStatefulProcessingUnitInstance.getReplicaitonSourceContainers() |
static GridServiceContainer[] |
RebalancingUtils.getReplicationSourceContainers(ProcessingUnitInstance instance) |
GridServiceContainer |
FutureStatefulProcessingUnitInstance.getSourceContainer() |
GridServiceContainer |
FutureStatelessProcessingUnitInstance.getTargetContainer() |
GridServiceContainer |
FutureStatefulProcessingUnitInstance.getTargetContainer() |
Modifier and Type | Method and Description |
---|---|
static List<GridServiceContainer> |
RebalancingUtils.sortAllContainersByNumberOfInstancesAboveMinimum(ProcessingUnit pu,
GridServiceContainer[] approvedContainers)
Sorts all of the admin containers based on (number of instances from the specified pu - min
number of instances) If the container is not in the specified approved container list then
min=0, meaning it will get a higher weight in the sort.
|
Modifier and Type | Method and Description |
---|---|
static Machine[] |
RebalancingUtils.getMachinesHostingContainers(GridServiceContainer[] containers) |
static Set<ProcessingUnitInstance> |
RebalancingUtils.getOtherInstancesFromSamePartitionInContainer(GridServiceContainer container,
ProcessingUnitInstance instance) |
static int |
RebalancingUtils.getPlannedMaximumNumberOfInstancesForContainer(GridServiceContainer container,
GridServiceContainer[] approvedContainers,
ProcessingUnit pu) |
static int |
RebalancingUtils.getPlannedMaximumNumberOfInstancesForContainer(GridServiceContainer container,
GridServiceContainer[] approvedContainers,
ProcessingUnit pu) |
static int |
RebalancingUtils.getPlannedMinimumNumberOfInstancesForContainer(GridServiceContainer container,
GridServiceContainer[] approvedContainers,
ProcessingUnit pu) |
static int |
RebalancingUtils.getPlannedMinimumNumberOfInstancesForContainer(GridServiceContainer container,
GridServiceContainer[] approvedContainers,
ProcessingUnit pu) |
static boolean |
RebalancingUtils.isEvenlyDistributedAcrossContainers(ProcessingUnit pu,
GridServiceContainer[] containers) |
static boolean |
RebalancingUtils.isProcessingUnitIntact(ProcessingUnit pu,
GridServiceContainer[] containers) |
static boolean |
RebalancingUtils.isProcessingUnitPartitionIntact(ProcessingUnit pu,
int instanceId,
GridServiceContainer[] containers) |
void |
RebalancingSlaPolicy.setContainers(GridServiceContainer[] containers) |
static List<GridServiceContainer> |
RebalancingUtils.sortAllContainersByNumberOfInstancesAboveMinimum(ProcessingUnit pu,
GridServiceContainer[] approvedContainers)
Sorts all of the admin containers based on (number of instances from the specified pu - min
number of instances) If the container is not in the specified approved container list then
min=0, meaning it will get a higher weight in the sort.
|
Modifier and Type | Method and Description |
---|---|
static String |
RebalancingUtils.gscsToString(List<GridServiceContainer> containers) |
Constructor and Description |
---|
MaximumNumberOfConcurrentRelocationsReachedException(ProcessingUnit pu,
GridServiceContainer container) |
ProcessingUnitIsNotEvenlyDistributedAcrossContainersException(String context,
ProcessingUnit pu,
GridServiceContainer[] containers) |
ProcessingUnitIsNotEvenlyDistributedAcrossContainersException(String context,
ProcessingUnit pu,
GridServiceContainer[] containers,
AdminException e) |
RemovedContainerProcessingUnitDeploymentException(ProcessingUnit pu,
GridServiceContainer expectedContainer) |
RemovedContainerProcessingUnitDeploymentException(ProcessingUnitInstance instance,
GridServiceContainer expectedContainer) |
WrongContainerProcessingUnitRelocationException(ProcessingUnitInstance instance,
GridServiceContainer expectedContainer) |
Copyright © GigaSpaces.