Skip to content

Commit

Permalink
Rename GovernanceRepositoryAPI.watchPipeLineRootPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 21, 2023
1 parent ff98084 commit e9ebe05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
*/
public interface GovernanceRepositoryAPI {

/**
* Watch pipeLine root path.
*
* @param listener data changed event listener
*/
void watchPipeLineRootPath(DataChangedEventListener listener);

/**
* Whether job configuration existed.
*
Expand Down Expand Up @@ -146,13 +153,6 @@ public interface GovernanceRepositoryAPI {
*/
void deleteJob(String jobId);

/**
* Watch pipeLine root path.
*
* @param listener data changed event listener
*/
void watchPipeLineRootPath(DataChangedEventListener listener);

/**
* Persist data.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public final class GovernanceRepositoryAPIImpl implements GovernanceRepositoryAP

private final ClusterPersistRepository repository;

@Override
public void watchPipeLineRootPath(final DataChangedEventListener listener) {
repository.watch(PipelineNodePath.DATA_PIPELINE_ROOT, listener);
}

@Override
public boolean isJobConfigurationExisted(final String jobId) {
return null != repository.getDirectly(PipelineMetaDataNode.getJobConfigurationPath(jobId));
Expand Down Expand Up @@ -142,11 +147,6 @@ public void deleteJob(final String jobId) {
repository.delete(PipelineMetaDataNode.getJobRootPath(jobId));
}

@Override
public void watchPipeLineRootPath(final DataChangedEventListener listener) {
repository.watch(PipelineNodePath.DATA_PIPELINE_ROOT, listener);
}

@Override
public void persist(final String key, final String value) {
repository.persist(key, value);
Expand Down

0 comments on commit e9ebe05

Please sign in to comment.