public SubordinateAtomicAction(Uid actId, boolean peekXidOnly) throws ObjectStoreException, IOException { super(actId); if (peekXidOnly) { InputObjectState os = StoreManager.getParticipantStore().read_committed(objectUid, type()); unpackHeader(os, new Header()); boolean haveXid = os.unpackBoolean(); if (haveXid) { _theXid = new XidImple(); ((XidImple) _theXid).unpackFrom(os); _parentNodeName = os.unpackString(); } } else { _activated = activate(); } }
/** * Recovery SAA. If the record is removed and peekXidOnly is true then the Xid will be null. * * @param actId * @param peekXidOnly * @throws ObjectStoreException * @throws IOException */ public SubordinateAtomicAction(Uid actId, boolean peekXidOnly) throws ObjectStoreException, IOException { super(actId); if (peekXidOnly) { InputObjectState os = StoreManager.getParticipantStore().read_committed(objectUid, type()); if (os == null) { // This will have been logged by the ObjectStore during ShadowingStore::read_state as an INFO if there was no content return; } unpackHeader(os, new Header()); boolean haveXid = os.unpackBoolean(); if (haveXid) { _theXid = new XidImple(); ((XidImple) _theXid).unpackFrom(os); _parentNodeName = os.unpackString(); } } else { _activated = activate(); } }
/** * Recovery SAA. If the record is removed and peekXidOnly is true then the Xid will be null. * * @param actId * @param peekXidOnly * @throws ObjectStoreException * @throws IOException */ public SubordinateAtomicAction(Uid actId, boolean peekXidOnly) throws ObjectStoreException, IOException { super(actId); if (peekXidOnly) { InputObjectState os = StoreManager.getParticipantStore().read_committed(objectUid, type()); if (os == null) { // This will have been logged by the ObjectStore during ShadowingStore::read_state as an INFO if there was no content return; } unpackHeader(os, new Header()); boolean haveXid = os.unpackBoolean(); if (haveXid) { _theXid = new XidImple(); ((XidImple) _theXid).unpackFrom(os); _parentNodeName = os.unpackString(); } } else { _activated = activate(); } }
/** * Recovery SAA. If the record is removed and peekXidOnly is true then the Xid will be null. * * @param actId * @param peekXidOnly * @throws ObjectStoreException * @throws IOException */ public SubordinateAtomicAction(Uid actId, boolean peekXidOnly) throws ObjectStoreException, IOException { super(actId); if (peekXidOnly) { InputObjectState os = StoreManager.getParticipantStore().read_committed(objectUid, type()); if (os == null) { // This will have been logged by the ObjectStore during ShadowingStore::read_state as an INFO if there was no content return; } unpackHeader(os, new Header()); boolean haveXid = os.unpackBoolean(); if (haveXid) { _theXid = new XidImple(); ((XidImple) _theXid).unpackFrom(os); _parentNodeName = os.unpackString(); } } else { _activated = activate(); } }
/** * Recovery SAA. If the record is removed and peekXidOnly is true then the Xid will be null. * * @param actId * @param peekXidOnly * @throws ObjectStoreException * @throws IOException */ public SubordinateAtomicAction(Uid actId, boolean peekXidOnly) throws ObjectStoreException, IOException { super(actId); if (peekXidOnly) { InputObjectState os = StoreManager.getParticipantStore().read_committed(objectUid, type()); if (os == null) { // This will have been logged by the ObjectStore during ShadowingStore::read_state as an INFO if there was no content return; } unpackHeader(os, new Header()); boolean haveXid = os.unpackBoolean(); if (haveXid) { _theXid = new XidImple(); ((XidImple) _theXid).unpackFrom(os); _parentNodeName = os.unpackString(); } } else { _activated = activate(); } }
/** * Recovery SAA. If the record is removed and peekXidOnly is true then the Xid will be null. * * @param actId * @param peekXidOnly * @throws ObjectStoreException * @throws IOException */ public SubordinateAtomicAction(Uid actId, boolean peekXidOnly) throws ObjectStoreException, IOException { super(actId); if (peekXidOnly) { InputObjectState os = StoreManager.getParticipantStore().read_committed(objectUid, type()); if (os == null) { // This will have been logged by the ObjectStore during ShadowingStore::read_state as an INFO if there was no content return; } unpackHeader(os, new Header()); boolean haveXid = os.unpackBoolean(); if (haveXid) { _theXid = new XidImple(); ((XidImple) _theXid).unpackFrom(os); _parentNodeName = os.unpackString(); } } else { _activated = activate(); } }