| java.lang.Object org.griphyn.vdl.dbschema.DatabaseSchema org.griphyn.vdl.dbschema.NXDInvSchema
NXDInvSchema | public class NXDInvSchema extends DatabaseSchema implements PTC(Code) | | This class provides basic functionalities to interact with the
backend database for invocation records, such as insertion, deletion,
and search.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Constructor Summary | |
public | NXDInvSchema(String dbDriverName) Default constructor for the provenance tracking. |
Method Summary | |
public long | getInvocationID(java.util.Date start, InetAddress host, int pid) Checks the existence of an invocation record in the database.
The information is based on the (start,host,pid) tuple, although
with private networks, cases may arise that have this tuple
identical, yet are different. | public boolean | saveInvocation(InvocationRecord ivr) Inserts an invocation record into the database.
Parameters: ivr - is the invocation record to store. |
m_db | protected Collection m_db(Code) | | |
m_dbColService | protected CollectionManagementService m_dbColService(Code) | | |
m_dbQrySvc | protected XPathQueryService m_dbQrySvc(Code) | | |
m_ptc | protected Collection m_ptc(Code) | | |
m_ptcColService | protected CollectionManagementService m_ptcColService(Code) | | |
m_ptcQrySvc | protected XPathQueryService m_ptcQrySvc(Code) | | |
getInvocationID | public long getInvocationID(java.util.Date start, InetAddress host, int pid) throws SQLException(Code) | | Checks the existence of an invocation record in the database.
The information is based on the (start,host,pid) tuple, although
with private networks, cases may arise that have this tuple
identical, yet are different.
Parameters: start - is the start time of the grid launcher Parameters: host - is the address of the host it ran upon Parameters: pid - is the process id of the grid launcher itself. the id of the existing record, or -1 |
saveInvocation | public boolean saveInvocation(InvocationRecord ivr) throws SQLException(Code) | | Inserts an invocation record into the database.
Parameters: ivr - is the invocation record to store. true, if insertion was successful, false otherwise. |
Methods inherited from org.griphyn.vdl.dbschema.DatabaseSchema | public boolean cachingMakesSense()(Code)(Java Doc) public void close() throws SQLException(Code)(Java Doc) protected void finalize() throws Throwable(Code)(Java Doc) public static DatabaseSchema loadSchema(String dbSchemaName, String propertyPrefix, Object[] arguments) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)(Java Doc) public static DatabaseSchema loadSchema(String propertyPrefix) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)(Java Doc) protected void longOrNull(PreparedStatement ps, int pos, long l) throws SQLException(Code)(Java Doc) protected String makeNotNull(String s)(Code)(Java Doc) protected void stringOrNull(PreparedStatement ps, int pos, String s) throws SQLException(Code)(Java Doc)
|
|
|