public abstract class AbstractDuccComponent extends Object implements DuccComponent, Thread.UncaughtExceptionHandler, AbstractDuccComponentMBean
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDuccComponent.AdminEventProcessor |
class |
AbstractDuccComponent.ErrorProcessor |
| Constructor and Description |
|---|
AbstractDuccComponent(String componentName) |
AbstractDuccComponent(String componentName,
org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
adjustTransportEndpoint(String endpointValue,
String endpointType) |
void |
cleanup(Throwable e) |
org.apache.camel.CamelContext |
getContext() |
String |
getLogLevel() |
protected String |
getProcessJmxUrl() |
void |
handleAdminEvent(DuccAdminEvent event)
Components interested in receiving DuccAdminEvents should override this method
|
void |
handleUncaughtException(Error e) |
void |
handleUncaughtException(Exception e) |
boolean |
isStopping() |
void |
loadProperties(String componentProperties)
Loads named property file
|
void |
onDuccAdminKillEvent(DuccAdminEvent event)
Called when DuccAdminEvent is received on the Ducc Admin Channel
|
void |
reloadProperties(String componentProperties) |
void |
setContext(org.apache.camel.CamelContext context) |
void |
setLogLevel(String level) |
void |
setLogLevel(String clz,
String level) |
void |
start(DuccService service) |
void |
start(DuccService service,
String[] args) |
String |
startJmxAgent()
Start RMI registry so the JMX clients can connect to the JVM via JMX.
|
void |
stop() |
void |
uncaughtException(Thread t,
Throwable e) |
boolean |
validateAdministrator(DuccAdminEvent event)
Is the event apparently issue by a DUCC registered admin or not?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoggerpublic AbstractDuccComponent(String componentName)
public AbstractDuccComponent(String componentName, org.apache.camel.CamelContext context)
public void loadProperties(String componentProperties) throws Exception
componentProperties - - property file to readExceptionpublic void reloadProperties(String componentProperties) throws Exception
Exceptionpublic String adjustTransportEndpoint(String endpointValue, String endpointType) throws Exception
Exceptionpublic void setContext(org.apache.camel.CamelContext context)
setContext in interface DuccComponentpublic org.apache.camel.CamelContext getContext()
getContext in interface DuccComponentpublic boolean validateAdministrator(DuccAdminEvent event)
public void onDuccAdminKillEvent(DuccAdminEvent event) throws Exception
event - - admin eventExceptionpublic void start(DuccService service) throws Exception
start in interface DuccLifecycleExceptionpublic void start(DuccService service, String[] args) throws Exception
Exceptionprotected String getProcessJmxUrl()
public void stop()
throws Exception
stop in interface DuccLifecycleExceptionpublic void handleUncaughtException(Exception e)
handleUncaughtException in interface DuccComponentpublic void handleUncaughtException(Error e)
public String startJmxAgent() throws Exception
Exceptionpublic void cleanup(Throwable e)
cleanup in interface DuccComponentpublic void uncaughtException(Thread t, Throwable e)
uncaughtException in interface Thread.UncaughtExceptionHandlerpublic void handleAdminEvent(DuccAdminEvent event) throws Exception
handleAdminEvent in interface DuccLifecycleExceptionpublic void setLogLevel(String clz, String level)
setLogLevel in interface AbstractDuccComponentMBeanpublic void setLogLevel(String level)
setLogLevel in interface AbstractDuccComponentMBeanpublic String getLogLevel()
public boolean isStopping()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.