Package | Description |
---|---|
org.openspaces.admin.gsa |
Support for managing of Grid Service Agent(s) through the Admin API.
|
org.openspaces.admin.gsc |
Support for managing of Grid Service Container(s) through the Admin API.
|
org.openspaces.admin.gsc.events |
Support for managing of Grid Service Container events through the Admin API.
|
org.openspaces.admin.pu |
Support for managing of Processing Unit(s) through the Admin API.
|
org.openspaces.admin.pu.events |
Support for managing of Processing Unit events through the Admin API.
|
org.openspaces.admin.samples | |
org.openspaces.admin.vm |
Support for managing of Virtual Machine(s) through the Admin API.
|
org.openspaces.grid.gsm.containers | |
org.openspaces.grid.gsm.containers.exceptions | |
org.openspaces.grid.gsm.machines.exceptions | |
org.openspaces.grid.gsm.rebalancing | |
org.openspaces.grid.gsm.rebalancing.exceptions |
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 |
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 |
FutureStatefulProcessingUnitInstance.getTargetContainer() |
GridServiceContainer |
FutureStatelessProcessingUnitInstance.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.