Code Monkey home page Code Monkey logo

hazelcast-tutorial-config-replacers's Introduction

Hazelcast IMDG tutorial - Implementing configuration replacer

This project contains source code for a custom TOSTRING configuration replacer.

Sample ConfigReplacer implementation:

Sample class which provides value in the toString() method:

Usage in an XML configuration file:

How to run it

Use Apache Maven to run the example:

mvn install exec:java

It compiles the sample and starts Hazelcast IMDG with custom variables used in the XML configuration file.

Expected output

Apr 30, 2018 11:00:05 AM com.hazelcast.config.XmlConfigLocator
INFO: Loading 'hazelcast.xml' from classpath.
Apr 30, 2018 11:00:05 AM com.hazelcast.config.AbstractXmlConfigHelper
WARNING: Name of the hazelcast schema location is incorrect, using default
Apr 30, 2018 11:00:05 AM com.hazelcast.instance.AddressPicker
INFO: [LOCAL] [TestGroup] [3.10] Prefer IPv4 stack is true.
Apr 30, 2018 11:00:05 AM com.hazelcast.instance.AddressPicker
INFO: [LOCAL] [TestGroup] [3.10] Picked [192.168.1.1]:5701, using socket ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=5701], bind any local is true
Apr 30, 2018 11:00:05 AM com.hazelcast.system
INFO: [192.168.1.1]:5701 [TestGroup] [3.10] Hazelcast 3.10 (20180418 - cf73378) starting at [192.168.1.1]:5701
Apr 30, 2018 11:00:05 AM com.hazelcast.system
INFO: [192.168.1.1]:5701 [TestGroup] [3.10] Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
Apr 30, 2018 11:00:05 AM com.hazelcast.system
...

hazelcast-tutorial-config-replacers's People

Contributors

kwart avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.