public void writePayload(StoredDestination value, DataOutput dataOut) throws IOException { dataOut.writeLong(value.orderIndex.getPageId()); dataOut.writeLong(value.messageIdIndex.getPageId()); if (value.subscriptions != null) { dataOut.writeBoolean(true); dataOut.writeLong(value.subscriptions.getPageId()); dataOut.writeLong(value.subscriptionAcks.getPageId()); } else { dataOut.writeBoolean(false); } } }
public void write(DataOutput os) throws IOException { os.writeLong(this.lists.getPageId()); } }
public void write(DataOutput out) throws IOException { out.writeUTF(name); out.writeLong(this.index.getPageId()); }
public void write(DataOutput out) throws IOException { out.writeUTF(name); out.writeLong(this.index.getPageId()); }
@Override public void writePayload(StoredDestination value, DataOutput dataOut) throws IOException { dataOut.writeLong(value.orderIndex.defaultPriorityIndex.getPageId()); dataOut.writeLong(value.locationIndex.getPageId()); dataOut.writeLong(value.messageIdIndex.getPageId()); if (value.subscriptions != null) { dataOut.writeBoolean(true); dataOut.writeLong(value.subscriptions.getPageId()); dataOut.writeLong(value.subscriptionAcks.getPageId()); dataOut.writeLong(value.ackPositions.getHeadPageId()); dataOut.writeLong(value.subLocations.getHeadPageId()); } else { dataOut.writeBoolean(false); } dataOut.writeLong(value.orderIndex.lowPriorityIndex.getPageId()); dataOut.writeLong(value.orderIndex.highPriorityIndex.getPageId()); dataOut.writeLong(value.messageStoreStatistics.getPageId()); } }
@Override public void write(DataOutput out) throws IOException { out.writeLong(this.token.getMostSignificantBits()); out.writeLong(this.token.getLeastSignificantBits()); out.writeInt(this.version); if (getLastUpdateLocation() != null) { out.writeBoolean(true); LocationMarshaller.INSTANCE.writePayload(getLastUpdateLocation(), out); } else { out.writeBoolean(false); } out.writeLong(this.storedSchedulers.getPageId()); out.writeLong(this.journalRC.getPageId()); out.writeLong(this.removeLocationTracker.getPageId()); }
public void write(DataOutput os) throws IOException { os.writeInt(state); os.writeLong(destinations.getPageId());
void remove(Transaction tx) throws IOException { defaultPriorityIndex.clear(tx); defaultPriorityIndex.unload(tx); tx.free(defaultPriorityIndex.getPageId()); if (lowPriorityIndex != null) { lowPriorityIndex.clear(tx); lowPriorityIndex.unload(tx); tx.free(lowPriorityIndex.getPageId()); } if (highPriorityIndex != null) { highPriorityIndex.clear(tx); highPriorityIndex.unload(tx); tx.free(highPriorityIndex.getPageId()); } }
private void updateIndex(Transaction tx, KahaRemoveDestinationCommand command) throws IOException { StoredDestination sd = getStoredDestination(command.getDestination(), tx); sd.orderIndex.clear(tx); sd.orderIndex.unload(tx); tx.free(sd.orderIndex.getPageId()); sd.messageIdIndex.clear(tx); sd.messageIdIndex.unload(tx); tx.free(sd.messageIdIndex.getPageId()); if (sd.subscriptions != null) { sd.subscriptions.clear(tx); sd.subscriptions.unload(tx); tx.free(sd.subscriptions.getPageId()); sd.subscriptionAcks.clear(tx); sd.subscriptionAcks.unload(tx); tx.free(sd.subscriptionAcks.getPageId()); } String key = key(command.getDestination()); storedDestinations.remove(key); destinations.remove(tx, key); }
idx = idx < 0 ? -(idx + 1) : idx + 1; BTreeNode<Key, Value> child = getChild(tx, idx); if( child.getPageId() == index.getPageId() ) { throw new IOException("BTree corrupted: Cycle detected.");
public void write(DataOutput os) throws IOException { os.writeLong(this.lists.getPageId()); } }
public void write(DataOutput os) throws IOException { os.writeLong(this.lists.getPageId()); } }
public void writePayload(StoredDestination value, DataOutput dataOut) throws IOException { dataOut.writeLong(value.orderIndex.getPageId()); dataOut.writeLong(value.messageIdIndex.getPageId()); if (value.subscriptions != null) { dataOut.writeBoolean(true); dataOut.writeLong(value.subscriptions.getPageId()); dataOut.writeLong(value.subscriptionAcks.getPageId()); } else { dataOut.writeBoolean(false); } } }
public void writePayload(StoredDestination value, DataOutput dataOut) throws IOException { dataOut.writeLong(value.orderIndex.getPageId()); dataOut.writeLong(value.messageIdIndex.getPageId()); if (value.subscriptions != null) { dataOut.writeBoolean(true); dataOut.writeLong(value.subscriptions.getPageId()); dataOut.writeLong(value.subscriptionAcks.getPageId()); } else { dataOut.writeBoolean(false); } } }
public void writePayload(StoredDestination value, DataOutput dataOut) throws IOException { dataOut.writeLong(value.orderIndex.getPageId()); dataOut.writeLong(value.messageIdIndex.getPageId()); if (value.subscriptions != null) { dataOut.writeBoolean(true); dataOut.writeLong(value.subscriptions.getPageId()); dataOut.writeLong(value.subscriptionAcks.getPageId()); } else { dataOut.writeBoolean(false); } } }
public void write(DataOutput out) throws IOException { out.writeUTF(name); out.writeLong(this.index.getPageId()); }
public void write(DataOutput out) throws IOException { out.writeUTF(name); out.writeLong(this.index.getPageId()); }