<commit_before># distributedrmi

![status](https://travis-ci.org/erwinvaneyk/distributedrmi.svg)


Example:
```java
// Setup cluster
Node node1 = NodeImpl.startCluster(1819, "test-cluster");
Node node2 = NodeImpl.connectToCluster(1820, node1.getState().getAddress());

// Setup logger printing to the terminal
LogNode logNode1 = LogNode.connectToCluster(1821, node1.getState().getAddress());
logNode1.setLogger(new PrintLogger());

// Create a Connector; needed for sending messages
Connector connector = new ConnectorImpl(node1);
Message message = new LogMessage("Test message", node1.getState().getAddress());
connector.log(message);

// Shutdown cluster (it does not matter in what order the nodes are shutdown)
node1.disconnect();
node2.disconnect();
```
Note: In this case the nodes are still running from a common thread.<commit_msg>Updated README with installation and usage instructions<commit_after># distributedrmi

![status](https://travis-ci.org/erwinvaneyk/distributedrmi.svg)

Installation:
To use it in your project add the following to your `pom.xml`:

```xml
<repositories>
	<repository>
		<id>distributedrmi-mvn-repo</id>
		<url>https://raw.github.com/erwinvaneyk/distributedrmi/mvn-repo/</url>
		<snapshots>
			<enabled>true</enabled>
			<updatePolicy>always</updatePolicy>
		</snapshots>
	</repository>
</repositories>

<dependency>
  <groupId>nl.erwinvaneyk</groupId>
  <artifactId>distributedrmi</artifactId>
  <version>1.0.2</version>
</dependency>
```

Example:
```java
// Setup cluster
ClusterFactory cf = ClusterFactory.getBasicFactory();
Node node1 = cf.startCluster(1819, "test-cluster");
Node node2 = cf.connectToCluster(1820, node1.getState().getAddress());

// Setup logger printing to the terminal
LogNode logNode1 = LogNode.connectToCluster(1821, node1.getState().getAddress());
logNode1.setLogger(new PrintLogger());

// Create a Connector; needed for sending messages
Connector connector = new ConnectorImpl(node1);
Message message = new LogMessage("Test message", node1.getState().getAddress());
connector.log(message);

// Shutdown cluster (it does not matter in what order the nodes are shutdown)
node1.disconnect();
node2.disconnect();
logNode1.disconnect();
```
Note: In this case the nodes are still running from a common thread.
{'fraction_non_alphanumeric': 0.13215859030837004, 'fraction_numerical': 0.021145374449339206, 'mean_word_length': 5.881818181818182, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5637782', 'n_tokens_mistral': 731, 'n_tokens_neox': 686, 'n_words': 184}