Examples of Zone


Examples of org.jclouds.cloudstack.domain.Zone

      ZoneClient zoneClient = createMock(ZoneClient.class);
      AsyncJobClient jobClient = createMock(AsyncJobClient.class);
     
      SecurityGroup group = createMock(SecurityGroup.class);
     
      Zone zone = createMock(Zone.class);

      expect(zone.isSecurityGroupsEnabled()).andReturn(false);
     
      expect(client.getZoneClient()).andReturn(zoneClient);

      expect(zoneClient.getZone("zone-abc3")).andReturn(zone);
View Full Code Here

Examples of org.jclouds.dynect.v3.domain.Zone

      Job job = zoneApi().scheduleCreateWithContact(zoneFQDN, contact);
      checkNotNull(job, "unable to create zone %s", zoneFQDN);
      getAnonymousLogger().info("created zone: " + job);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      Zone zone = zoneApi().publish(zoneFQDN);
      checkNotNull(zone, "unable to publish zone %s", zoneFQDN);
      getAnonymousLogger().info("published zone: " + zone);
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.domain.Zone

   }


   @Test(groups = "live", dependsOnMethods = "testListZone")
   public void testGetZone() {
      Zone zone = api().get(this.zone.getName());
      assertNotNull(zone);
      assertZoneEquals(zone, this.zone);
   }
View Full Code Here

Examples of org.openhab.binding.digitalstrom.internal.client.entity.Zone

    if (jObject.get(JSONApiResponseKeysEnum.APARTMENT_GET_STRUCTURE_ZONES.getKey()) instanceof JSONArray) {
      JSONArray zones = (JSONArray) jObject.get(JSONApiResponseKeysEnum.APARTMENT_GET_STRUCTURE_ZONES.getKey());
     
      for (int i=0; i< zones.size(); i++) {
        if (zones.get(i) instanceof org.json.simple.JSONObject) {
          Zone zone = new JSONZoneImpl((JSONObject)zones.get(i));
          zoneMap.put(zone.getZoneId(), zone);
        }
      }
    }
  }
View Full Code Here

Examples of org.openhab.binding.dscalarm.internal.model.Zone

          }
          break;
        case ZONE:
          partitionId = config.getPartitionId();
          zoneId = config.getZoneId();
          Zone zone = zoneMap.get(zoneId);
          if(zone == null) {
            zone = new Zone(partitionId, zoneId);
            zoneMap.put(zoneId, zone);
          }
         
          if(event != null) {
            zone.handleEvent(item, config, eventPublisher, event);
          }
          else {
            zone.refreshItem(item, config, eventPublisher);
          }
          break;
        case KEYPAD:
          Keypad keypad = null;
         
View Full Code Here

Examples of org.openhab.binding.omnilink.internal.model.Zone

      Area area = areaMap.get(number);
      area.getProperties().updateArea((AreaStatus) status);
      updateItemsForDevice(area);
    } else if (status instanceof ZoneStatus && zoneMap.containsKey(number)) {
      logger.debug("Updating zone " + number);
      Zone zone = zoneMap.get(number);
      zone.getProperties().updateZone((ZoneStatus) status);
      updateItemsForDevice(zone);
    }
  }
View Full Code Here

Examples of org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConfig.Zone

          + "' of type '" + command.getClass().getSimpleName()
          + "' for item '" + itemName + "'");
    }

    try {
      Zone zone = config.getZone();
      BindingType type = config.getBindingType();
      if (type == BindingType.power) {
        if (command instanceof OnOffType) {
          proxy.setPower(zone, command == OnOffType.ON);
        }
View Full Code Here

Examples of org.xbill.DNS.Zone

        log.warn("Unable to transfer zone " + this.secondaryZone.getZoneName() + " from server " + this.secondaryZone.getRemoteServerAddress() + ", response is not a valid AXFR!");

        return;
      }

      Zone axfrZone = new Zone(this.secondaryZone.getZoneName(),records.toArray(new Record[records.size()]));

      log.debug("Zone " + this.secondaryZone.getZoneName() + " successfully transfered from server " + this.secondaryZone.getRemoteServerAddress());

      if(!axfrZone.getSOA().getName().equals(this.secondaryZone.getZoneName())){

        log.warn("Invalid AXFR zone name in response when updating secondary zone " + this.secondaryZone.getZoneName() + ". Got zone name " + axfrZone.getSOA().getName() + " in respons.");
      }

      if(this.secondaryZone.getZoneCopy() == null || this.secondaryZone.getZoneCopy().getSOA().getSerial() != axfrZone.getSOA().getSerial()){

        this.secondaryZone.setZoneCopy(axfrZone);
        this.secondaryZone.setDownloaded(new Timestamp(System.currentTimeMillis()));
        this.zoneProvider.zoneUpdated(this.secondaryZone);

        log.info("Zone " + this.secondaryZone.getZoneName() + " successfully updated from server " + this.secondaryZone.getRemoteServerAddress());
      }else{

        log.info("Zone " + this.secondaryZone.getZoneName() + " is already up to date with serial " + axfrZone.getSOA().getSerial());
        this.zoneProvider.zoneChecked(secondaryZone);
      }

    } catch (IOException e) {
View Full Code Here

Examples of org.xbill.DNS.Zone

    TSIGs.put(name, new TSIG(algstr, namestr, key));
  }

  private Zone findBestZone(Name name) {

    Zone foundzone = getZone(name);

    if (foundzone != null) {
      return foundzone;
    }
View Full Code Here

Examples of org.xbill.DNS.Zone

    return null;
  }

  private RRset findExactMatch(Name name, int type, int dclass, boolean glue) {
    Zone zone = findBestZone(name);

    if (zone != null) {
      return zone.findExactMatch(name, type);
    }

    return null;
  }
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.