GigaSpaces XAP 9.7.2 API

org.openspaces.grid.gsm.containers
Class ContainersSlaUtils

java.lang.Object
  extended by org.openspaces.grid.gsm.containers.ContainersSlaUtils

public class ContainersSlaUtils
extends Object


Constructor Summary
ContainersSlaUtils()
           
 
Method Summary
static ProcessingUnit findProcessingUnitWithSameName(Set<ProcessingUnit> processingUnits, ProcessingUnit pu)
           
static ProcessingUnit findProcessingUnitWithSameZone(Set<ProcessingUnit> processingUnits, ProcessingUnit pu)
           
static String getCommandLineArgumentRemovePrefix(VirtualMachineAware container, String prefix)
           
static Collection<GridServiceContainer> getContainersByZone(Admin admin, String zone)
           
static List<GridServiceContainer> getContainersByZoneOnAgentUid(Admin admin, String zone, String agentUid)
           
static String getContainerZone(ProcessingUnit pu)
           
static long getMemoryInMB(GridServiceContainer container)
           
static String gscsToString(Collection<GridServiceContainer> containers)
           
static String gscsToString(GridServiceContainer[] containers)
           
static String gscToString(GridComponent container)
           
static boolean isContainerMatchesZone(GridServiceContainer container, String zone)
           
static String machineToString(Machine machine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainersSlaUtils

public ContainersSlaUtils()
Method Detail

getContainersByZone

public static Collection<GridServiceContainer> getContainersByZone(Admin admin,
                                                                   String zone)

getContainersByZoneOnAgentUid

public static List<GridServiceContainer> getContainersByZoneOnAgentUid(Admin admin,
                                                                       String zone,
                                                                       String agentUid)

isContainerMatchesZone

public static boolean isContainerMatchesZone(GridServiceContainer container,
                                             String zone)

getMemoryInMB

public static long getMemoryInMB(GridServiceContainer container)

getCommandLineArgumentRemovePrefix

public static String getCommandLineArgumentRemovePrefix(VirtualMachineAware container,
                                                        String prefix)

getContainerZone

public static String getContainerZone(ProcessingUnit pu)

findProcessingUnitWithSameZone

public static ProcessingUnit findProcessingUnitWithSameZone(Set<ProcessingUnit> processingUnits,
                                                            ProcessingUnit pu)

findProcessingUnitWithSameName

public static ProcessingUnit findProcessingUnitWithSameName(Set<ProcessingUnit> processingUnits,
                                                            ProcessingUnit pu)

machineToString

public static String machineToString(Machine machine)

gscToString

public static String gscToString(GridComponent container)

gscsToString

public static String gscsToString(GridServiceContainer[] containers)

gscsToString

public static String gscsToString(Collection<GridServiceContainer> containers)

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.