Version: 1.1.1

org.biomoby.registry.rdfagent.util
Interface CentralDataAccess

All Known Implementing Classes:
CentralDataAccessImpl

public interface CentralDataAccess

Interface for interacting with the mobycentral data store.

Author:
Eddie created Feb 2, 2006

Method Summary
 void cleanup()
          Use this method to perform any 'clean up', i.e. for JDBC, close connections, etc.
 boolean decrementErrorCountForURL(String signatureURL)
           
 boolean deleteErrorCountForURL(String signatureURL)
           
 int getErrorCountForURL(String signatureURL)
           
 boolean incrementErrorCountForURL(String signatureURL, int errorCode)
           
 boolean insertErrorCountForURL(String signatureURL, int errorCode)
           
 

Method Detail

incrementErrorCountForURL

boolean incrementErrorCountForURL(String signatureURL,
                                  int errorCode)
                                  throws MobyException
Parameters:
signatureURL - the signature url to update
errorCode - the error code that caused this update
Returns:
true if the update succeeded, false otherwise.
Throws:
MobyException - if the agent cannot connect for any reason to the data store

decrementErrorCountForURL

boolean decrementErrorCountForURL(String signatureURL)
                                  throws MobyException
Parameters:
signatureURL - the signature url to update
Returns:
true if the update succeeded, false otherwise.
Throws:
MobyException - if the agent cannot connect for any reason to the data store

deleteErrorCountForURL

boolean deleteErrorCountForURL(String signatureURL)
                               throws MobyException
Parameters:
signatureURL - the signature url to remove from the validity table.
Returns:
true if the deletion succeeded, false otherwise.
Throws:
MobyException - if the agent cannot connect for any reason to the data store

insertErrorCountForURL

boolean insertErrorCountForURL(String signatureURL,
                               int errorCode)
                               throws MobyException
Parameters:
signatureURL - the signatureURL to insert into the validity table
errorCode - the 'code' for the error (most likely an HTTP response code)
Returns:
true if the the error count was successfully entered into the data store. False otherwise.
Throws:
MobyException - if the agent cannot connect for any reason to the data store

getErrorCountForURL

int getErrorCountForURL(String signatureURL)
                        throws MobyException
Parameters:
signatureURL - the url to query an error count for
Returns:
the error count for a specific signature url
Throws:
MobyException - if the agent cannot connect for any reason to the data store

cleanup

void cleanup()
Use this method to perform any 'clean up', i.e. for JDBC, close connections, etc.


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010