public byte[] getRecoveryState() throws Exception { OutputObjectState oos = new OutputObjectState(); oos.packString(this.getClass().getName()); this.saveState(oos); return oos.buffer(); }
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
OutputObjectState store = new OutputObjectState(); foundTypes.setBuffer(store.buffer()); return true; } catch (Exception e) {
throw new ObjectStoreException("Object state is too large - maximum size allowed: " + getMaxStateSize()); byte[] b = state.buffer();
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
OutputObjectState store = new OutputObjectState(); foundTypes.setBuffer(store.buffer()); return true; } catch (Exception e) {
public byte[] getRecoveryState() throws Exception { OutputObjectState oos = new OutputObjectState(); oos.packString(this.getClass().getName()); this.saveState(oos); return oos.buffer(); }
throw new ObjectStoreException("Object state is too large - maximum size allowed: " + getMaxStateSize()); byte[] b = state.buffer();
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
OutputObjectState store = new OutputObjectState(); foundTypes.setBuffer(store.buffer()); return true; } catch (Exception e) {
public byte[] getRecoveryState() throws Exception { OutputObjectState oos = new OutputObjectState(); oos.packString(this.getClass().getName()); this.saveState(oos); return oos.buffer(); }
UidHelper.packInto(uid, outputBuffer); outputBuffer.packString(typeName); outputBuffer.packBytes(txData.buffer()); byte[] data = outputBuffer.buffer(); throw new ObjectStoreException(e);
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
OutputObjectState store = new OutputObjectState(); foundTypes.setBuffer(store.buffer()); return true; } catch (Exception e) {
/** * this participant implements the PersistableATarticipant interface so it can save its state. * recovery is managed by an XTS recovery module * @return * @throws Exception */ public byte[] getRecoveryState() throws Exception { OutputObjectState oos = new OutputObjectState(); oos.packString(this.getClass().getName()); this.saveState(oos); return oos.buffer(); } }
UidHelper.packInto(uid, outputBuffer); outputBuffer.packString(typeName); outputBuffer.packBytes(txData.buffer()); byte[] data = outputBuffer.buffer(); throw new ObjectStoreException(e);
/** * Obtain all types of objects stored in the object store. * * @param buff The state in which to store the types. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. */ public boolean allTypes(InputObjectState buff) throws ObjectStoreException { if (stateTypes == null) throw new ObjectStoreException("Operation not supported by this implementation"); Set<String> types = new HashSet<>(stateTypes.values()); OutputObjectState store = new OutputObjectState(); for (String type : types) packString(store, type); packString(store, ""); buff.setBuffer(store.buffer()); return true; }
OutputObjectState store = new OutputObjectState(); foundTypes.setBuffer(store.buffer()); return true; } catch (Exception e) {
/** * this participant implements the PersistableATarticipant interface so it can save its state. * recovery is managed by an XTS recovery module * @return * @throws Exception */ public byte[] getRecoveryState() throws Exception { OutputObjectState oos = new OutputObjectState(); oos.packString(this.getClass().getName()); this.saveState(oos); return oos.buffer(); } }
UidHelper.packInto(uid, outputBuffer); outputBuffer.packString(typeName); outputBuffer.packBytes(txData.buffer()); byte[] data = outputBuffer.buffer(); throw new ObjectStoreException(e);