@Alpha public class Orchestrator extends Object implements SpecCatalogListener, Instrumentable
SpecCatalogListener. It listens to changes
to TopologyCatalog and updates SpecCompiler state.SpecCatalogListener.AddSpecCallback, SpecCatalogListener.DeleteSpecCallback, SpecCatalogListener.UpdateSpecCallback| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
_log |
protected com.google.common.base.Optional<DagManager> |
dagManager |
protected com.google.common.base.Optional<org.apache.gobblin.metrics.event.EventSubmitter> |
eventSubmitter |
protected org.apache.gobblin.metrics.MetricContext |
metricContext |
protected SpecCompiler |
specCompiler |
protected com.google.common.base.Optional<TopologyCatalog> |
topologyCatalog |
| Constructor and Description |
|---|
Orchestrator(com.typesafe.config.Config config) |
Orchestrator(com.typesafe.config.Config config,
org.slf4j.Logger log) |
Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog)
Constructor with no logging
|
Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog,
com.google.common.base.Optional<DagManager> dagManager,
org.slf4j.Logger log) |
Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog,
com.google.common.base.Optional<DagManager> dagManager,
com.google.common.base.Optional<org.slf4j.Logger> log) |
Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog,
com.google.common.base.Optional<DagManager> dagManager,
com.google.common.base.Optional<org.slf4j.Logger> log,
boolean instrumentationEnabled) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.gobblin.metrics.Tag<?>> |
generateTags(State state) |
org.apache.gobblin.metrics.MetricContext |
getMetricContext() |
SpecCompiler |
getSpecCompiler() |
boolean |
isInstrumentationEnabled() |
AddSpecResponse |
onAddSpec(Spec addedSpec) |
void |
onDeleteSpec(URI deletedSpecURI,
String deletedSpecVersion) |
void |
onDeleteSpec(URI deletedSpecURI,
String deletedSpecVersion,
Properties headers) |
void |
onUpdateSpec(Spec updatedSpec) |
void |
orchestrate(Spec spec) |
void |
remove(Spec spec,
Properties headers) |
void |
switchMetricContext(List<org.apache.gobblin.metrics.Tag<?>> tags) |
void |
switchMetricContext(org.apache.gobblin.metrics.MetricContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameprotected final org.slf4j.Logger _log
protected final SpecCompiler specCompiler
protected final com.google.common.base.Optional<TopologyCatalog> topologyCatalog
protected final com.google.common.base.Optional<DagManager> dagManager
protected final org.apache.gobblin.metrics.MetricContext metricContext
protected final com.google.common.base.Optional<org.apache.gobblin.metrics.event.EventSubmitter> eventSubmitter
public Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog,
com.google.common.base.Optional<DagManager> dagManager,
com.google.common.base.Optional<org.slf4j.Logger> log,
boolean instrumentationEnabled)
public Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog,
com.google.common.base.Optional<DagManager> dagManager,
com.google.common.base.Optional<org.slf4j.Logger> log)
public Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog,
com.google.common.base.Optional<DagManager> dagManager,
org.slf4j.Logger log)
public Orchestrator(com.typesafe.config.Config config,
org.slf4j.Logger log)
public Orchestrator(com.typesafe.config.Config config,
com.google.common.base.Optional<TopologyCatalog> topologyCatalog)
public Orchestrator(com.typesafe.config.Config config)
public SpecCompiler getSpecCompiler()
public AddSpecResponse onAddSpec(Spec addedSpec)
onAddSpec in interface SpecCatalogListenerpublic void onDeleteSpec(URI deletedSpecURI, String deletedSpecVersion, Properties headers)
onDeleteSpec in interface SpecCatalogListenerpublic void onUpdateSpec(Spec updatedSpec)
onUpdateSpec in interface SpecCatalogListenerpublic void remove(Spec spec, Properties headers) throws IOException
IOException@Nonnull public org.apache.gobblin.metrics.MetricContext getMetricContext()
getMetricContext in interface Instrumentablepublic boolean isInstrumentationEnabled()
isInstrumentationEnabled in interface Instrumentablepublic List<org.apache.gobblin.metrics.Tag<?>> generateTags(State state)
generateTags in interface Instrumentablepublic void switchMetricContext(List<org.apache.gobblin.metrics.Tag<?>> tags)
switchMetricContext in interface Instrumentablepublic void switchMetricContext(org.apache.gobblin.metrics.MetricContext context)
switchMetricContext in interface Instrumentable