Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Karaf Cellar
  • Table Of Contents Toc
Learning Karaf Cellar

Learning Karaf Cellar

By : Jean Baptiste Onofre, Jean-Baptiste Onofré
5 (1)
close
close
Learning Karaf Cellar

Learning Karaf Cellar

5 (1)
By: Jean Baptiste Onofre, Jean-Baptiste Onofré

Overview of this book

This book is a tutorial written with a step-by-step approach to help you implement an optimum clustering solution in Apache Karaf Cellar quickly and efficiently. If you are new to Karaf and want to install and manage multiple Karaf instances by farming or clustering, then this book is for you. If you are a Java developer or a system administrator with basic knowledge of Karaf, you can use this book as a guide. Some background knowledge of OSGi and/or Karaf would be preferred but is not mandatory.
Table of Contents (11 chapters)
close
close

The event consumer

As explained before, a producer sends a cluster event message in a queue.

On the other hand, each node embeds a consumer. A consumer binds a set of handlers.

The consumer is responsible to get the cluster event messages from the different queues, and depending on the type of the cluster event, the consumer delegates the cluster event to a handler. This means that you have a handler for every type of resource.

For a consumer, we can perform the following tasks:

  • Check the current status of the consumer (on each node) using the cluster:consumer-status command, as follows:
    karaf@root> cluster:consumer-status
       Node                       Status
      [node2:5702           ] [ON   ]
    * [node1:5701           ] [ON   ]
    

    The cluster:consumer-status command accepts a node ID as the argument, as follows:

    karaf@root>  cluster:consumer-status node2:5702
       Node                       Status
      [node2:5702           ] [ON   ]
    
  • Stop the consumer of any node using the cluster:consumer-stop command...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Karaf Cellar
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon