org.apache.whirr.service.jclouds
Class StatementBuilder

java.lang.Object
  extended by org.apache.whirr.service.jclouds.StatementBuilder

public class StatementBuilder
extends Object


Field Summary
protected  Map<String,String> exports
           
protected  Map<String,Map<String,String>> exportsByInstanceId
           
protected  List<org.jclouds.scriptbuilder.domain.Statement> initStatements
           
protected  String name
           
protected  List<org.jclouds.scriptbuilder.domain.Statement> statements
           
 
Constructor Summary
StatementBuilder()
           
 
Method Summary
 StatementBuilder addExport(String key, String value)
           
 StatementBuilder addExportPerInstance(String instanceId, String key, String value)
           
 StatementBuilder addStatement(int pos, org.jclouds.scriptbuilder.domain.Statement statement)
           
 StatementBuilder addStatement(org.jclouds.scriptbuilder.domain.Statement statement)
           
 StatementBuilder addStatements(org.jclouds.scriptbuilder.domain.Statement... statements)
           
 org.jclouds.scriptbuilder.domain.Statement build(ClusterSpec clusterSpec)
           
 org.jclouds.scriptbuilder.domain.Statement build(ClusterSpec clusterSpec, Cluster.Instance instance)
           
 boolean isEmpty()
           
 StatementBuilder name(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

initStatements

protected List<org.jclouds.scriptbuilder.domain.Statement> initStatements

statements

protected List<org.jclouds.scriptbuilder.domain.Statement> statements

exports

protected Map<String,String> exports

exportsByInstanceId

protected Map<String,Map<String,String>> exportsByInstanceId
Constructor Detail

StatementBuilder

public StatementBuilder()
Method Detail

addStatement

public StatementBuilder addStatement(org.jclouds.scriptbuilder.domain.Statement statement)

addStatement

public StatementBuilder addStatement(int pos,
                                     org.jclouds.scriptbuilder.domain.Statement statement)

addStatements

public StatementBuilder addStatements(org.jclouds.scriptbuilder.domain.Statement... statements)

name

public StatementBuilder name(String name)

addExport

public StatementBuilder addExport(String key,
                                  String value)

addExportPerInstance

public StatementBuilder addExportPerInstance(String instanceId,
                                             String key,
                                             String value)

isEmpty

public boolean isEmpty()

build

public org.jclouds.scriptbuilder.domain.Statement build(ClusterSpec clusterSpec)

build

public org.jclouds.scriptbuilder.domain.Statement build(ClusterSpec clusterSpec,
                                                        Cluster.Instance instance)
Parameters:
clusterSpec -
instance -
Returns:


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.