org.opennms.bb.dp.spmd
Class Spmd

java.lang.Object
  |
  +--org.opennms.bb.dp.spmd.Spmd

public class Spmd
extends Object

Spmd is the class that will bring up the discovery/capsd/other poller processes.. - as of now, just creates the JSDT registry - (will be replaced by the SCM)

Author:
Sowmya

Field Summary
private  PollerClient client
           
private static Properties m_properties
          The properties that are specific to the spmd process.
 
Constructor Summary
Spmd()
          Creates the Spmd
 
Method Summary
(package private) static void ()
          Copy the System properties and then load the bluebird and spmd specific files into the property object.
static Properties getProperties()
           
static String getProperty(String key)
           
 boolean jsdtInitialize(String clientName)
          Create all the required JSDT Sessions
static void main(String[] args)
          Start the Spmd process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

client

private PollerClient client

m_properties

private static Properties m_properties

The properties that are specific to the spmd process. The properties are a combination of the JVM's system properties, plus the inclusion of the OpenNMS specific property files. There are two additional files that are loaded, if the system properties are correctly set.

In order to properly load the OpenNMS specific file(s) their location must be known in advance. Instead of hard coding the location of the files, the files are referenced by properties. The following list declares the properites that reference the specific files. The property files are loaded in the order they appear in the list.

Currently the string returned for the propertyFile(s) must be a file on the local filesystem. Later support for remote files via HTTP, JSDT, etc al may be supported.

Constructor Detail

Spmd

public Spmd()
Creates the Spmd
Method Detail

static void ()

Copy the System properties and then load the bluebird and spmd specific files into the property object. For more information see the javadoc comment for the m_properties element.

Additionally, this static loading will also look at the debugging options and will setup the Logging Facility. This can only be done after the properties have been loaded.


jsdtInitialize

public boolean jsdtInitialize(String clientName)
Create all the required JSDT Sessions

getProperties

public static Properties getProperties()

getProperty

public static String getProperty(String key)

main

public static void main(String[] args)
Start the Spmd process