Examples of Disk


Examples of com.ardor3d.scenegraph.shape.Disk

        addMesh(new AxisRods("AxisRods", true, 3, 0.5));
        addMesh(new Box("Box", new Vector3(), 3, 3, 3));
        addMesh(new Capsule("Capsule", 5, 5, 5, 2, 5));
        addMesh(new Cone("Cone", 8, 8, 2, 4));
        addMesh(new Cylinder("Cylinder", 8, 8, 2, 4));
        addMesh(new Disk("Disk", 8, 8, 3));
        addMesh(new Dodecahedron("Dodecahedron", 3));
        addMesh(new Dome("Dome", 8, 8, 3));
        addMesh(new Hexagon("Hexagon", 3));
        addMesh(new Icosahedron("Icosahedron", 3));
        addMesh(new MultiFaceBox("MultiFaceBox", new Vector3(), 3, 3, 3));
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Disk

        rocketEntityNode.attachChild(rocket);
        _root.attachChild(rocketEntityNode);
    }

    private void addEngineSmoke() {
        final Disk emitDisc = new Disk("disc", 6, 6, 1.5f);
        emitDisc.setTranslation(new Vector3(0, 0, 2.5));
        emitDisc.getSceneHints().setCullHint(CullHint.Always);
        rocketEntityNode.attachChild(emitDisc);

        smoke = ParticleFactory.buildParticles("particles", 250);
        smoke.setEmissionDirection(new Vector3(0f, 0f, 1f));
        smoke.setMaximumAngle(0.0f);
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Disk

        addMesh(new AxisRods("AxisRods", true, 3, 0.5));
        addMesh(new Box("Box", new Vector3(), 3, 3, 3));
        addMesh(new Capsule("Capsule", 5, 5, 5, 2, 5));
        addMesh(new Cone("Cone", 8, 8, 2, 4));
        addMesh(new Cylinder("Cylinder", 8, 8, 2, 4));
        addMesh(new Disk("Disk", 8, 8, 3));
        addMesh(new Dodecahedron("Dodecahedron", 3));
        addMesh(new Dome("Dome", 8, 8, 3));
        addMesh(new Hexagon("Hexagon", 3));
        addMesh(new Icosahedron("Icosahedron", 3));
        addMesh(new MultiFaceBox("MultiFaceBox", new Vector3(), 3, 3, 3));
View Full Code Here

Examples of com.dianping.cat.consumer.heartbeat.model.entity.Disk

        for (Period period : m_periods) {
          int minute = period.getMinute();
          List<Disk> ds = period.getDisks();

          if (ds.size() > i) {
            Disk disk = ds.get(i);

            values[minute] = disk.getFree() * 1.0 / K / K / K;
          }
        }

        String path = disks.get(i).getPath();
        String graph = m_builder.build(new HeartbeatPayload(i,
View Full Code Here

Examples of com.dianping.cat.consumer.heartbeat.model.entity.Disk

      for (int i = 0; i < len; i++) {
        double[] values = new double[60];

        for (Period period : m_periods) {
          int minute = period.getMinute();
          Disk disk = period.getDisks().get(i);

          values[minute] = disk.getFree() * 1.0 / K / K / K;
        }
        result.add(values);
      }
    }
    return result;
View Full Code Here

Examples of com.dianping.cat.consumer.heartbeat.model.entity.Disk

      DiskInfo diskInfo = info.getDisk();

      if (diskInfo != null) {
        for (DiskVolumeInfo volumeInfo : diskInfo.getDiskVolumes()) {
          Disk disk = new Disk(volumeInfo.getId());

          disk.setTotal(volumeInfo.getTotal());
          disk.setFree(volumeInfo.getFree());
          disk.setUsable(volumeInfo.getUsable());
          period.addDisk(disk);
        }
      }

      for (Entry<String, Extension> entry : info.getExtensions().entrySet()) {
View Full Code Here

Examples of com.google.api.services.compute.model.Disk

            final int indexVolume = i;
            Future<Resource> submit = resourceBuilderExecutor.submit(new Callable<Resource>() {
                @Override
                public Resource call() throws Exception {
                    String value = name + "-" + indexVolume;
                    Disk disk = new Disk();
                    disk.setSizeGb(gccTemplate.getVolumeSize().longValue());
                    disk.setName(value);
                    disk.setKind(((GccTemplate) stack.getTemplate()).getGccRawDiskType().getUrl(po.getProjectId(), gccTemplate.getGccZone()));
                    Compute.Disks.Insert insDisk = po.getCompute().disks().insert(po.getProjectId(), gccTemplate.getGccZone().getValue(), disk);
                    insDisk.execute();
                    GccDiskReadyPollerObject gccDiskReady = new GccDiskReadyPollerObject(po.getCompute(), stack, value);
                    gccDiskReadyPollerObjectPollingService.pollWithTimeout(gccDiskCheckerStatus, gccDiskReady, POLLING_INTERVAL, MAX_POLLING_ATTEMPTS);
                    return new Resource(resourceType(), value, stack);
View Full Code Here

Examples of com.google.api.services.compute.model.Disk

    @Override
    public List<Resource> create(GccProvisionContextObject po, int index, List<Resource> resources) throws Exception {
        Stack stack = stackRepository.findById(po.getStackId());
        GccTemplate template = (GccTemplate) stack.getTemplate();
        String name = String.format("%s-%s", stack.getName(), index);
        Disk disk = new Disk();
        disk.setSizeGb(SIZE);
        disk.setName(name);
        disk.setKind(((GccTemplate) stack.getTemplate()).getGccRawDiskType().getUrl(po.getProjectId(), template.getGccZone()));
        Compute.Disks.Insert insDisk = po.getCompute().disks().insert(po.getProjectId(), template.getGccZone().getValue(), disk);
        insDisk.setSourceImage(GccImageType.DEBIAN_HACK.getAmbariUbuntu(po.getProjectId()));
        insDisk.execute();
        GccDiskReadyPollerObject gccDiskReady = new GccDiskReadyPollerObject(po.getCompute(), stack, name);
        gccDiskReadyPollerObjectPollingService.pollWithTimeout(gccDiskCheckerStatus, gccDiskReady, POLLING_INTERVAL, MAX_POLLING_ATTEMPTS);
View Full Code Here

Examples of com.vmware.aurora.composition.DiskSchema.Disk

             * system disk is special as it will be inherited from template node, so we
             * don't need to declare it in VmSchema
             */
            setTargetDs(disk.getTargetDs());
         } else {
            Disk tmDisk = new Disk();
            tmDisk.name = disk.getName();
            tmDisk.initialSizeMB = disk.getSize() * 1024;
            tmDisk.datastore = disk.getTargetDs();
            tmDisk.mode = DiskMode.independent_persistent;
            if (DiskScsiControllerType.LSI_CONTROLLER.equals(disk
View Full Code Here

Examples of com.vmware.aurora.composition.DiskSchema.Disk

      return diskSet;
   }

   @Test
   public void testGetVolumesByDiskSchema() {
      DiskSchema.Disk sysDisk = new Disk();
      sysDisk.type = "OS";
      sysDisk.externalAddress = "LSI0:0";
      DiskSchema.Disk swapDisk = new Disk();
      swapDisk.type = "SWAP";
      swapDisk.externalAddress = "LSI0:1";
      DiskSchema.Disk dataDisk0 = new Disk();
      dataDisk0.type = "DATA";
      dataDisk0.externalAddress = "PARA0:0";
      DiskSchema.Disk dataDisk1 = new Disk();
      dataDisk1.type = "DATA";
      dataDisk1.externalAddress = "PARA1:0";
      List<Disk> disks = new ArrayList<Disk>();
      disks.add(sysDisk);
      disks.add(swapDisk);
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.