Instance Constructors
-
new
EC2Region
(endpoint: String, location: String, defaultAMI: String)
Type Members
-
class
EC2Instance
extends RemoteMachine with RunitManager with Sudo with ServiceManager
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
val
accessKeyId
: String
-
def
activeInstances
: List[EC2Instance]
-
def
asInstanceOf
[T0]
: T0
-
val
client
: AmazonEC2Client
-
def
clone
(): AnyRef
-
val
config
: ClientConfiguration
-
val
credentials
: BasicAWSCredentials
-
val
defaultAMI
: String
-
def
ec2Cert
: File
-
def
ec2PrivateKey
: File
-
val
endpoint
: String
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
forceUpdate
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
getInstance
(instanceId: String): EC2Instance
-
def
hashCode
(): Int
-
def
importKeyPair
: Unit
-
var
instanceData
: Map[String, Instance]
-
val
instances
: HashMap[String, EC2Instance]
-
def
isInstanceOf
[T0]
: Boolean
-
var
keyName
: String
-
var
lastUpdate
: Long
-
val
location
: String
-
val
logger
: Logger
-
def
myInstances
: List[EC2Instance]
-
val
name
: String
-
val
nameRegEx
: Regex
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
openPorts
: Unit
-
-
def
runInstances
(imageId: String, min: Int, max: Int, keyName: String, instanceType: String, location: Option[String], userData: Option[String] = None): Seq[EC2Instance]
-
def
runInstances
(num: Int): Seq[EC2Instance]
-
val
secretAccessKey
: String
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
val
ubuntuRepo
: String
-
def
update
(): Unit
-
def
userID
: String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Provides methods for interacting with nodes in a given ec2 region. It caches all data received from the EC2 api and updates it only when accessing a volatile field (such as instanceState) or when an update is manually requested. Additionally, it will only make an update call to EC2 no more often than every 10 seconds. This means it is safe to make many concurrent calls to the static methods or instance methods of a specific EC2Instance concurrently from many threads with out fear of overloading amazons api.