|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xerox.amazonws.ec2.EC2Utils
public class EC2Utils
This class provides helper methods to interact with the Amazon EC2 service.
| Constructor Summary | |
|---|---|
EC2Utils()
|
|
| Method Summary | |
|---|---|
static Map<String,String> |
decodeUserParams(String params)
This method decodes key/value pairs from a user-data string |
static String |
encodeUserParams(Map<String,String> params)
This method encodes key/value pairs into a user-data string |
static Map<String,String> |
getInstanceMetadata()
This method makes a best effort to fetch all instance metadata. |
static String |
getInstanceMetadata(String key)
This method makes a best effort to fetch a piece of instance metadata. |
static String |
getInstanceUserdata()
This method makes a best effort to fetch a piece of instance metadata. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EC2Utils()
| Method Detail |
|---|
public static Map<String,String> getInstanceMetadata()
public static String getInstanceMetadata(String key)
throws IOException
key - the name of the metadata to fetch
IOException
public static String getInstanceUserdata()
throws IOException
key - the name of the metadata to fetch
IOExceptionpublic static String encodeUserParams(Map<String,String> params)
public static Map<String,String> decodeUserParams(String params)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||