Skip to content
README.md 1.34 KiB
Newer Older
박 진우's avatar
박 진우 committed
Ark CDC HTTP Client
==========================

Ark CDC HTTP Client project.
박 진우's avatar
박 진우 committed
Java HTTP Clinet library or Ark CDC HTTP API Java library.
박 진우's avatar
박 진우 committed

Building Instructions
---------------------

For building from source instructions please refer to BUILDING.txt.

Dependencies
------------

requires Java 1.7 compatible runtime.

박 진우's avatar
박 진우 committed
Getting Started
---------------

박 진우's avatar
박 진우 committed
<pre>
박 진우's avatar
박 진우 committed

    @Test
    public void test1() {

        ArkHttpApi api = new ArkHttpApi("http://172.16.0.172:50000");
        try {

            if (api.authentication("arkcdc", "dbsark")) {
                String peer = api.getPeer();
                System.out.println(peer);
            }

        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            try {
                api.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

박 진우's avatar
박 진우 committed
    }
박 진우's avatar
박 진우 committed

    @Test
    public void test2() {

        try (ArkHttpApi api = new ArkHttpApi("http://172.16.0.172:50000", "arkcdc", "dbsark")) {

            System.out.println(api.getPeer());

        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        }

박 진우's avatar
박 진우 committed
    }

박 진우's avatar
박 진우 committed
</pre>
박 진우's avatar
박 진우 committed

박 진우's avatar
박 진우 committed
Licensing
---------

Apache License 2.0. See the files called LICENSE.txt and NOTICE.txt for more information.

Contact
박 진우's avatar
박 진우 committed
-------

http://idatabank.com/