org.apache.airavata.wsmg.msgbox.Storage.dbpool
Class MessageBoxDB

java.lang.Object
  extended by org.apache.airavata.wsmg.msgbox.Storage.dbpool.MessageBoxDB

public class MessageBoxDB
extends Object

This is the core class which used by DatabaseStorageImpl to perform all the service operations, DatabaseStorageImpl class simply use this class in its operation methods to perform the actual functionality.


Field Summary
static String SELECT_ALL_FROM_MSGBOXES
           
static String SQL_CREATE_MSGBOXES_STATEMENT
           
static String SQL_DELETE_ANCIENT_STATEMENT
           
static String SQL_DELETE_MSGBOX_STATEMENT
           
static String SQL_DELETE_MSGBOXES_STATEMENT
           
static String SQL_SELECT_MSGBOX_STATEMENT
           
static String SQL_STORE_MESSAGE_STATEMENT
           
 
Method Summary
 void addMessage(String msgBoxID, String messageID, String soapAction, org.apache.axiom.om.OMElement message)
           
 void createMsgBx(String messageBoxId)
           
 void deleteMessageBox(String msgBoxId)
           
static MessageBoxDB getInstance()
           
static MessageBoxDB initialize(JdbcStorage db, long time)
           
 List<String> removeAllMessagesforClient(String msgBoxId)
           
 void removeAncientMessages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT_ALL_FROM_MSGBOXES

public static final String SELECT_ALL_FROM_MSGBOXES
See Also:
Constant Field Values

SQL_CREATE_MSGBOXES_STATEMENT

public static final String SQL_CREATE_MSGBOXES_STATEMENT
See Also:
Constant Field Values

SQL_DELETE_MSGBOXES_STATEMENT

public static final String SQL_DELETE_MSGBOXES_STATEMENT
See Also:
Constant Field Values

SQL_STORE_MESSAGE_STATEMENT

public static final String SQL_STORE_MESSAGE_STATEMENT
See Also:
Constant Field Values

SQL_SELECT_MSGBOX_STATEMENT

public static final String SQL_SELECT_MSGBOX_STATEMENT
See Also:
Constant Field Values

SQL_DELETE_MSGBOX_STATEMENT

public static final String SQL_DELETE_MSGBOX_STATEMENT
See Also:
Constant Field Values

SQL_DELETE_ANCIENT_STATEMENT

public static final String SQL_DELETE_ANCIENT_STATEMENT
See Also:
Constant Field Values
Method Detail

initialize

public static MessageBoxDB initialize(JdbcStorage db,
                                      long time)
                               throws SQLException
Throws:
SQLException

getInstance

public static MessageBoxDB getInstance()

createMsgBx

public void createMsgBx(String messageBoxId)
                 throws SQLException,
                        IOException
Throws:
SQLException
IOException

addMessage

public void addMessage(String msgBoxID,
                       String messageID,
                       String soapAction,
                       org.apache.axiom.om.OMElement message)
                throws SQLException,
                       IOException,
                       XMLStreamException
Throws:
SQLException
IOException
XMLStreamException

deleteMessageBox

public void deleteMessageBox(String msgBoxId)
                      throws SQLException
Throws:
SQLException

removeAllMessagesforClient

public List<String> removeAllMessagesforClient(String msgBoxId)
                                        throws SQLException,
                                               IOException,
                                               ClassNotFoundException,
                                               XMLStreamException
Throws:
SQLException
IOException
ClassNotFoundException
XMLStreamException

removeAncientMessages

public void removeAncientMessages()


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.