Examples of Volume


Examples of com.abiquo.ssm.model.Volume

    @Override
    public Volume getVolume(final Device device, final Pool pool, final String uuid)
        throws PluginException
    {
        Volume volume = volumes.get(uuid);
        if (volume == null)
        {
            throw new PluginException(PluginError.RESOURCE_NOT_FOUND, "Unexisting volume");
        }
        return volume;
View Full Code Here

Examples of com.amazonaws.services.ec2.model.Volume

                    if (describeVolumesResult.getVolumes().isEmpty())
                    {
                        return;
                    }

                    Volume bootstrapVolume = describeVolumesResult.getVolumes().get(0);
                    List<VolumeAttachment> attachments = bootstrapVolume.getAttachments();
                    for (VolumeAttachment attachment : attachments)
                    {
                        if (!instanceId.equals(attachment.getInstanceId()))
                        {
                            continue;
View Full Code Here

Examples of com.cloud.storage.Volume

    private boolean checkIfMigrationRequired(Map<Volume, List<StoragePool>> volumePools) {
        boolean migratingToOtherStoragePool = false;
        Iterator<Volume> volumesIt = volumePools.keySet().iterator();
        while(volumesIt.hasNext()) {
            Volume vol = volumesIt.next();
            List<StoragePool> poolList = volumePools.get(vol);
            for (StoragePool pool : poolList) {
                // See if any volume requies migration to another storage pool
                if (pool.getId() != vol.getPoolId()) {
                    migratingToOtherStoragePool = true;
                }
            }
        }
        return migratingToOtherStoragePool;
View Full Code Here

Examples of com.cloud.storage.Volume

    @Override
    public SnapshotPolicyResponse createSnapshotPolicyResponse(SnapshotPolicy policy) {
        SnapshotPolicyResponse policyResponse = new SnapshotPolicyResponse();
        policyResponse.setId(policy.getUuid());
        Volume vol = ApiDBUtils.findVolumeById(policy.getVolumeId());
        if (vol != null) {
            policyResponse.setVolumeId(vol.getUuid());
        }
        policyResponse.setSchedule(policy.getSchedule());
        policyResponse.setIntervalType(policy.getInterval());
        policyResponse.setMaxSnaps(policy.getMaxSnaps());
        policyResponse.setTimezone(policy.getTimezone());
View Full Code Here

Examples of com.cloud.storage.Volume

    @Override
    public SnapshotScheduleResponse createSnapshotScheduleResponse(SnapshotSchedule snapshotSchedule) {
        SnapshotScheduleResponse response = new SnapshotScheduleResponse();
        response.setId(snapshotSchedule.getUuid());
        if (snapshotSchedule.getVolumeId() != null) {
            Volume vol = ApiDBUtils.findVolumeById(snapshotSchedule.getVolumeId());
            if (vol != null) {
                response.setVolumeId(vol.getUuid());
            }
        }
        if (snapshotSchedule.getPolicyId() != null) {
            SnapshotPolicy policy = ApiDBUtils.findSnapshotPolicyById(snapshotSchedule.getPolicyId());
            if (policy != null) {
View Full Code Here

Examples of com.cloud.storage.Volume

    public long getEntityOwnerId() {
        Long volumeId = getVolumeId();
        Long snapshotId = getSnapshotId();
        Long accountId = null;
        if (volumeId != null) {
            Volume volume = _entityMgr.findById(Volume.class, volumeId);
            if (volume != null) {
                accountId = volume.getAccountId();
            } else {
                throw new InvalidParameterValueException("Unable to find volume by id=" + volumeId);
            }
        } else {
            Snapshot snapshot = _entityMgr.findById(Snapshot.class, snapshotId);
View Full Code Here

Examples of com.github.junrar.Volume

      offset += retCode;
      count -= retCode;
      unpPackedSize -= retCode;
      archive.bytesReadRead(retCode);
      if (unpPackedSize == 0 && subHead.isSplitAfter()) {
        Volume nextVolume = archive.getVolumeManager().nextArchive(
            archive, archive.getVolume());
        if (nextVolume == null) {
          nextVolumeMissing = true;
          return -1;
        }
View Full Code Here

Examples of com.persistit.Volume

        for (String key : stores.keySet()) {
            PersistitKeyValueStore store = stores.remove(key);
            store.clear();
        }

        Volume volume;
        String[] treeNames;
        try {
            volume = db.getVolume(VOLUME_NAME);
            treeNames = volume.getTreeNames();
        } catch (PersistitException ex) {
            throw new PermanentStorageException(ex);

        }
View Full Code Here

Examples of com.stimulus.archiva.domain.Volume

      }
     public void deleteMessage(EmailID emailID) throws MessageSearchException {
        if (emailID == null)
                throw new MessageSearchException("assertion failure: null emailID",logger);
      logger.debug("delete message {'"+emailID+"'}");
      Volume volume = emailID.getVolume();
      File indexDir = new File(volume.getIndexPath());
      if (!indexDir.exists())
        throw new MessageSearchException("could not delete email from index. volume does not exist. {'"+emailID+"}",logger);
      synchronized(indexLock) {
        IndexReader indexReader = null;
        try {
View Full Code Here

Examples of com.tommytony.war.volume.Volume

  public Cake(String name, Warzone warzone, Location location) {
    this.name = name;
    this.location = location;
    this.warzone = warzone;
    this.volume = new Volume("cake-" + name, warzone.getWorld());
    this.setLocation(location);
  }
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.