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
incrementErrorCountForURL
boolean incrementErrorCountForURL(String signatureURL,
int errorCode)
throws MobyException
- Parameters:
signatureURL
- the signature url to updateerrorCode
- 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 tableerrorCode
- 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.
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010