2.1.0 • Published 8 years ago

wait-for-cassandra v2.1.0

Weekly downloads
149
License
-
Repository
github
Last release
8 years ago

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(config, 20000, true)
.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

2.1.0

8 years ago

3.0.0

8 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago