Package org.apache.twill.internal

Examples of org.apache.twill.internal.DefaultTwillRunnableSpecification


      }
    }

    public final class AfterConfigs {
      public TwillRunnableSpecification build() {
        return new DefaultTwillRunnableSpecification(null, name, args);
      }
View Full Code Here


      }

      @Override
      public RuntimeSpecificationAdder add(String name, TwillRunnable runnable,
                                           final ResourceSpecification resourceSpec) {
        final TwillRunnableSpecification spec = new DefaultTwillRunnableSpecification(
                                            runnable.getClass().getName(), name, runnable.configure().getConfigs());
        return new RuntimeSpecificationAdder(new Function<Collection<LocalFile>, RunnableSetter>() {
          @Override
          public RunnableSetter apply(Collection<LocalFile> files) {
            runnables.put(spec.getName(), new DefaultRuntimeSpecification(spec.getName(), spec, resourceSpec, files));
            return RunnableSetter.this;
          }
        });
      }
View Full Code Here

    String className = jsonObj.get("classname").getAsString();
    String name = jsonObj.get("name").getAsString();
    Map<String, String> arguments = context.deserialize(jsonObj.get("arguments"),
                                                        new TypeToken<Map<String, String>>() { }.getType());

    return new DefaultTwillRunnableSpecification(className, name, arguments);
  }
View Full Code Here

TOP

Related Classes of org.apache.twill.internal.DefaultTwillRunnableSpecification

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.