|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.jbi.management.BaseSystemService
org.apache.servicemix.jbi.logging.LogService
public class LogService
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
container |
| Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
currentState, INITIALIZED, listener |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
LogService()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
boolean |
getAutoStart()
|
String |
getConfigUrl()
|
JBIContainer |
getContainer()
|
String |
getDescription()
Get the Description of the item |
MBeanOperationInfo[] |
getOperationInfos()
Get an array of MBeanOperationInfo |
int |
getRefreshPeriod()
|
protected Class |
getServiceMBean()
|
void |
reconfigureLogSystem()
reconfigure the log4j system if something has changed in the config file |
void |
setAutoStart(boolean autoStart)
|
void |
setConfigUrl(String url)
set new location for log4j config |
void |
setContainer(JBIContainer container)
|
void |
setRefreshPeriod(int seconds)
|
void |
setUp()
|
void |
start()
Start the item. |
void |
stop()
Stop the item. |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseSystemService |
|---|
getName, getType, init, shutDown |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
firePropertyChanged, getCurrentState, getObjectToManage, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogService()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic JBIContainer getContainer()
getContainer in class BaseSystemServicepublic void setContainer(JBIContainer container)
public String getDescription()
MBeanInfoProvider
getDescription in interface MBeanInfoProviderpublic void setRefreshPeriod(int seconds)
setRefreshPeriod in interface LogServiceMBeanseconds - Refresh period for the log4j system.public int getRefreshPeriod()
getRefreshPeriod in interface LogServiceMBeanpublic void setConfigUrl(String url)
setConfigUrl in interface LogServiceMBeanurl - Location for log4j config file example: file:conf/log4j.xmlpublic String getConfigUrl()
getConfigUrl in interface LogServiceMBeanpublic void setAutoStart(boolean autoStart)
public boolean getAutoStart()
public void reconfigureLogSystem()
reconfigureLogSystem in interface LogServiceMBeanprotected Class getServiceMBean()
getServiceMBean in class BaseSystemService
public void start()
throws javax.jbi.JBIException
BaseLifeCycle
start in interface javax.jbi.management.LifeCycleMBeanstart in class BaseLifeCyclejavax.jbi.JBIException - if the item fails to start.
public void stop()
throws javax.jbi.JBIException
BaseLifeCycle
stop in interface javax.jbi.management.LifeCycleMBeanstop in class BaseLifeCyclejavax.jbi.JBIException - if the item fails to stop.
public void setUp()
throws javax.jbi.JBIException
javax.jbi.JBIException
public MBeanOperationInfo[] getOperationInfos()
throws JMException
BaseLifeCycle
getOperationInfos in interface MBeanInfoProvidergetOperationInfos in class BaseLifeCycleJMException
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
BaseLifeCycle
getAttributeInfos in interface MBeanInfoProvidergetAttributeInfos in class BaseLifeCycleJMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||