Jboss-datagrid Gld Extension: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 24: Line 24:


     classpath: ${JDG_HOME}/client/hotrod.jar  
     classpath: ${JDG_HOME}/client/hotrod.jar  
                                                           


     #
     #
     # implementation-specific configuration
     # implementation-specific configuration
     #
     #
     cache: default
 
    #
    # 'cache' specifies the name of the cache to use. The element
    # is optional. If not specified, the default cache for default
    # cache container will be used.
    #
     cache: novaordis
 
     nodes:
     nodes:
       - localhost:11222
       - localhost:11222

Revision as of 19:07, 12 January 2017

Internal

Configuration Example

Client libraries are loaded from a local JDG 7 installation, if found. If not, the client libraries we ship with will be loaded instead.

service:

  type: cache
  key-size: 10
  value-size: 1024

  implementation:
    name: jboss-datagrid-7
    version: 7.0.0

    # 'classpath' is optional; if specified, it takes precedence 
    # over the libraries we ship with. if 'classpath' is missing, 
    # or the JAR(s) cannot be loaded, we will use the shipped 
    # libraries

    classpath: ${JDG_HOME}/client/hotrod.jar 

    #
    # implementation-specific configuration
    #

    #
    # 'cache' specifies the name of the cache to use. The element
    # is optional. If not specified, the default cache for default
    # cache container will be used. 
    #
    cache: novaordis

    nodes:
      - localhost:11222
      - localhost:11422

  load-strategy:
    name: read-then-write-on-miss
    reuse-value: true

load:
  threads: 1

Configuration Elements

nodes

Required. At least on HotRot endpoint in the format <host>:[port] is required. If port is missing, it is assumed 11222.

cache

Optional. If not present, it is assumed to be the default cache for the specified (or default) cache container. "default", with any capitalization, also signifies the default cache.