Home

Awesome

apis-ccc

Introduction

apis-ccc is client software for uploading information that is related to energy sharing to external services such as a server and downloading node configuration files from a server for operation and maintenance. It constructs clusters by using the functions of the Vert.x and Hazelcast frameworks to obtain information from apis-main that is running on multiple nodes that are connected via Ethernet or other communication lines. From the Grid Master in the cluster, it then obtains information on the hardware of each node, software information related to apis-main, and node-specific information. In that way, information on any node can be obtained. apis-ccc also has a function for downloading configuration files upon request from apis-main.

キャプチャ

Installation

Here is how to install apis-ccc individually.
git, maven, groovy and JDK must be installed in advance.

$ git clone https://github.com/SonyCSL/apis-bom.git
$ cd apis-bom
$ mvn install
$ cd ../
$ git clone https://github.com/SonyCSL/apis-common.git
$ cd apis-common
$ mvn install
$ cd ../
$ git cone https://github.com/SonyCSL/apis-ccc.git
$ cd apis-ccc
$ mvn package

Running

Here is how to run apis-ccc individually.

$ cd exe
$ bash start.sh

Stopping

Here is how to stop apis-ccc individually.

$ cd exe
$ bash stop.sh

Parameter Setting

Set the following file parameters in the exe folder as necessary.
Refer to "Chapter 6, Configuration Files" in the apis-ccc_specification for more information.

 config.json
   - communityId  (default : oss_communityId)
   - clusterId  (default : oss_clusterId)

 cluster.xml
   - <member>  (default : 127.0.0.1)
   - <interface>  (default : 127.0.0.1)

 start.sh
   -conf   (default : ./config.json)
   -cluster-host   (default : 127.0.0.1)

<a id="anchor1"></a>

Documentation

apis-mian_ccc_specification(EN)
apis-mian_ccc_specification(JP)

API Specification

An example of creating an API specification using the Javadoc command is shown below.
(For Ubuntu18.04)

$ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/  
$ cd apis-ccc  
$ mvn javadoc:javadoc  

The API specification is created in apis-ccc/target/site/apidocs/.

License

Apache License Version 2.0

Notice

Notice