Spring for Apache Hadoop

org.springframework.yarn.annotation
Annotation Type YarnEnvironment


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface YarnEnvironment

Annotation which indicates that a method parameter should be bound to an environment variable.

Author:
Janne Valkealahti

Optional Element Summary
 boolean required
          Whether the environment variable is required.
 java.lang.String value
          The name of the parameter to bind to.
 

value

public abstract java.lang.String value
The name of the parameter to bind to.

Default:
""

required

public abstract boolean required
Whether the environment variable is required.

Default is true, leading to an exception if the environment variable is missing. Switch this to false if you prefer a null in case of the environment variable missing.

Default:
true

Spring for Apache Hadoop