}
public AvailabilityType getAvailability() {
try {
LibVirtConnection virt = getConnection();
DomainState state = virt.getDomainInfo(domainName).domainInfo.state;
switch (state) {
case VIR_DOMAIN_RUNNING:
return AvailabilityType.UP;
case VIR_DOMAIN_PAUSED:
return AvailabilityType.UP;