Examples of Quota


Examples of org.geowebcache.diskquota.storage.Quota

        checkNotNull(gridSetName, "GridSet name is null");
        if (!isDiskQuotaAvailable()) {
            return null;
        }

        final Quota quota = new Quota();

        TileSetVisitor visitor = new TileSetVisitor() {
            @Override
            public void visit(final TileSet tileSet, final QuotaStore store) {
                if (!gridSetName.equals(tileSet.getGridsetId())) {
                    return;
                }

                final String tileSetId = tileSet.getId();
                try {
                    Quota used = store.getUsedQuotaByTileSetId(tileSetId);
                    quota.add(used);
                } catch (InterruptedException e) {
                    log.fine(e.getMessage());
                    return;
                }
View Full Code Here

Examples of org.geowebcache.diskquota.storage.Quota

        if (layerQuotas == null) {
            return null;
        }
        for (LayerQuota lq : layerQuotas) {
            if (layerName.equals(lq.getLayer())) {
                return new Quota(lq.getQuota());
            }
        }
        return null;
    }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

      apiOption = api.getQuotaExtensionForZone(zone);
   }

   public void testGetQuotasForCurrentTenant() {
      if (apiOption.isPresent()) {
         Quota quota = apiOption.get().getByTenant(tenant);
         assertQuotasIsValid(quota);
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

      }
   }

   public void testGetDefaultQuotasForCurrentTenant() {
      if (apiOption.isPresent()) {
         Quota quota = apiOption.get().getDefaultsForTenant(tenant);
         assertQuotasIsValid(quota);
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

   }

   public void testUpdateQuotasOfCurrentTenantThenReset() {
      if (apiOption.isPresent()) {
         QuotaApi api = apiOption.get();
         Quota before = api.getByTenant(tenant);
         assertQuotasIsValid(before);

         Quota modified = before.toBuilder()
               .cores(before.getCores() - 1)
               .instances(before.getInstances() - 1)
               .metadataItems(before.getMetadatas() - 1)
               .ram(before.getRam() - 1)
               .volumes(before.getVolumes() - 1)
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

      apiOption = api.getQuotaExtensionForZone(zone);
   }

   public void testGetQuotasForCurrentTenant() {
      if (apiOption.isPresent()) {
         Quota quota = apiOption.get().getByTenant(tenant);
         assertQuotasIsValid(quota);
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

      }
   }

   public void testGetDefaultQuotasForCurrentTenant() {
      if (apiOption.isPresent()) {
         Quota quota = apiOption.get().getDefaultsForTenant(tenant);
         assertQuotasIsValid(quota);
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

   }

   public void testUpdateQuotasOfCurrentTenantThenReset() {
      if (apiOption.isPresent()) {
         QuotaApi api = apiOption.get();
         Quota before = api.getByTenant(tenant);
         assertQuotasIsValid(before);

         Quota modified = before.toBuilder()
               .cores(before.getCores() - 1)
               .instances(before.getInstances() - 1)
               .metadataItems(before.getMetadatas() - 1)
               .ram(before.getRam() - 1)
               .volumes(before.getVolumes() - 1)
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

      apiOption = api.getQuotaExtensionForZone(zone);
   }

   public void testGetQuotasForCurrentTenant() {
      if (apiOption.isPresent()) {
         Quota quota = apiOption.get().getByTenant(tenant);
         assertQuotasIsValid(quota);
      }
   }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Quota

      }
   }

   public void testGetDefaultQuotasForCurrentTenant() {
      if (apiOption.isPresent()) {
         Quota quota = apiOption.get().getDefaultsForTenant(tenant);
         assertQuotasIsValid(quota);
      }
   }
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.