orc
Class Config

java.lang.Object
  extended by orc.Config

public class Config
extends java.lang.Object

Class for processing configuration options. Such options could be provided via command line arguments or obtained though environment variables, and could also be read from other sources. Note that this class does not set up the runtime environment (for example, by instantiating site bindings or defining closures); it only collects the files that will provide those bindings.

Author:
dkitchin, quark

Constructor Summary
Config()
           
 
Method Summary
 void addInclude(java.lang.String include)
           
 java.lang.Boolean debugMode()
           
 java.util.List<java.lang.String> getIncludes()
           
 java.io.Reader getInstream()
           
 Node getTarget()
           
 java.lang.Integer maxPubs()
           
 void printUsage(boolean _)
           
 void processArgs(java.lang.String[] args)
           
 void processEnvVars()
           
 void setDebug(boolean debug)
           
 void setInputFile(java.io.File file)
           
 void setMaxpub(int maxpub)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Config

public Config()
Method Detail

processArgs

public void processArgs(java.lang.String[] args)

printUsage

public void printUsage(boolean _)
                throws org.kohsuke.args4j.CmdLineException
Throws:
org.kohsuke.args4j.CmdLineException

setDebug

public void setDebug(boolean debug)

addInclude

public void addInclude(java.lang.String include)

setMaxpub

public void setMaxpub(int maxpub)

setInputFile

public void setInputFile(java.io.File file)
                  throws org.kohsuke.args4j.CmdLineException
Throws:
org.kohsuke.args4j.CmdLineException

processEnvVars

public void processEnvVars()

getTarget

public Node getTarget()

debugMode

public java.lang.Boolean debugMode()

maxPubs

public java.lang.Integer maxPubs()

getInstream

public java.io.Reader getInstream()

getIncludes

public java.util.List<java.lang.String> getIncludes()