Topic

Writing about Java

All writing →

5 posts


2016

  1. How to timeout a thread in Java / Limiting a threads execution time

    Limit how long a piece of Java code may run using thread interruption and a timeout, and the catch that stops it working on arbitrary code.

    1 min readJava

2015

  1. I get NoNodeAvailableException on long-running processes using SSL TransportClient with Found.no

    A hosted Elasticsearch hostname resolves to several IPs. Add only the first to a TransportClient and long-running processes eventually fail with NoNodeAvailableException.

    1 min readJavaElasticsearch
  2. When I index something in Elasticsearch, why doesn't it show in my search straight after?

    Elasticsearch is near-real-time: new documents appear after the next refresh. What that means and how to force it when you must.

    1 min readDevOpsJavaElasticsearch

2014

  1. Centralising Clojure/Java logging with Logback, LogStash, ElasticSearch, and Kibana

    Shipping Clojure and Java logs from Logback through Logstash into Elasticsearch, and reading them in Kibana.

    1 min readDevOpsJavaClojureElasticsearchLinux

2012

  1. Integrating Logback with Clojure

    Getting Logback working as the logging backend for a Clojure project.

    1 min readJavaClojure