|
||||||||||
| 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(ExchangeEvent event)
|
String[] |
getAllExchangeIds()
Retrieve all exchanges ids from the data store. |
MessageExchange[] |
getAllExchanges()
Retrieve all exchanges =from the data store. |
MBeanAttributeInfo[] |
getAttributeInfos()
|
JBIContainer |
getContainer()
|
MessageExchange |
getExchangeById(String id)
Retrieve the exchange for a specified id. |
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 MessageExchange[] |
getExchangesByIds(String[] ids)
Retrieve exchanges for the specified ids. |
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(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(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 JBIContainer getContainer()
getContainer in class BaseSystemServicepublic void setContainer(JBIContainer container)
protected Class getServiceMBean()
getServiceMBean in class BaseSystemService
public void start()
throws JBIException
start in interface LifeCycleMBeanstart in class BaseLifeCycleJBIException
public void stop()
throws JBIException
stop in interface LifeCycleMBeanstop in class BaseLifeCycleJBIException
protected void doStart()
throws JBIException
JBIException
protected void doStop()
throws JBIException
JBIException
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface MBeanInfoProvidergetAttributeInfos in class BaseLifeCycleJMException
public MBeanOperationInfo[] getOperationInfos()
throws JMException
getOperationInfos in interface MBeanInfoProvidergetOperationInfos in class 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 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 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 MessageExchange[] getAllExchanges()
throws AuditorException
AuditorMBean
getAllExchanges in interface AuditorMBeanAuditorException - if an error occurs accessing the data store.
public 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 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(MessageExchange exchange)
throws JBIException
AuditorMBean
resendExchange in interface AuditorMBeanexchange - the exchange to be sent
JBIException - if an error occurs re-sending the exchangepublic boolean isAsContainerListener()
public void setAsContainerListener(boolean addToContainer)
addToContainer - The addToContainer to set.public void exchangeAccepted(ExchangeEvent event)
exchangeAccepted in interface ExchangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||