org.lastbamboo.common.amazon.ec2
Class AmazonEc2CandidateProvider
java.lang.Object
org.lastbamboo.common.amazon.ec2.AmazonEc2CandidateProvider
- All Implemented Interfaces:
- org.littleshoot.util.CandidateProvider<InetAddress>
public class AmazonEc2CandidateProvider
- extends Object
- implements org.littleshoot.util.CandidateProvider<InetAddress>
Class for accessing addresses of our EC2 servers.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmazonEc2CandidateProvider
public AmazonEc2CandidateProvider(String accessKeyId,
String accessKey)
- Creates a new
AmazonEc2CandidateProvider instance using the
specified Amazon access key and access key ID.
- Parameters:
accessKeyId - The access key ID.accessKey - The access key.
getInstanceAddresses
public Collection<InetAddress> getInstanceAddresses(String groupId)
- Returns the
InetSocketAddresses of the instances with the
specified group ID.
- Parameters:
groupId - The group ID of the instances to look for.
- Returns:
- A
Collection of InetAddresses of all
instances matching the specified group ID.
getCandidate
public InetAddress getCandidate()
- Specified by:
getCandidate in interface org.littleshoot.util.CandidateProvider<InetAddress>
getCandidates
public Collection<InetAddress> getCandidates()
- Specified by:
getCandidates in interface org.littleshoot.util.CandidateProvider<InetAddress>
Copyright © 2013 LittleShoot. All Rights Reserved.