public class YamlNode extends Object
id: cluster-1 name: cluster-1 description: xyz hostname: cluster-1.mydomain.com location_id: virginia os_arch: x86 os_family: linux os_description: redhat os_version: 5.3 os_64bit: 5.3 login_port: 2022 group: hadoop tags: - vanilla metadata: key1: val1 username: kelvin credential: password_or_rsa or credential_url: password_or_rsa_file ex. resource:///id_rsa will get the classpath /id_rsa; file://path/to/id_rsa sudo_password: password
Modifier and Type | Field and Description |
---|---|
String |
credential |
String |
credential_url |
String |
description |
String |
group |
String |
hostname |
String |
id |
static com.google.common.base.Function<InputStream,YamlNode> |
inputStreamToYamlNode |
String |
location_id |
int |
login_port |
Map<String,String> |
metadata |
String |
name |
static com.google.common.base.Function<Node,YamlNode> |
nodeToYamlNode |
boolean |
os_64bit |
String |
os_arch |
String |
os_description |
String |
os_family |
String |
os_version |
String |
sudo_password |
List<String> |
tags |
static com.google.common.base.Function<YamlNode,Node> |
toNode |
String |
username |
static com.google.common.base.Function<YamlNode,InputStream> |
yamlNodeToInputStream |
Constructor and Description |
---|
YamlNode() |
Modifier and Type | Method and Description |
---|---|
static YamlNode |
fromNode(Node in) |
static YamlNode |
fromYaml(InputStream in) |
Node |
toNode() |
InputStream |
toYaml() |
public String id
public String name
public String description
public String hostname
public String location_id
public String os_arch
public String os_family
public String os_description
public String os_version
public int login_port
public boolean os_64bit
public String group
public String username
public String credential
public String credential_url
public String sudo_password
public static com.google.common.base.Function<InputStream,YamlNode> inputStreamToYamlNode
public static com.google.common.base.Function<YamlNode,InputStream> yamlNodeToInputStream
public Node toNode()
public static YamlNode fromYaml(InputStream in)
public InputStream toYaml()
Copyright © 2009-2012 jclouds. All Rights Reserved.