try {
// ExecutionStateChangeEvent
{
JobVertexID jid = new JobVertexID();
ExecutionAttemptID eid = new ExecutionAttemptID();
ExecutionStateChangeEvent e1 = new ExecutionStateChangeEvent(429345231796596L, jid, 17, eid, ExecutionState.CANCELING);
ExecutionStateChangeEvent e2 = new ExecutionStateChangeEvent(429345231796596L, jid, 17, eid, ExecutionState.CANCELING);
assertTrue(e1.equals(e2));
assertEquals(e1.hashCode(), e2.hashCode());
e1.toString();
}
// JobEvent
{
JobEvent e1 = new JobEvent(429345231796596L, JobStatus.CANCELED, "testmessage");
JobEvent e2 = new JobEvent(429345231796596L, JobStatus.CANCELED, "testmessage");
JobEvent e3 = new JobEvent(237217579123412431L, JobStatus.RUNNING, null);
JobEvent e4 = new JobEvent(237217579123412431L, JobStatus.RUNNING, null);
assertTrue(e1.equals(e2));
assertTrue(e3.equals(e4));
assertEquals(e1.hashCode(), e2.hashCode());
assertEquals(e3.hashCode(), e4.hashCode());
e1.toString();
e3.toString();
}
// RecentJobEvent
{
JobID jid = new JobID();
RecentJobEvent e1 = new RecentJobEvent(jid, "some name", JobStatus.FAILED, false, 634563546, 546734734672572457L);
RecentJobEvent e2 = new RecentJobEvent(jid, "some name", JobStatus.FAILED, false, 634563546, 546734734672572457L);
RecentJobEvent e3 = new RecentJobEvent(jid, null, JobStatus.RUNNING, false, 42364716239476L, 127843618273607L);
RecentJobEvent e4 = new RecentJobEvent(jid, null, JobStatus.RUNNING, false, 42364716239476L, 127843618273607L);
assertTrue(e1.equals(e2));
assertTrue(e3.equals(e4));
assertEquals(e1.hashCode(), e2.hashCode());
assertEquals(e3.hashCode(), e4.hashCode());
e1.toString();
e3.toString();
}
// VertexEvent
{
JobVertexID jid = new JobVertexID();
ExecutionAttemptID eid = new ExecutionAttemptID();
VertexEvent e1 = new VertexEvent(64619276017401234L, jid, "peter", 44, 13, eid, ExecutionState.DEPLOYING, "foo");
VertexEvent e2 = new VertexEvent(64619276017401234L, jid, "peter", 44, 13, eid, ExecutionState.DEPLOYING, "foo");
VertexEvent e3 = new VertexEvent(64619276017401234L, jid, null, 44, 13, eid, ExecutionState.DEPLOYING, null);