wait-for-cassandra

2.1.0 • Public • Published

Wait for Cassandra

Waits for a Cassandra connection to become available, optionally running a custom query to determine if the connection is valid.

Installation

npm install --save wait-for-cassandra

Usage

Run as a module within another script:

waitForCass = require 'wait-for-cassandra'
config =
  contactPoints: ['localhost']
  keyspace: 'test'
  protocolOptions:
    port: 9043
  socketOptions:
    connectTimeout: 3000
 
waitForCass.wait(config20000true)
.then (result) ->
  message = if result then "Online" else "Offline"
  console.log "Cassandra is #{message}"

Or run stand-alone

wait-for-cassandra --username=user --password=pass --quiet

Building

cake build

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    264
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    264
  • 3.0.0
    0
  • 2.0.0
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i wait-for-cassandra

Weekly Downloads

264

Version

2.1.0

License

none

Last publish

Collaborators

  • buzuli