Author: angelo.vandersijpt at luminis.eu
Date: Mon Jan 24 14:24:22 2011
New Revision: 693
Log:
AMDATU-273 Added basic metatype information to the Cassandra application.
Added:
trunk/amdatu-cassandra/cassandra-application/src/main/resources/OSGI-INF/
trunk/amdatu-cassandra/cassandra-application/src/main/resources/OSGI-INF/metatype/
trunk/amdatu-cassandra/cassandra-application/src/main/resources/OSGI-INF/metatype/metatype.xml
Added:
trunk/amdatu-cassandra/cassandra-application/src/main/resources/OSGI-INF/metatype/metatype.xml
==============================================================================
--- (empty file)
+++
trunk/amdatu-cassandra/cassandra-application/src/main/resources/OSGI-INF/metatype/metatype.xml
Mon Jan 24 14:24:22 2011
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metatype:MetaData xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.0.0">
+ <OCD id="org.amdatu.core.cassandra.application" name="Amdatu Cassandra
application">
+ <AD id="workdir" name="workdir" type="String" description="Root work
directory of Cassandra log and data files"/>
+ <AD id="commitlogdir" name="commitlogdir" type="String"
description="Directory to store Cassandra logfiles"/>
+ <AD id="datafiledir" name="datafiledir" type="String"
description="Directory in which the data files are stored"/>
+ <AD id="savedcachesdir" name="savedcachesdir" type="String"
description="Directory in which the caches are saved"/>
+ <AD id="clustername" name="clustername" type="String"
description="Name of the Cassandra cluster to join. If a seed is defined in the
'seeds' property that defines a different clustername, a clustername mismatch
error will be displayed and that seed will not become part of this cluster."/>
+ <AD id="seeds" name="seeds" type="String" description=" Comma
separated list of IP addresses of nodes in the cluster to connect to. Note that
does not need to be a full listing of all IP addresses of all nodes in the
cluster, it may be a subset of it. This property determines with what other
nodes in the cluster this node will synchronize its data. When cassandra is
executed in stand-alone mode, this value should be 127.0.0.1"/>
+ <AD id="listen_address" name="listen_address" type="String"
description="The IP address of this node that other cassandra nodes will use to
connect to. This IP address must thus be accessible from the other nodes in the
cluster (to be precise; those that provided this node as one of its seeds).
When cassandra is executed in stand-alone mode, this value should be
localhost"/>
+ <AD id="default_replication_factor" name="default_replication_factor"
type="String" description="The default replication factor of new keyspaces. The
replication factor determines the amount of nodes on which data is replicated.
So if default_replication_factor equals 1 and you have a two-node cluster, it
is very likely that you will get timeouts as it will try to read data only
stored on the other node (data is distributed among the two nodes). In case all
data should be available on all nodes in the cluster, which is necessary in
case the node should also be able to run stand-alone, the replication factor
should equal the number of nodes in the cluster. Note that upon the very first
boot of a node, the replication factor must be 1 as the replication factor may
never be higher then the amount of nodes in the cluster. Usually the
replication factor upon first boot is always 1, to be increased at runtime."/>
+ <AD id="consistency_level_read" name="consistency_level_read"
type="String" description="The read consistency level to apply. The read
consistencly level determines the amount of nodes in the cluster that must
reply on a request for providing the latest version of some row before the
result is returned. Note that if the read consistency level is ALL, all nodes
in the cluster are effectively down as soon as one node in the cluster goes
down, as cassandra will block until it received an answer from this
(unavailable) node before returning the result."/>
+ <AD id="consistency_level_write" name="consistency_level_write"
type="String" description="The write consistency level to apply. The write
consistencly level determines the amount of nodes in the cluster that should
have received the write request operation before the call is returned. Note
that if the write consistency level is ALL, all nodes in the cluster are
effectively down as soon as one node in the cluster goes down, as cassandra
will block each write operation until this (unavailable) node answered."/>
+ <AD id="autobootstrap" name="autobootstrap" type="String"
description="Auto bootstrap should be enabled for nodes that are newly added to
an existing Cassandra cluster. After that, autobootstrap must be set to false"/>
+ <AD id="initial_token" name="initial_token" type="String"
description="You may leave this field blank in case of a single node cluster.
However if you plan to later build a cluster including this first instance, it
is recommended to set the initial token?s value to zero. This simplifies load
balancing as you later expand the cluster."/>
+ <AD id="rpc_address" name="rpc_address" type="String" description="The
address to bind the Thrift RPC service to -- clients connect here. Usually this
is the same value as the listen_address. If you leave this blank that is
exactly what will happen, so it is recommended to leave this empty"/>
+ <AD id="rpc_port" name="rpc_port" type="String" description="port for
Thrift to listen for clients on"/>
+ </OCD>
+ <Designate pid="org.amdatu.core.cassandra.application">
+ <Object ocdref="org.amdatu.core.cassandra.application"/>
+ </Designate>
+</metatype:MetaData>
\ No newline at end of file