clisson-client


License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.bimbr
ArtifactId

ArtifactId

clisson-client
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

clisson-client
clisson-client
Project URL

Project URL

https://github.com/mmakowski/clisson-client
Project Organization

Project Organization

com.bimbr

Download clisson-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.bimbr/clisson-client/ -->
<dependency>
    <groupId>com.bimbr</groupId>
    <artifactId>clisson-client</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.bimbr/clisson-client/
implementation 'com.bimbr:clisson-client:0.3.0'
// https://jarcasting.com/artifacts/com.bimbr/clisson-client/
implementation ("com.bimbr:clisson-client:0.3.0")
'com.bimbr:clisson-client:jar:0.3.0'
<dependency org="com.bimbr" name="clisson-client" rev="0.3.0">
  <artifact name="clisson-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.bimbr', module='clisson-client', version='0.3.0')
)
libraryDependencies += "com.bimbr" % "clisson-client" % "0.3.0"
[com.bimbr/clisson-client "0.3.0"]

Dependencies

compile (4)

Group / Artifact Type Version
com.bimbr : clisson-protocol jar 0.1.0
log4j : log4j jar 1.2.16
org.apache.httpcomponents : httpclient jar 4.1.3
org.slf4j : slf4j-api jar 1.6.4

test (4)

Group / Artifact Type Version
junit : junit jar 4.10
org.mockito : mockito-all jar 1.9.0
org.mortbay.jetty : jetty jar 6.1.25
org.specs2 : specs2_2.9.1 jar 1.8.2

Project Modules

There are no modules declared in this project.

Clisson Client

Clisson is an event database for message processing systems. Clisson Client is a Java library used for recording events.

Adding dependency

In your Maven/SBT/ivy/whatever file add the following dependency:

  • group: com.bimbr
  • artifactId: clisson-client
  • version: 0.3.0

Configuration

The config is specified in a properties file pointed to by clisson.config system property. If the property is not specified the config is loaded from classpath://clisson.properties file. The path to the config file must be prefixed with protocol, classpath:// or file://that determines how the file is searched for. Examples of paths:

  • classpath://conf/clisson-test.properties
  • file://c:/myapp/conf/clisson.properties

The config file must contain the following properties:

  • clisson.componentId - the component id that will appear against events logged from this app
  • clisson.server.host - the host name of Clisson server
  • clisson.server.port - the port on which Clisson server listens

The config file may also contain:

  • clisson.record.enabled - whether sending of events to the server is enabled (default: true)

If config file is not found, the application will run with event recording disabled.

Usage

In classes where you'd like events recorded, first construct an instance of Recorder:

final Recorder record = RecorderFactory.getRecorder();

and use it to record events:

record.checkpoint("msg001", "received!");

See the javadoc of Recorder for other methods of recording events.

Versions

Version
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0