public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); } }
public boolean restore_state(InputObjectState os, int t) { InputObjectState copy = new InputObjectState(os); try { heuristic = copy.unpackInt(); } catch (IOException e) { } return super.restore_state(os, t); }
@Test public void testPackUnpack () throws Exception { XAResourceRecord xares; DummyRecoverableXAConnection rc = new DummyRecoverableXAConnection(); Object[] params = new Object[1]; params[XAResourceRecord.XACONNECTION] = rc; xares = new XAResourceRecord(new TransactionImple(0), new DummyXA(false), new XidImple(new Uid()), params); OutputObjectState os = new OutputObjectState(); assertTrue(xares.save_state(os, ObjectType.ANDPERSISTENT)); InputObjectState is = new InputObjectState(os); assertTrue(xares.restore_state(is, ObjectType.ANDPERSISTENT)); xares = new XAResourceRecord(new TransactionImple(0), new DummyXA(false), new XidImple(new Uid()), null); os = new OutputObjectState(); assertTrue(xares.save_state(os, ObjectType.ANDPERSISTENT)); is = new InputObjectState(os); assertTrue(xares.restore_state(is, ObjectType.ANDPERSISTENT)); }