org.opennms.netmgt.xmlrpcd
Class Xmlrpcd

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by org.opennms.netmgt.xmlrpcd.Xmlrpcd
All Implemented Interfaces:
Fiber, PausableFiber, SpringServiceDaemon, ServiceDaemon, org.springframework.beans.factory.InitializingBean

public class Xmlrpcd
extends AbstractServiceDaemon

The Xmlrpcd receives events selectively and sends notification to an external XMLRPC server via the XMLRPC protocol.

Author:
Mathew Brozowski, David Hustace, Tarus Balog, James Zuo , OpenNMS.org

Field Summary
 
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
 
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
 
Constructor Summary
Xmlrpcd()
           Constructs a new Xmlrpcd object that receives events subscribed by the external XMLRPC server and sends corresponding message to the external XMLRPC server via XMLRPC protocol.
 
Method Summary
 void createConfig()
           
 void createServerConfig()
           
 XmlrpcdConfigFactory getConfig()
           
static AbstractServiceDaemon getInstance()
          Returns the singular instance of the xmlrpcd daemon.
 OpennmsServerConfigFactory getServerConfig()
           
protected  void onInit()
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onStart()
           
protected  void onStop()
           
 void setConfig(XmlrpcdConfigFactory config)
           
 void setServerConfig(OpennmsServerConfigFactory serverConfig)
           
 
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xmlrpcd

public Xmlrpcd()

Constructs a new Xmlrpcd object that receives events subscribed by the external XMLRPC server and sends corresponding message to the external XMLRPC server via XMLRPC protocol.

Method Detail

onInit

protected void onInit()
Specified by:
onInit in class AbstractServiceDaemon

getConfig

public XmlrpcdConfigFactory getConfig()
                               throws org.exolab.castor.xml.MarshalException,
                                      org.exolab.castor.xml.ValidationException,
                                      IOException
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException

createConfig

public void createConfig()
                  throws org.exolab.castor.xml.MarshalException,
                         org.exolab.castor.xml.ValidationException,
                         IOException
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException

setConfig

public void setConfig(XmlrpcdConfigFactory config)

getServerConfig

public OpennmsServerConfigFactory getServerConfig()
                                           throws org.exolab.castor.xml.MarshalException,
                                                  org.exolab.castor.xml.ValidationException,
                                                  IOException
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException

createServerConfig

public void createServerConfig()
                        throws org.exolab.castor.xml.MarshalException,
                               org.exolab.castor.xml.ValidationException,
                               IOException
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException

setServerConfig

public void setServerConfig(OpennmsServerConfigFactory serverConfig)

onStart

protected void onStart()
Overrides:
onStart in class AbstractServiceDaemon

onPause

protected void onPause()
Overrides:
onPause in class AbstractServiceDaemon

onResume

protected void onResume()
Overrides:
onResume in class AbstractServiceDaemon

onStop

protected void onStop()
Overrides:
onStop in class AbstractServiceDaemon

getInstance

public static AbstractServiceDaemon getInstance()
Returns the singular instance of the xmlrpcd daemon. There can be only one instance of this service per virtual machine.



Copyright © 2009. All Rights Reserved.