public class Xmlrpcd extends AbstractServiceDaemon
The Xmlrpcd receives events selectively and sends notification to an external XMLRPC server via the XMLRPC protocol.
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
PAUSE_PENDING, PAUSED, RESUME_PENDINGRUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createConfig()
createConfig
|
void |
createServerConfig()
createServerConfig
|
XmlrpcdConfigFactory |
getConfig()
getConfig
|
static AbstractServiceDaemon |
getInstance()
Returns the singular instance of the xmlrpcd daemon.
|
OpennmsServerConfigFactory |
getServerConfig()
getServerConfig
|
protected void |
onInit()
onInit
|
protected void |
onPause()
onPause
|
protected void |
onResume()
onResume
|
protected void |
onStart()
onStart
|
protected void |
onStop()
onStop
|
void |
setConfig(XmlrpcdConfigFactory config)
setConfig
|
void |
setServerConfig(OpennmsServerConfigFactory serverConfig)
setServerConfig
|
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatuspublic 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.
protected void onInit()
onInit
onInit in class AbstractServiceDaemonpublic XmlrpcdConfigFactory getConfig() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getConfig
XmlrpcdConfigFactory object.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.IOException - if any.public void createConfig()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
createConfig
org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.IOException - if any.public void setConfig(XmlrpcdConfigFactory config)
setConfig
config - a XmlrpcdConfigFactory object.public OpennmsServerConfigFactory getServerConfig() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getServerConfig
OpennmsServerConfigFactory object.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.IOException - if any.public void createServerConfig()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
createServerConfig
org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.IOException - if any.public void setServerConfig(OpennmsServerConfigFactory serverConfig)
setServerConfig
serverConfig - a OpennmsServerConfigFactory object.protected void onStart()
onStart
onStart in class AbstractServiceDaemonprotected void onPause()
onPause
onPause in class AbstractServiceDaemonprotected void onResume()
onResume
onResume in class AbstractServiceDaemonprotected void onStop()
onStop
onStop in class AbstractServiceDaemonpublic static AbstractServiceDaemon getInstance()
AbstractServiceDaemon object.Copyright © 2015. All rights reserved.