public Show show(String id) { return new Show(id); } }
/** * @see com.att.cdp.zones.ComputeService#getHypervisor(java.lang.String) */ @Override public Hypervisor getHypervisor(String id) throws ZoneException { checkArg(id, "id"); connect(); Context context = getContext(); trackRequest(); RequestState.put(RequestState.HYPERVISOR, id); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { com.woorea.openstack.nova.model.Hypervisor hypervisor = nova.getClient().hypervisors().show(id).execute(); return new OpenStackHypervisor(context, hypervisor); } catch (OpenStackBaseException e) { ExceptionMapper.mapException(e); } return null; }
/** * @see com.att.cdp.zones.ComputeService#refreshHypervisorState(com.att.cdp.zones.model.Hypervisor) */ @Override public void refreshHypervisorState(Hypervisor hypervisor) throws ZoneException { checkArg(hypervisor, "hypervisor"); connect(); trackRequest(); RequestState.put(RequestState.HYPERVISOR, hypervisor); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { ((OpenStackHypervisor) hypervisor).mapHypervisorState(nova.getClient().hypervisors() .show(hypervisor.getId()).execute()); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex); } }
/** * @see com.att.cdp.zones.ComputeService#refreshHypervisorStatus(com.att.cdp.zones.model.Hypervisor) */ @Override public void refreshHypervisorStatus(Hypervisor hypervisor) throws ZoneException { checkArg(hypervisor, "hypervisor"); connect(); trackRequest(); RequestState.put(RequestState.HYPERVISOR, hypervisor); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { ((OpenStackHypervisor) hypervisor).mapHypervisorStatus(nova.getClient().hypervisors() .show(hypervisor.getId()).execute()); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex); } }