|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceService
The Persistent Service.
| Field Summary | |
|---|---|
static long |
DEFAULT_DURATION
Default Persistence duration |
static int |
DEFAULT_FETCHSIZE
Default Persistence SQL request fetch size |
static java.lang.String |
DEFAULT_PASSWORD
The default Password configuration |
static java.lang.String |
DEFAULT_URL_PREFIX
The default URL configuration (File database) |
static java.lang.String |
DEFAULT_URL_SUFFIX
|
static java.lang.String |
DEFAULT_USER
The default User configuration |
static java.lang.String |
HSQLDB_DRIVER
The HSQLDB driver |
static java.lang.String |
MYSQL_DRIVER
The MYSQL driver |
static java.lang.String |
ORACLE_DRIVER
The ORACLE driver |
| Method Summary | |
|---|---|
void |
addMessageExchange(org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl exchange,
boolean storeExchange,
java.lang.Boolean isSent)
Add a Message Exchange to the persistence service. |
void |
clearExchangeStorage()
Clear the exchange storage. |
void |
deleteMessageExchange(java.lang.String exchangeId)
Delete the exchange. |
long |
getExchangeStorageDuration()
Get the exchange storage duration. |
org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl |
getMessageExchange(java.lang.String exchangeId)
Retrieve a Message Exchange from the persistence. |
java.util.Map<java.lang.String,java.lang.Long> |
getMessageExchangeHistory(java.lang.String exchangeId)
Get the Message Exchange sent/received history from the persistence. |
java.util.List<java.lang.String> |
getMessageExchangeIds(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
Retrieve a list of Message Exchange Ids from the persistence matching the given criteria and the exchange persistence duration |
java.util.List<java.lang.String> |
getMessageExchangeIds(java.lang.String propertyKey,
java.lang.String propertyValue)
Retrieve a list of Message Exchange Ids from the persistence matching the given the given exchange property and the exchange persistence duration |
int |
getMessageExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
Count the number of processed exchanges matching the given criteria. |
void |
setExchangeStorageDuration(long duration)
Set the exchange storage duration. |
void |
updateMessageExchange(org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl exchange,
boolean storeExchange,
java.lang.Boolean isSent)
Update a Message Exchange in the persistence service. |
| Field Detail |
|---|
static final long DEFAULT_DURATION
static final int DEFAULT_FETCHSIZE
static final java.lang.String DEFAULT_PASSWORD
static final java.lang.String DEFAULT_URL_PREFIX
static final java.lang.String DEFAULT_URL_SUFFIX
static final java.lang.String DEFAULT_USER
static final java.lang.String HSQLDB_DRIVER
static final java.lang.String ORACLE_DRIVER
static final java.lang.String MYSQL_DRIVER
| Method Detail |
|---|
void addMessageExchange(org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl exchange,
boolean storeExchange,
java.lang.Boolean isSent)
throws java.sql.SQLException,
java.io.IOException
exchange - the exchangestoreExchange - if true, persist the body of the exchange. If
false, persist only the exchangeId and the current
timestampisSend - if true, it is an exchange sentfalse, it is an exchange receipt if null,
it is nor a send or receipt
java.sql.SQLException
java.io.IOExceptionvoid clearExchangeStorage()
void deleteMessageExchange(java.lang.String exchangeId)
throws java.sql.SQLException
exchangeId -
java.sql.SQLExceptionlong getExchangeStorageDuration()
duration -
org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl getMessageExchange(java.lang.String exchangeId)
throws java.sql.SQLException,
java.io.IOException,
java.lang.ClassNotFoundException
exchangeId - the Id of the exchange
MessageExchangeImpl instance
java.sql.SQLException
java.io.IOException
java.lang.ClassNotFoundException
java.util.Map<java.lang.String,java.lang.Long> getMessageExchangeHistory(java.lang.String exchangeId)
throws java.sql.SQLException
exchangeId - the Id of the exchange
java.sql.SQLException
java.util.List<java.lang.String> getMessageExchangeIds(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
throws java.sql.SQLException
interfaceName - The interface name that exchange targets. Can be nullserviceName - The service name that exchange targets. Can be nullendpointName - The endpoint name that exchange targets. Can be nulloperationName - The operation name that exchange targets. Can be nullstartDate - the start dateendDate - the end date
List of Exchange Ids.
java.sql.SQLException
java.util.List<java.lang.String> getMessageExchangeIds(java.lang.String propertyKey,
java.lang.String propertyValue)
throws java.sql.SQLException,
java.io.IOException
propertyKey - The name of the propertypropertyValue - The value of the property as a String
java.sql.SQLException
java.io.IOException
int getMessageExchanges(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
javax.xml.namespace.QName operationName,
long startDate,
long endDate)
throws java.sql.SQLException
exchangeId - the Id of the exchange
java.sql.SQLExceptionvoid setExchangeStorageDuration(long duration)
duration -
void updateMessageExchange(org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl exchange,
boolean storeExchange,
java.lang.Boolean isSent)
throws java.sql.SQLException,
java.io.IOException
exchange - the exchangestoreExchange - if true, persist the body of the exchange. If
false, persist only the exchangeId and the current
timestampisSend - if true, it is an exchange sentfalse, it is an exchange receipt if null,
it is nor a send or receipt
java.sql.SQLException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||