Command Line Flags for the JVM

This post attempts to demystify command-line options of the Java Virtual Machine (JVM). I’m talking about those strange characters you often have to type when starting Java to run a program. The options are often used to specify environment variables (class

Tagged with: , , ,
Posted in Java

Object Naming Conventions in JMX

Every MBean must have a name, more accurately, an ObjectName. Although, MBean could be named anything, E.g. “DogBean” or “SunnyDay”, it is important to choose consistent and well defined names to avoid inflicting mental torture on the poor soul who is

Tagged with: , , , , ,
Posted in Java

Finite State Machine in Java using Executor Framework

Tagged with: , , , , , ,
Posted in Uncategorized

RuntimeExceptions – To try-catch or not to catch?

The general consensus in the Java community seems to be that RuntimeExceptions should not be caught. Before we delve into the subject, let us review exceptions in Java. The language supports three kinds of Exceptions to signal “exceptional conditions”, all of which

Tagged with: ,
Posted in Java

Java Multithreading Steeplechase: Executors

Historical Perspective on Tasks & Threads Tasks are activities that perform some action or do calculations. For example a task could calculate prime numbers up to some upper limit. Good tasks do not depend on other tasks: they are independent.

Tagged with: , , , , , , , , , ,
Posted in Java

Java Multithreading Steeplechase: Stopping Threads

Let us cut to the chase: In Java, there is no way to quickly and reliably stop a thread. Java language designers got drunk once and attempted to support forced thread termination by releasing the following methods: `Thread.stop()`, `Thread.suspend()` and `Thread.resume()`.

Tagged with: , , , , , , , , ,
Posted in Java

Introduction To Apache Hadoop – HDFS & MapReduce

Let’s get something out of the way quickly: Hadoop is NOT a database. It is NOT a library. In reality, there is NO single product called Hadoop. Hadoop is made up of stand-alone modules such as a distributed file system

Tagged with: , , ,
Posted in Hadoop
Follow

Get every new post delivered to your Inbox.