public class Main extends Object
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Queries the command line options for an action to perform.
|
public static void main(String[] args)
> java -jar scalaris.jar --help
usage: scalaris [Options]
-h,--help print this message
-v,--verbose print verbose information,
e.g. the properties read
-lh,--localhost gets the local host's name as
known to Java (for debugging
purposes)
-b,--minibench <[ops]> <[tpn]> <[benchs]> run selected mini
benchmark(s) [1|...|18|all]
(default: all benchmarks, 500
operations, 10 threads per
Scalaris node)
-m,--monitor print monitoring information
-r,--read read an item
-w,--write write an item
--test-and-set atomic test and set, i.e.
write to if the
current value is
-d,--delete <[timeout]> delete an item (default
timeout: 2000ms)
WARNING: This function can
lead to inconsistent data
(e.g. deleted items can
re-appear). Also when
re-creating an item the
version before the delete can
re-appear.
-jmx,--jmxservice starts a service exposing
Scalaris monitoring values
via JMX
In order to override node and cookie to use for a connection, specify
the scalaris.node or scalaris.cookie system properties.
Their values will be used instead of the values defined in the config
file!args
- command line arguments