org.jvnet.hudson.ec2.launcher
Class StorageList

java.lang.Object
  extended by org.jvnet.hudson.ec2.launcher.StorageList
All Implemented Interfaces:
java.lang.Iterable<Storage>

public class StorageList
extends java.lang.Object
implements java.lang.Iterable<Storage>

View of the Hudson storage list configured for the current account.

Author:
Kohsuke Kawaguchi

Constructor Summary
StorageList(java.lang.String accessId, java.lang.String secretKey)
           
 
Method Summary
 javax.swing.ListModel asListModel()
           
 Storage create(Launcher l, java.lang.String name, int sizeInGB)
          Creates a new storage.
 Storage get(java.lang.String name)
           
 java.util.Iterator<Storage> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageList

public StorageList(java.lang.String accessId,
                   java.lang.String secretKey)
            throws org.jets3t.service.S3ServiceException,
                   javax.xml.bind.JAXBException,
                   com.xerox.amazonws.ec2.EC2Exception
Throws:
org.jets3t.service.S3ServiceException
javax.xml.bind.JAXBException
com.xerox.amazonws.ec2.EC2Exception
Method Detail

iterator

public java.util.Iterator<Storage> iterator()
Specified by:
iterator in interface java.lang.Iterable<Storage>

size

public int size()

create

public Storage create(Launcher l,
                      java.lang.String name,
                      int sizeInGB)
               throws com.xerox.amazonws.ec2.EC2Exception,
                      javax.xml.bind.JAXBException,
                      org.jets3t.service.S3ServiceException
Creates a new storage.

Throws:
com.xerox.amazonws.ec2.EC2Exception
javax.xml.bind.JAXBException
org.jets3t.service.S3ServiceException

get

public Storage get(java.lang.String name)

asListModel

public javax.swing.ListModel asListModel()


Copyright © 2009. All Rights Reserved.