|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.airavata.wsmg.msgbox.Storage.dbpool.DatabaseStorageImpl
public class DatabaseStorageImpl
Database message Storage Implementation, if msgBox.properties configured to use database this will set as the storage for MsgBoxSerivceSkeleton
| Constructor Summary | |
|---|---|
DatabaseStorageImpl(String jdbcUrl,
String jdbcDriver,
long timeOfOldMessage)
|
|
| Method Summary | |
|---|---|
String |
createMsgBox()
|
void |
destroyMsgBox(String key)
|
void |
dispose()
Clean up method |
void |
putMessageIntoMsgBox(String msgBoxID,
String messageID,
String soapAction,
org.apache.axiom.om.OMElement message)
|
void |
removeAncientMessages()
The ancientness is defined in the db.config file. |
List<String> |
takeMessagesFromMsgBox(String key)
IMPORTANT::: List retrieved from this method is sorted by time in ascending order i.e the newest message will appear as the last item in the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseStorageImpl(String jdbcUrl,
String jdbcDriver,
long timeOfOldMessage)
| Method Detail |
|---|
public String createMsgBox()
throws SQLException,
IOException
createMsgBox in interface MsgBoxStorageSQLException
IOException
public void destroyMsgBox(String key)
throws Exception
destroyMsgBox in interface MsgBoxStorageException
public List<String> takeMessagesFromMsgBox(String key)
throws Exception
MsgBoxStorage
takeMessagesFromMsgBox in interface MsgBoxStorageException
public void putMessageIntoMsgBox(String msgBoxID,
String messageID,
String soapAction,
org.apache.axiom.om.OMElement message)
throws SQLException,
IOException,
XMLStreamException
putMessageIntoMsgBox in interface MsgBoxStorageSQLException
IOException
XMLStreamException
public void removeAncientMessages()
throws Exception
MsgBoxStorage
removeAncientMessages in interface MsgBoxStorageExceptionpublic void dispose()
MsgBoxStorage
dispose in interface MsgBoxStorage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||