mirror of https://github.com/apache/nifi.git
NIFI-290: applying patch from Ricky Saltzer
This commit is contained in:
parent
8a9960e4e7
commit
f9cfbae643
|
@ -67,6 +67,26 @@
|
|||
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
Below is an example of how to create a client connection to your distributed map cache server.
|
||||
Note that the identifier in this example is <code>cache-client</code>. If you are using this template
|
||||
to create your own MapCacheClient service, replace the values in this template with values that are
|
||||
suitable for your system. Possible options for <code>Server Hostname</code>, <code>Server Port</code>,
|
||||
<code>Communications Timeout</code>, and <span style="font-style: italic;">SSL Context Service</span>.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<services>
|
||||
<service>
|
||||
<identifier>cache-client</identifier>
|
||||
<class>org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService</class>
|
||||
<property name="Server Hostname">localhost</property>
|
||||
<property name="Server Port">4557</property>
|
||||
<property name="Communications Timeout">30 secs</property>
|
||||
</service>
|
||||
</services>
|
||||
</pre>
|
||||
|
||||
<i>See Also:</i>
|
||||
<ul>
|
||||
|
|
|
@ -71,6 +71,27 @@
|
|||
</ul></li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
Below is an example of how to create a distributed map cache server for clients to connect to.
|
||||
Note that the identifier in this example is <code>cache-server</code>. If you are using this template
|
||||
to create your own DistributedMapCache server, replace the values in this template with values that are
|
||||
suitable for your system. Possible options for <code>Port</code>, <code>Maximum Cache Entries</code>,
|
||||
<code>Eviction Strategy</code>, <span style="font-style: italic;">SSL Context Service</span>, and
|
||||
<span style="font-style: italic;">Persistence Directory</span>
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<services>
|
||||
<service>
|
||||
<identifier>cache-server</identifier>
|
||||
<class>org.apache.nifi.distributed.cache.client.DistributedMapCacheServer</class>
|
||||
<property name="Port">4557</property>
|
||||
<property name="Maximum Cache Entries">10000</property>
|
||||
<property name="Eviction Strategy">Least Recently Used</property>
|
||||
</service>
|
||||
</services>
|
||||
</pre>
|
||||
|
||||
<i>See Also:</i>
|
||||
<ul>
|
||||
|
|
Loading…
Reference in New Issue