It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free - Steve McConnell

Learning never ends...

Tricks to Increase The GeoServer Performance

We had a requirement to serve OGC data to 200 concurrent users through GeoServer. This article explains the tricks I did to increase the GeoServer Performance to meet the requirement...

Performance between Regular GeoServer and With Integrated GeoWebCache

GeoWebCache is used to cache map tiles coming from a variety of sources such as OGC Web Map Service (WMS) i.e. GeoServer in this case...

Paging Elasticsearch Data Through GeoServer

GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. Designed for interoperability...

Creating a Layer Using Elasticsearch Data on GeoServer and Displaying on LeafLet Map

We have a requirement to create a layer using Elasticsearch GeoSpatial data on GeoServer and displaying on map using Leaflet...

Building GeoServer Docker Image For Elasticsearch

GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. Designed for interoperability...

Recursion in Java

A Recursion is when the method calls itself to solve a problem. The recursive solution is constructed with a base case and a recursive case. In every recursive solution, we need to have these two components.

Creating a JanusGraph using Gremlin Console

JanusGraph is a new community project under the Linux foundation. It is forked from TitanDB code. JanusGraph incorporates support for the property graph model with Apache TinkerPop (the open source graph computing framework) and its Gremlin graph traversal language.

Starting Gremlin Console With JanusGraph in Linux

Gremlin is the graph traversal language that is used to interact with JanusGraph. Gremlin is being used by many graph databases these days. One method of putting Gremlin code in JanusGraph is to use Gremlin Console that is being provided by the JanusGraph which comes with JanusGraph plugin.

Partial Mocking Using Mockito

We can test a method by mocking another method of a class that is being tested. However, the method that we are going to mock should be public. We have to do this type of testing frequently in our TDD environement. In this blog, I will show how we can test our a method by mocking another method of a same class using Mockito.

Testing Void Method Using Mockito

Mockito is industry wide mocking framework for unit test. It gives an ability to a developer to write his/her code without depending on other developer’s code. Testing void method is hard because it doesn’t return any value. In this blog, I will show, how we can test our void method using Mockito.

Testing Mapping with Embedded Elasticsearch Server

Running instance of Elasticsearch cluster server won’t available for unit test. On the other hand, unit test shouldn’t depend on the external running instance. If you want to test the real Elasticsearch behavior in unit test, you can use embedded Elasticsearch server instance. Embedded Elasticsearch server is a small instance of Elasticsearch cluster and it works exactly…

Mapping in Elasticsearch

Mapping is the process of defining how a document and fields it contains are stored and indexed. Mapping is very useful to define for following cases:

Deleting Containers and Images from Docker

If you want to delete specific image or container from docker registry, it is very easy to delete just by writing following command.

Connecting to Elasticsearch Cluster Using Java API

We can use Elasticsearch Client to connect to elasitcsearch. There are Transport Client and Node Client to connect to Elasticsearch cluster. Node is very lowever level client and knows the cluster very well. However, the TransportClient connects remotely to an Elasticsearch cluster using the transport module. It does not join the cluster...

Easy Way to Write toString() Method

It starts to get boring to write toString() method especially if you want to include a lot of instance variables. If you are using eclipse, you can generate toString() method code by clicking Source > Generate toString()…. Method looks ugly to be honest.