Examples of HostEvent


Examples of com.vmware.vim.binding.vim.event.HostEvent

      return false;
   }

   private void processHostEvent(VcEventType type, Event e) throws Exception {
      logger.info("Received host event " + e);
      HostEvent he = (HostEvent) e;
      String hostName = he.getHost().getName();
      List<NodeEntity> nodes = clusterEntityMgr.getNodesByHost(hostName);
      switch (type) {
      case HostConnected:
      case EnteredMaintenanceMode:
      case ExitMaintenanceMode:
      case HostDisconnected: {
         Thread.sleep(2000);
         VcHost host = VcCache.getIgnoreMissing(he.getHost().getHost());
         host.update();
         for (NodeEntity node : nodes) {
            String moId = node.getMoId();
            if (moId == null) {
               continue;
View Full Code Here

Examples of com.vmware.vim.binding.vim.event.HostEvent

      @Override
      public String getPrimaryKey() {

         if (event instanceof HostEvent) {
            HostEvent he = (HostEvent) event;
            return MoUtil.morefToString(event.getHost().getHost());
         }
         AuAssert.check(event instanceof VmEvent || event instanceof EventEx);
         return MoUtil.morefToString(event.getVm().getVm());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.