Permalink
Commits on Jan 20, 2016
  1. Merge pull request #169 from stalehd/consolidate_interface

    Simplify core interface
    stalehd committed Jan 20, 2016
  2. Simplify core interface

    Merge the permanent/temporary methods into a single coherent set. This makes
    the interface a bit more flexible since you can listen on collections of
    leases of both kinds. Since the backend doesn't have to implement naming
    of temporary leases and store all of the leases in the same name space the
    various implementations are a lot simpler as well.
    
    In addition - javadoc reporting pluging added. Some of the issues reported
    as warnings was fixed but in the end linting was turned off. It should be
    turned on later on when there's been a general cleanup. Run with
    mvn javadoc:aggregate to generate javadoc locally.
    stalehd committed with stalehd Jan 19, 2016
Commits on Dec 15, 2015
  1. Merge pull request #168 from stalehd/checkstyle

    Checkstyle checks
    stalehd committed Dec 15, 2015
  2. Checkstyle checks

    Add checkstyle plugin to parent pom and fix (most) of the issues.
    The checkstyle rules are based mostly on the Google rules with some
    additions (and removals). Some of the older projects have disabled
    error checking (a3, log, timber) since they will be fixed and/or
    moved shortly.
    stalehd committed Dec 15, 2015
  3. Merge pull request #167 from stalehd/samples

    Service sample
    stalehd committed Dec 15, 2015
  4. Merge pull request #166 from stalehd/consul

    Consul backend. Not production ready yet but neither is Cloudname.
    stalehd committed Dec 15, 2015
  5. Merge pull request #165 from stalehd/new_logo

    ...and of course: Ä lögö. Wïth ümläüts
    stalehd committed Dec 15, 2015
  6. Merge pull request #164 from stalehd/pre-3.0

    Brave new world (beta). Complete rewrite of the library and zero backwards compatibility.
    stalehd committed Dec 15, 2015
  7. Update to use cloudname URL

    stalehd committed Dec 15, 2015
  8. Sample code for service discovery

    Added three services: ZooKeeper test service, pac service and ghost service.
    The pac service monitors the running ghost services through the service
    discovery interface and displays the running services in a web page.
    stalehd committed with stalehd Nov 20, 2015
  9. Fixes to services

    stalehd committed with stalehd Nov 23, 2015
  10. Proof-of-concept Consul backend

    This is a working Consul backend for Cloudname but it hasn't been tested
    a lot. In short it creates a session which is kept alive by regular polls
    to the Consul Agent. The session is then used to create ephmeral KV entries.
    
    Permanent leases are just regular KV entries without an associated session.
    
    Note that this implementation isn't tested in a real life production
    environment and that the defaults are most likely a bit too aggressive for
    to be used as is. In particular the polling when a watch gets 404 is very
    aggressive and the lock-delay parameter is set to 0.
    
    There's no integration with the service catalog in Consul either since that
    is handled on a higher level in Cloudname. This might require a slight change
    in the core API with some sort of hooks or custom service implementation on
    top of Cloudname. A custom service implementation isn't ideal.
    
    The backend tests are also updated a bit with more generous backend propagation
    timeouts throughout.
    stalehd committed Dec 2, 2015
Commits on Dec 14, 2015
  1. Java8 features when iterating over collections

    Use forEach() - much cleaner implementation.
    stalehd committed Dec 14, 2015
  2. Use connection URL when creating backends

    Use a connection URL to create backends via the BackendManager class.
    This makes for a much easier way of creating different backends.
    stalehd committed with stalehd Dec 14, 2015
Commits on Nov 30, 2015
  1. Merge pull request #142 from Cloudname/id

    Add getter method for worker id field
    stalehd committed Nov 30, 2015
  2. Merge pull request #148 from petterw/master

    Add Priority annotation
    stalehd committed Nov 30, 2015
  3. Merge pull request #145 from stoyle/master

    Check return value from File.mkdirs()
    
    Throws NPE if the directory can't be created.
    stalehd committed Nov 30, 2015
  4. ...and of course: A logo

    Since this has heavy metal ümlauts it is automatically destined for
    greätnëss.
    stalehd committed Nov 30, 2015
