|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lastbamboo.common.amazon.ec2.AmazonEc2Utils
public class AmazonEc2Utils
Utility methods for Amazon EC2.
| Method Summary | |
|---|---|
static InetAddress |
getPublicAddress()
Accesses the public address for the EC2 instance. |
static boolean |
onEc2()
Returns whether or not we're running on EC2. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InetAddress getPublicAddress()
null if
there's an error accessing the address.public static boolean onEc2()
true if we're running on EC2, otherwise
false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||