use of org.apache.oozie.SLAEventBean in project oozie by apache.
the class TestSLAStore method createSLAEvent.
private SLAEventBean createSLAEvent(String slaId) {
SLAEventBean sla = new SLAEventBean();
sla.setSlaId(slaId);
return sla;
}
use of org.apache.oozie.SLAEventBean in project oozie by apache.
the class TestSLAStore method _testInsertEvent.
/* private void _testGetSlaEventSeqNewer(long seqId) {
store.beginTrx();
try {
List<SLAEventBean> slaEvents = store.getSLAEventListNewerSeq(seqId);
System.out.println("Total # of Records " + slaEvents.size());
if (slaEvents.size() == 0) {
fail("Unable to GET Get any record of sequence id greater than ="
+ seqId);
}
store.commitTrx();
}
catch (Exception ex) {
store.rollbackTrx();
ex.printStackTrace();
fail("Unable to GET Get record of sequence id greater than ="
+ seqId);
}
}*/
private void _testInsertEvent(String slaId) {
SLAEventBean sla = createSLAEvent(slaId);
store.beginTrx();
try {
store.insertSLAEvent(sla);
store.commitTrx();
} catch (Exception ex) {
store.rollbackTrx();
ex.printStackTrace();
fail("Unable to insert a record into COORD Job ");
}
}
Aggregations