public abstract class SourceRunner extends Object implements LifecycleAware
Constructor and Description |
---|
SourceRunner() |
Modifier and Type | Method and Description |
---|---|
static SourceRunner |
forSource(Source source)
Static factory method to instantiate a source runner implementation that
corresponds to the type of
Source specified. |
Source |
getSource() |
void |
setSource(Source source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLifecycleState, start, stop
public static SourceRunner forSource(Source source)
Source
specified.source
- The source to runIllegalArgumentException
- if the specified source does not implement
a supported derived interface of SourceRunner
.public Source getSource()
public void setSource(Source source)
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.