|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuditorMBean
Main interface for ServiceMix auditor. This interface may be used to view and delete exchanges or to re-send an exchange on behalf of the component that initiated the exchange. The implementation is free to offer additional features for selecting message exchanges which are dependant of the underlying store.
| Field Summary |
|---|
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| 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. |
int |
deleteExchangesByIds(String[] ids)
Delete exchanges given their ids. |
int |
deleteExchangesByRange(int fromIndex,
int toIndex)
Delete exchanges ranging from fromIndex to toIndex. |
String[] |
getAllExchangeIds()
Retrieve all exchanges ids from the data store. |
javax.jbi.messaging.MessageExchange[] |
getAllExchanges()
Retrieve all exchanges =from the data store. |
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. |
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. |
String[] |
getExchangeIdsByRange(int fromIndex,
int toIndex)
Retrieve a range of message exchange ids. |
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. |
void |
resendExchange(javax.jbi.messaging.MessageExchange exchange)
Resend an exchange on behalf of the consumer component that initiated this exchange. |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState, shutDown, start, stop |
| Method Detail |
|---|
int getExchangeCount()
throws AuditorException
AuditorException - if an error occurs accessing the data store.
String getExchangeIdByIndex(int index)
throws AuditorException
index - the index of the exchange
AuditorException - if an error occurs accessing the data store.
IllegalArgumentException - if index is less than zero
String[] getAllExchangeIds()
throws AuditorException
AuditorException - if an error occurs accessing the data store.
String[] getExchangeIdsByRange(int fromIndex,
int toIndex)
throws AuditorException
fromIndex - 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.
IllegalArgumentException - if fromIndex is less than zero or if toIndex is
less than fromIndex.
javax.jbi.messaging.MessageExchange getExchangeByIndex(int index)
throws AuditorException
index - the index of the exchange
AuditorException - if an error occurs accessing the data store.
IllegalArgumentException - if index is less than zero
javax.jbi.messaging.MessageExchange getExchangeById(String id)
throws AuditorException
id - the id of the exchange
AuditorException - if an error occurs accessing the data store.
IllegalArgumentException - if id is null or empty
javax.jbi.messaging.MessageExchange[] getAllExchanges()
throws AuditorException
AuditorException - if an error occurs accessing the data store.
javax.jbi.messaging.MessageExchange[] getExchangesByRange(int fromIndex,
int toIndex)
throws AuditorException
fromIndex - 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.
IllegalArgumentException - if fromIndex is less than zero or if toIndex is
less than fromIndex.
javax.jbi.messaging.MessageExchange[] getExchangesByIds(String[] ids)
throws AuditorException
ids - the ids of exchanges to retrieve
AuditorException - if an error occurs accessing the data store.
IllegalArgumentException - if ids is null, or one of its
element is null or empty.
int deleteAllExchanges()
throws AuditorException
AuditorException - if an error occurs accessing the data store.
boolean deleteExchangeByIndex(int index)
throws AuditorException
index - the index of the exchange
AuditorException - if an error occurs accessing the data store.
IllegalArgumentException - if index is less than zero
boolean deleteExchangeById(String id)
throws AuditorException
id - the id of the exchange to delete
AuditorException - if an error occurs accessing the data store.
IllegalArgumentException - if id is null or empty
int deleteExchangesByRange(int fromIndex,
int toIndex)
throws AuditorException
fromIndex - 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.
IllegalArgumentException - if fromIndex is less than zero or if toIndex is
less than fromIndex.
int deleteExchangesByIds(String[] ids)
throws AuditorException
ids - the ids of exchanges to retrieve
AuditorException - if an error occurs accessing the data store.
IllegalArgumentException - if ids is null, or one of its
element is null or empty.
void resendExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.JBIException
exchange - the exchange to be sent
javax.jbi.JBIException - if an error occurs re-sending the exchange
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||