public class GitFlowGraphMonitor extends GitMonitoringService
FlowGraph from a git repository.
The git repository must have an inital commit that has no files since that is used as a base for getting
the change list.
The DataNodes and FlowEdges in FlowGraph need to be organized with the following directory structure on git:
| Modifier and Type | Field and Description |
|---|---|
static String |
GIT_FLOWGRAPH_MONITOR_PREFIX |
isActive| Constructor and Description |
|---|
GitFlowGraphMonitor(com.typesafe.config.Config config,
com.google.common.base.Optional<? extends FSFlowTemplateCatalog> flowTemplateCatalog,
FlowGraph graph,
Map<URI,TopologySpec> topologySpecMap,
CountDownLatch initComplete) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChange(org.eclipse.jgit.diff.DiffEntry change)
|
void |
removeChange(org.eclipse.jgit.diff.DiffEntry change)
Remove an element (i.e.
|
boolean |
shouldPollGit()
Determine if the service should poll Git.
|
setActive, shutDown, startUppublic static final String GIT_FLOWGRAPH_MONITOR_PREFIX
public GitFlowGraphMonitor(com.typesafe.config.Config config,
com.google.common.base.Optional<? extends FSFlowTemplateCatalog> flowTemplateCatalog,
FlowGraph graph,
Map<URI,TopologySpec> topologySpecMap,
CountDownLatch initComplete)
public boolean shouldPollGit()
FlowGraph.shouldPollGit in class GitMonitoringServicepublic void addChange(org.eclipse.jgit.diff.DiffEntry change)
DataNode, or a FlowEdge to
the FlowGraph for an added, updated or modified node or edge file.addChange in class GitMonitoringServicechange - public void removeChange(org.eclipse.jgit.diff.DiffEntry change)
DataNode or a FlowEdge from the FlowGraph for
a renamed or deleted DataNode or FlowEdge file.removeChange in class GitMonitoringServicechange -