getInstance() method

Return the singleton instance of this class.

Syntax

public static Server getInstance ()

Returns

the running instance of this class

Usage

Note that this method will not create the server; you have to call the constructor once to do that (see the constructor docs for the reasons why).