org.jvnet.hudson.ec2.launcher
Class Storage

java.lang.Object
  extended by org.jvnet.hudson.ec2.launcher.Storage

public class Storage
extends java.lang.Object

Author:
Kohsuke Kawaguchi

Field Summary
 java.lang.String name
          Name of this storage.
 java.util.List<java.lang.String> volumes
          EBS volumes IDs that are used as a single ZFS pool.
 
Constructor Summary
Storage(java.lang.String name, java.lang.String... volumes)
           
 
Method Summary
 java.util.List<java.lang.String> attach(com.xerox.amazonws.ec2.ReservationDescription.Instance inst, com.xerox.amazonws.ec2.Jec2 ec2)
          Attaches all the volumes, and returns the device names.
 java.lang.String getAvailabilityZone(com.xerox.amazonws.ec2.Jec2 ec2)
          Determines the availability zone that this storage set lives on.
 boolean isAllVolumesPresent(java.util.List<com.xerox.amazonws.ec2.VolumeInfo> infos)
          Does the specified list contain all the volumes needed by this Storage?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
Name of this storage.


volumes

public final java.util.List<java.lang.String> volumes
EBS volumes IDs that are used as a single ZFS pool.

Constructor Detail

Storage

public Storage(java.lang.String name,
               java.lang.String... volumes)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAvailabilityZone

public java.lang.String getAvailabilityZone(com.xerox.amazonws.ec2.Jec2 ec2)
                                     throws com.xerox.amazonws.ec2.EC2Exception,
                                            OperatorErrorException
Determines the availability zone that this storage set lives on. For instances to attach to this storage, it needs to run on this zone.

Throws:
com.xerox.amazonws.ec2.EC2Exception
OperatorErrorException

attach

public java.util.List<java.lang.String> attach(com.xerox.amazonws.ec2.ReservationDescription.Instance inst,
                                               com.xerox.amazonws.ec2.Jec2 ec2)
                                        throws com.xerox.amazonws.ec2.EC2Exception,
                                               OperatorErrorException,
                                               java.lang.InterruptedException
Attaches all the volumes, and returns the device names.

Throws:
com.xerox.amazonws.ec2.EC2Exception
OperatorErrorException
java.lang.InterruptedException

isAllVolumesPresent

public boolean isAllVolumesPresent(java.util.List<com.xerox.amazonws.ec2.VolumeInfo> infos)
Does the specified list contain all the volumes needed by this Storage?



Copyright © 2009. All Rights Reserved.