public class MachinesSlaUtils extends Object
Constructor and Description |
---|
MachinesSlaUtils() |
public static Set<Long> getChildProcessesIds(GridServiceAgent agent)
public static boolean isManagementRunningOnMachine(Machine machine)
public static List<GridServiceAgent> sortManagementFirst(Collection<GridServiceAgent> agents)
public static String agentToString(GridServiceAgent agent)
public static String gscToString(GridComponent container)
public static String machinesToString(Collection<GridServiceAgent> agents)
public static CapacityRequirements getMachineTotalCapacity(GridServiceAgent agent, AbstractMachinesSlaPolicy sla)
public static MachineCapacityRequirements getMachineCapacity(GridServiceAgent agent)
public static org.openspaces.core.internal.commons.math.fraction.Fraction convertCpuCoresFromDoubleToFraction(double cpu)
public static int getNumberOfChildContainersForProcessingUnit(GridServiceAgent agent, ProcessingUnit pu)
public static Collection<GridServiceAgent> convertAgentUidsToAgents(Iterable<String> agentUids, Admin admin)
IllegalStateException
- - if Agent with the specified uid has been removedpublic static Collection<GridServiceAgent> convertAgentUidsToAgentsIfDiscovered(Iterable<String> agentUids, Admin admin)
public static boolean isAgentConformsToMachineProvisioningConfig(GridServiceAgent agent, ElasticMachineProvisioningConfig machineProvisioningConfig)
agent
- - the agent to checkmachineProvisioningConfig
- public static long getMemoryInMB(CapacityRequirements capacity)
public static boolean isAgentAutoShutdownEnabled(GridServiceAgent agent)
public static Collection<GridServiceAgent> sortAndFilterAgents(GridServiceAgent[] agents, ElasticMachineProvisioningConfig machineProvisioningConfig, Log logger)
public static CapacityRequirements getReservedCapacity(AbstractMachinesSlaPolicy sla, GridServiceAgent agent)
public static String getAgentIpAddress(GridServiceAgent agent)
public static String agentsToString(Collection<GridServiceAgent> agents)
public static String reservationIdsToString(FutureGridServiceAgent[] futureAgents)
public static String failedAgentUidsToString(FutureGridServiceAgent[] futureAgents)
Copyright © GigaSpaces.