Commits on Nov 20, 2015
  1. Increase backend propagation time in tests to 100ms

    5ms is a little bit too quick for Core i5 and lesser processors. Be nice
    and increase the time to 100ms. This is a lot so most backends should
    (or rather, *must*) manage this.
    stalehd committed Nov 20, 2015
Commits on Nov 17, 2015
  1. Update javadoc, tests

    * Javadoc: Spelling errors, inconsistent puncutation
    * Tests: assertThat(<something>, is(equalTo(<other>)))
      rather than assertThat(<something>.equals(<other>), is(false))
    * Use Array.deepEquals() in CloudnamePath
    stalehd committed Nov 17, 2015
Commits on Nov 12, 2015
  1. Brave new world

    Rewrite into a core library with simple methods and an abstraction layer on
    top of the backend system.
    
    The following backends are implemented
    * Memory (for testing; only works within a single JVM)
    * ZooKeeper (proof-of-concept implementation of the backend)
    
    The following libraries are created:
    * Service discovery library
    
    This brings the overall functionality on par with 2.x with a few exceptions:
    * Locking isn't implemented. That did not work for the old library so
      there's no real change in functionality
    * It isn't possible to query *everything* from a client. This will be
      addressed in another commit (or just ignored completely since the
      backends offers this in some shape or form)
    * It isn't possible to resolve coordinates partially, f.e. finding
      "logserver" when your own coordinate is "service.tag.region";
      "logserver" should resolve to "logserver.tag.region". This will
      be solved in a later commit by making a separate resolver class that
      creates service coordinates based on existing coordinates.
    stalehd committed Nov 3, 2015
Commits on Nov 6, 2015
  1. Merge pull request #163 from stalehd/just_the_tip

    Welcome to 2015
    borud committed Nov 6, 2015
Commits on Nov 5, 2015
  1. Welcome to 2015

    * Java 1.7 (yeah, 1.8 is here but babysteps!)
    * ZooKeeper 3.4.6 and Curator 2.9 for test server, eliminating the need
      for EmbeddedZooKeeperTest (and lots of code)
    * Dropped codelabs project (will be outdated very soon)
    * Dropped restapp-boostrap (outdated three years ago, crap code)
    * Removed unused classes from testtools
    * Set version to 3.0-SNAPSHOT (breaking changes from 2.x will be introduced)
    * Use io.netty library, update to later version (jboss packages still works)
    * Remove the locking code (it doesn't work)
    stalehd committed Oct 30, 2015
Commits on Sep 8, 2015
  1. Merge pull request #162 from fsvend/fix-tests

    Fix a failing flag test
    bushwakko committed Sep 8, 2015
  2. Fix a failing flag test

    Frank E. Svendsboe committed Sep 8, 2015
Commits on May 28, 2015
  1. Merge pull request #160 from bushwakko/master

    Update protoc binaries to and java lib to 2.6.1
    bushwakko committed May 28, 2015
  2. Update protoc binaries to and java lib to 2.6.1

    Anders Storsveen committed May 28, 2015
  3. Merge pull request #159 from bushwakko/master

    Add statically linked protoc binary for linux x86_64
    bushwakko committed May 28, 2015
  4. Add statically linked protoc binary for linux x86_64

    Anders Storsveen committed May 28, 2015
  5. Merge pull request #157 from bushwakko/master

    Adding support to get User based on properties
    bushwakko committed May 28, 2015
  6. Adding support to get User based on properties

    Anders Storsveen committed May 27, 2015
Commits on May 7, 2015
  1. Merge pull request #156 from acidmoose/flags-properties-2

    Flags through properties file gets no special treatment.
    acidmoose committed May 7, 2015