*Java API用CLIツール [#h2f0f6c5]
Scalarisをコマンドラインツールから利用する方法について説明します。

*必要なソフトウェア [#lc4e51a8]
CLIツールではJavaのAPIを利用しており、antでビルドする必要があります。
以下のパッケージが必要になります。

-Java Development Kit 1.6
-Apache Ant

*ビルド [#pad5d192]

Scalarisのディレクトリで以下のコマンドを実行します。

 # make java

*設定ファイル [#a156919c]

java-apiディレクトリに、必要なファイルが用意されています。
設定ファイルとして、編集が必要なのは以下の2つです。

-scalaris.properties
-scalaris-java.conf

scalaris-java.confはデフォルトでは存在せず、scalaris-java.conf.sampleが用意されています。~
また保存場所としてはjava-apiディレクトリではなく、/etc/scalaris/scalaris-java.conf か ~/.scalaris/scalaris-java.confとして保存しておく必要があります。


scalaris.propertiesは以下のようになっています。

 # the name of the scalaris node to establish the connection to
 scalaris.node=boot@localhost
 
 # the cookie the scalaris node uses for connections
 scalaris.cookie=chocolate chip cookie
 
 # the name of the (Java) client to use when establishing a connection with erlang
 scalaris.client.name=java_client
 
 # specifies whether to append an UUID to client names or not
 scalaris.client.appendUUID=true

scalaris.node=boot@localhostの箇所を、利用するscalarisノードに変更する必要があります。


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS