protected String getInjectScript() { String injectScript = null; boolean onWindows = isOnWindows(); if(onWindows) { injectScript = "scripts/vm/systemvm/injectkeys.py"; } else { injectScript = "scripts/vm/systemvm/injectkeys.sh"; } return injectScript; }
@Override protected Point creteInfluxDbPoint(Object metricsObject) { return createInfluxDbPointForHostMetrics(metricsObject); } }
@Override protected Point creteInfluxDbPoint(Object metricsObject) { return createInfluxDbPointForVmMetrics(metricsObject); } }
public ResourceTag.ResourceObjectType getResourceType() { return _taggedResourceService.getResourceType(resourceType); }
public static long getStorageCapacitybyPool(Long poolId, short capacityType) { // TODO: This method is for the API only, but it has configuration values (ramSize for system vms) // so if this Utils class can have some kind of config rather than a static initializer (maybe from // management server instantiation?) then maybe the management server method can be moved entirely // into this utils class. return s_ms.getMemoryOrCpuCapacityByHost(poolId, capacityType); }
public static StatsCollector getInstance(Map<String, String> configs) { s_instance.init(configs); return s_instance; }
public static StorageStats getStoragePoolStatistics(long id) { return s_statsCollector.getStoragePoolStats(id); }
public static String getVersion() { return s_ms.getVersion(); }
public static HostStats getHostStatistics(long hostId) { return s_statsCollector.getHostStats(hostId); }
public static VmStats getVmStatistics(long hostId) { return s_statsCollector.getVmStats(hostId); }
public static List<? extends ResourceTag> listByResourceTypeAndId(ResourceObjectType type, long resourceId) { return s_taggedResourceService.listByResourceTypeAndId(type, resourceId); }
public ConfigurationServerImpl() { setRunLevel(ComponentLifecycle.RUN_LEVEL_FRAMEWORK_BOOTSTRAP); }
public static StorageStats getSecondaryStorageStatistics(long id) { return s_statsCollector.getStorageStats(id); }
public static String getUuid(String resourceId, ResourceObjectType resourceType) { return s_taggedResourceService.getUuid(resourceId, resourceType); }
private String getMountParent() { return getEnvironmentProperty("mount.parent"); }
public static VolumeStats getVolumeStatistics(String volumeUuid) { return s_statsCollector.getVolumeStats(volumeUuid); }
public ResourceObjectType getResourceType() { return _taggedResourceService.getResourceType(resourceType); }
public ResourceTag.ResourceObjectType getResourceType() { return _taggedResourceService.getResourceType(resourceType); }
public ResourceObjectType getResourceType() { return _taggedResourceService.getResourceType(resourceType); }
public ResourceTag.ResourceObjectType getResourceType() { return _taggedResourceService.getResourceType(resourceType); }