org.jvnet.hudson.ec2.launcher
Class StorageList
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.