|
||||||||||
| 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.audit.AbstractAuditor
public abstract class AbstractAuditor
Base class for ServiceMix auditors implementations.
| Field Summary | |
|---|---|
protected Log |
log
|
| 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 | |
|---|---|
AbstractAuditor()
|
|
| Method Summary | |
|---|---|
int |
deleteAllExchanges()
Delete all exchanges =from the data store. |
boolean |
deleteExchangeById(String id)
Delete the exchange with the specified id. |
boolean |
deleteExchangeByIndex(int index)
Delete a message, given its index. |
abstract int |
deleteExchangesByIds(String[] ids)
Delete exchanges given their ids. |
int |
deleteExchangesByRange(int fromIndex,
int toIndex)
Delete exchanges ranging from fromIndex to toIndex. |
protected void |
doStart()
|
protected void |
doStop()
|
void |
exchangeAccepted(org.apache.servicemix.jbi.event.ExchangeEvent event)
|
String[] |
getAllExchangeIds()
Retrieve all exchanges ids from the data store. |
javax.jbi.messaging.MessageExchange[] |
getAllExchanges()
Retrieve all exchanges =from the data store. |
MBeanAttributeInfo[] |
getAttributeInfos()
|
org.apache.servicemix.jbi.container.JBIContainer |
getContainer()
|
javax.jbi.messaging.MessageExchange |
getExchangeById(String id)
Retrieve the exchange for a specified id. |
javax.jbi.messaging.MessageExchange |
getExchangeByIndex(int index)
Retrieve the exchange at the specified index. |
abstract int |
getExchangeCount()
Get the number of exchanges stored by this auditor. |
String |
getExchangeIdByIndex(int index)
Retrieve the exchange id of the exchange at the specified index. |
abstract String[] |
getExchangeIdsByRange(int fromIndex,
int toIndex)
Retrieve a range of message exchange ids. |
abstract javax.jbi.messaging.MessageExchange[] |
getExchangesByIds(String[] ids)
Retrieve exchanges for the specified ids. |
javax.jbi.messaging.MessageExchange[] |
getExchangesByRange(int fromIndex,
int toIndex)
Retrieve a range of message exchange. |
MBeanOperationInfo[] |
getOperationInfos()
|
protected Class |
getServiceMBean()
|
boolean |
isAsContainerListener()
Test if Auditor should be included as a container listener |
void |
resendExchange(javax.jbi.messaging.MessageExchange exchange)
Resend an exchange on behalf of the consumer component that initiated this exchange. |
void |
setAsContainerListener(boolean addToContainer)
Set if Auditor should be included as a container listener. |
void |
setContainer(org.apache.servicemix.jbi.container.JBIContainer container)
|
void |
start()
|
void |
stop()
|
| 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 |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState, shutDown |
| Methods inherited from interface org.apache.servicemix.jbi.event.ExchangeListener |
|---|
exchangeSent |
| Methods inherited from interface org.apache.servicemix.jbi.management.MBeanInfoProvider |
|---|
getDescription |
| Field Detail |
|---|
protected final Log log
| Constructor Detail |
|---|
public AbstractAuditor()
| Method Detail |
|---|
public org.apache.servicemix.jbi.container.JBIContainer getContainer()
getContainer in class org.apache.servicemix.jbi.management.BaseSystemServicepublic void setContainer(org.apache.servicemix.jbi.container.JBIContainer container)
protected Class getServiceMBean()
getServiceMBean in class org.apache.servicemix.jbi.management.BaseSystemService
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.management.LifeCycleMBeanstart in class org.apache.servicemix.jbi.management.BaseLifeCyclejavax.jbi.JBIException
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanstop in class org.apache.servicemix.jbi.management.BaseLifeCyclejavax.jbi.JBIException
protected void doStart()
throws javax.jbi.JBIException
javax.jbi.JBIException
protected void doStop()
throws javax.jbi.JBIException
javax.jbi.JBIException
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface org.apache.servicemix.jbi.management.MBeanInfoProvidergetAttributeInfos in class org.apache.servicemix.jbi.management.BaseLifeCycleJMException
public MBeanOperationInfo[] getOperationInfos()
throws JMException
getOperationInfos in interface org.apache.servicemix.jbi.management.MBeanInfoProvidergetOperationInfos in class org.apache.servicemix.jbi.management.BaseLifeCycleJMException
public abstract int getExchangeCount()
throws AuditorException
AuditorMBean
getExchangeCount in interface AuditorMBeanAuditorException - if an error occurs accessing the data store.
public String getExchangeIdByIndex(int index)
throws AuditorException
AuditorMBean
getExchangeIdByIndex in interface AuditorMBeanindex - the index of the exchange
AuditorException - if an error occurs accessing the data store.
public String[] getAllExchangeIds()
throws AuditorException
AuditorMBean
getAllExchangeIds in interface AuditorMBeanAuditorException - if an error occurs accessing the data store.
public abstract String[] getExchangeIdsByRange(int fromIndex,
int toIndex)
throws AuditorException
AuditorMBean
getExchangeIdsByRange in interface AuditorMBeanfromIndex - the lower bound index of the ids to be retrieved.
fromIndex must be greater or equal to zero.toIndex - the upper bound (exclusive) of the ids to be retrieved.
toIndex must be greater or equal to fromIndex
AuditorException - if an error occurs accessing the data store.
public javax.jbi.messaging.MessageExchange getExchangeByIndex(int index)
throws AuditorException
AuditorMBean
getExchangeByIndex in interface AuditorMBeanindex - the index of the exchange
AuditorException - if an error occurs accessing the data store.
public javax.jbi.messaging.MessageExchange getExchangeById(String id)
throws AuditorException
AuditorMBean
getExchangeById in interface AuditorMBeanid - the id of the exchange
AuditorException - if an error occurs accessing the data store.
public javax.jbi.messaging.MessageExchange[] getAllExchanges()
throws AuditorException
AuditorMBean
getAllExchanges in interface AuditorMBeanAuditorException - if an error occurs accessing the data store.
public javax.jbi.messaging.MessageExchange[] getExchangesByRange(int fromIndex,
int toIndex)
throws AuditorException
AuditorMBean
getExchangesByRange in interface AuditorMBeanfromIndex - the lower bound index of the exchanges to be retrieved.
fromIndex must be greater or equal to zero.toIndex - the upper bound (exclusive) of the exchanges to be retrieved.
toIndex must be greater or equal to fromIndex
AuditorException - if an error occurs accessing the data store.
public abstract javax.jbi.messaging.MessageExchange[] getExchangesByIds(String[] ids)
throws AuditorException
AuditorMBean
getExchangesByIds in interface AuditorMBeanids - the ids of exchanges to retrieve
AuditorException - if an error occurs accessing the data store.
public int deleteAllExchanges()
throws AuditorException
AuditorMBean
deleteAllExchanges in interface AuditorMBeanAuditorException - if an error occurs accessing the data store.
public boolean deleteExchangeByIndex(int index)
throws AuditorException
AuditorMBean
deleteExchangeByIndex in interface AuditorMBeanindex - the index of the exchange
AuditorException - if an error occurs accessing the data store.
public boolean deleteExchangeById(String id)
throws AuditorException
AuditorMBean
deleteExchangeById in interface AuditorMBeanid - the id of the exchange to delete
AuditorException - if an error occurs accessing the data store.
public int deleteExchangesByRange(int fromIndex,
int toIndex)
throws AuditorException
AuditorMBean
deleteExchangesByRange in interface AuditorMBeanfromIndex - the lower bound index of the exchanges to be retrieved.
fromIndex must be greater or equal to zero.toIndex - the upper bound (exclusive) of the exchanges to be retrieved.
toIndex must be greater or equal to fromIndex
AuditorException - if an error occurs accessing the data store.
public abstract int deleteExchangesByIds(String[] ids)
throws AuditorException
AuditorMBean
deleteExchangesByIds in interface AuditorMBeanids - the ids of exchanges to retrieve
AuditorException - if an error occurs accessing the data store.
public void resendExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.JBIException
AuditorMBean
resendExchange in interface AuditorMBeanexchange - the exchange to be sent
javax.jbi.JBIException - if an error occurs re-sending the exchangepublic boolean isAsContainerListener()
public void setAsContainerListener(boolean addToContainer)
addToContainer - The addToContainer to set.public void exchangeAccepted(org.apache.servicemix.jbi.event.ExchangeEvent event)
exchangeAccepted in interface org.apache.servicemix.jbi.event.ExchangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||