diff options
author | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-12-18 17:30:57 +0100 |
---|---|---|
committer | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-12-18 17:42:09 +0100 |
commit | 377be9cc95ec9dfda8b733512d675a2e19a73486 (patch) | |
tree | a1cfb87212a094aa0b9fd9221f7d9081e327ff35 /zkfacade | |
parent | a488130319ebe8ac4b3dde3cd6a1131e114f3774 (diff) |
Enable abi-check-plugin on relevant modules.
Diffstat (limited to 'zkfacade')
-rw-r--r-- | zkfacade/abi-spec.json | 110 | ||||
-rw-r--r-- | zkfacade/pom.xml | 16 |
2 files changed, 126 insertions, 0 deletions
diff --git a/zkfacade/abi-spec.json b/zkfacade/abi-spec.json new file mode 100644 index 00000000000..5610fb2e9cf --- /dev/null +++ b/zkfacade/abi-spec.json @@ -0,0 +1,110 @@ +{ + "com.yahoo.vespa.curator.CompletionTimeoutException": { + "superClass": "java.lang.RuntimeException", + "interfaces": [], + "attributes": [ + "public" + ], + "methods": [ + "public void <init>(java.lang.String)" + ], + "fields": [] + }, + "com.yahoo.vespa.curator.Curator$CompletionWaiter": { + "superClass": "java.lang.Object", + "interfaces": [], + "attributes": [ + "public", + "interface", + "abstract" + ], + "methods": [ + "public abstract void awaitCompletion(java.time.Duration)", + "public abstract void notifyCompletion()" + ], + "fields": [] + }, + "com.yahoo.vespa.curator.Curator$DirectoryCache": { + "superClass": "java.lang.Object", + "interfaces": [], + "attributes": [ + "public", + "interface", + "abstract" + ], + "methods": [ + "public abstract void start()", + "public abstract void addListener(org.apache.curator.framework.recipes.cache.PathChildrenCacheListener)", + "public abstract java.util.List getCurrentData()", + "public abstract void close()" + ], + "fields": [] + }, + "com.yahoo.vespa.curator.Curator$FileCache": { + "superClass": "java.lang.Object", + "interfaces": [], + "attributes": [ + "public", + "interface", + "abstract" + ], + "methods": [ + "public abstract void start()", + "public abstract void addListener(org.apache.curator.framework.recipes.cache.NodeCacheListener)", + "public abstract org.apache.curator.framework.recipes.cache.ChildData getCurrentData()", + "public abstract void close()" + ], + "fields": [] + }, + "com.yahoo.vespa.curator.Curator": { + "superClass": "java.lang.Object", + "interfaces": [ + "java.lang.AutoCloseable" + ], + "attributes": [ + "public" + ], + "methods": [ + "public static com.yahoo.vespa.curator.Curator create(java.lang.String)", + "public void <init>(com.yahoo.cloud.config.ConfigserverConfig, com.yahoo.vespa.zookeeper.ZooKeeperServer)", + "protected void <init>(java.lang.String, java.lang.String, java.util.function.Function)", + "public java.lang.String connectionSpec()", + "public org.apache.curator.framework.recipes.atomic.DistributedAtomicLong createAtomicCounter(java.lang.String)", + "public org.apache.curator.framework.recipes.locks.InterProcessLock createMutex(java.lang.String)", + "public com.yahoo.vespa.curator.Curator$CompletionWaiter getCompletionWaiter(com.yahoo.path.Path, int, java.lang.String)", + "public com.yahoo.vespa.curator.Curator$CompletionWaiter createCompletionWaiter(com.yahoo.path.Path, java.lang.String, int, java.lang.String)", + "public com.yahoo.vespa.curator.Curator$DirectoryCache createDirectoryCache(java.lang.String, boolean, boolean, java.util.concurrent.ExecutorService)", + "public com.yahoo.vespa.curator.Curator$FileCache createFileCache(java.lang.String, boolean)", + "public boolean exists(com.yahoo.path.Path)", + "public void set(com.yahoo.path.Path, byte[])", + "public void create(com.yahoo.path.Path)", + "public varargs void createAtomically(com.yahoo.path.Path[])", + "public void delete(com.yahoo.path.Path)", + "public java.util.List getChildren(com.yahoo.path.Path)", + "public java.util.Optional getData(com.yahoo.path.Path)", + "public java.util.Optional getStat(com.yahoo.path.Path)", + "public org.apache.curator.framework.CuratorFramework framework()", + "public void close()", + "public java.lang.String zooKeeperEnsembleConnectionSpec()", + "public int zooKeeperEnsembleCount()" + ], + "fields": [ + "protected final org.apache.curator.RetryPolicy retryPolicy" + ] + }, + "com.yahoo.vespa.curator.Lock": { + "superClass": "java.lang.Object", + "interfaces": [ + "com.yahoo.transaction.Mutex" + ], + "attributes": [ + "public" + ], + "methods": [ + "public void <init>(java.lang.String, com.yahoo.vespa.curator.Curator)", + "public void acquire(java.time.Duration)", + "public void close()" + ], + "fields": [] + } +}
\ No newline at end of file diff --git a/zkfacade/pom.xml b/zkfacade/pom.xml index 0519ac2d14d..1a91f2b12cd 100644 --- a/zkfacade/pom.xml +++ b/zkfacade/pom.xml @@ -126,6 +126,22 @@ </execution> </executions> </plugin> + <plugin> + <groupId>com.yahoo.vespa</groupId> + <artifactId>abi-check-plugin</artifactId> + <version>${project.version}</version> + <configuration> + <publicApiAnnotation>com.yahoo.api.annotations.PublicApi</publicApiAnnotation> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>abicheck</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </project> |