void load(Transaction tx) throws IOException { defaultPriorityIndex.setKeyMarshaller(LongMarshaller.INSTANCE); defaultPriorityIndex.setValueMarshaller(messageKeysMarshaller); defaultPriorityIndex.load(tx); lowPriorityIndex.setKeyMarshaller(LongMarshaller.INSTANCE); lowPriorityIndex.setValueMarshaller(messageKeysMarshaller); lowPriorityIndex.load(tx); highPriorityIndex.setKeyMarshaller(LongMarshaller.INSTANCE); highPriorityIndex.setValueMarshaller(messageKeysMarshaller); highPriorityIndex.load(tx); }
public void read(DataInput is) throws IOException { this.storedSchedulers = new BTreeIndex<String, LegacyJobSchedulerImpl>(pageFile, is.readLong()); this.storedSchedulers.setKeyMarshaller(StringMarshaller.INSTANCE); this.storedSchedulers.setValueMarshaller(new JobSchedulerMarshaller(this.store)); this.journalRC = new BTreeIndex<Integer, Integer>(pageFile, is.readLong()); this.journalRC.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.setValueMarshaller(IntegerMarshaller.INSTANCE); }
void load(Transaction tx) throws IOException { this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(JobLocationsMarshaller.INSTANCE); this.index.load(tx); }
void read(DataInput in) throws IOException { this.name = in.readUTF(); this.index = new BTreeIndex<>(this.store.getPageFile(), in.readLong()); this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(JobLocationsMarshaller.INSTANCE); }
void load(Transaction tx) throws IOException { this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(ValueMarshaller.INSTANCE); this.index.load(tx); }
void read(DataInput in) throws IOException { this.name = in.readUTF(); this.index = new BTreeIndex<Long, List<LegacyJobLocation>>(this.store.getPageFile(), in.readLong()); this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(ValueMarshaller.INSTANCE); }
public void read(DataInput is) throws IOException { this.lists = new BTreeIndex<String, PListImpl>(pageFile, is.readLong()); this.lists.setKeyMarshaller(StringMarshaller.INSTANCE); this.lists.setValueMarshaller(new PListMarshaller(this.store)); }
void load(Transaction tx) throws IOException { this.storedSchedulers.setKeyMarshaller(StringMarshaller.INSTANCE); this.storedSchedulers.setValueMarshaller(new JobSchedulerMarshaller(this.store)); this.storedSchedulers.load(tx); this.journalRC.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.setValueMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.load(tx); }
@Override public void load(Transaction tx) throws IOException { this.storedSchedulers.setKeyMarshaller(StringMarshaller.INSTANCE); this.storedSchedulers.setValueMarshaller(new JobSchedulerMarshaller(this.store)); this.storedSchedulers.load(tx); this.journalRC.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.setValueMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.load(tx); this.removeLocationTracker.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.removeLocationTracker.setValueMarshaller(new IntegerListMarshaller()); this.removeLocationTracker.load(tx); }
void load(Transaction tx) throws IOException { this.lists.setKeyMarshaller(StringMarshaller.INSTANCE); this.lists.setValueMarshaller(new PListMarshaller(this.store)); this.lists.load(tx); }
@Override public void read(DataInput in) throws IOException { try { long msb = in.readLong(); long lsb = in.readLong(); this.token = new UUID(msb, lsb); } catch (Exception e) { throw new UnknownStoreVersionException(e); } if (!token.equals(JobSchedulerStoreImpl.SCHEDULER_STORE_TOKEN)) { throw new UnknownStoreVersionException(token.toString()); } this.version = in.readInt(); if (in.readBoolean()) { setLastUpdateLocation(LocationMarshaller.INSTANCE.readPayload(in)); } else { setLastUpdateLocation(null); } this.storedSchedulers = new BTreeIndex<String, JobSchedulerImpl>(store.getPageFile(), in.readLong()); this.storedSchedulers.setKeyMarshaller(StringMarshaller.INSTANCE); this.storedSchedulers.setValueMarshaller(new JobSchedulerMarshaller(this.store)); this.journalRC = new BTreeIndex<Integer, Integer>(store.getPageFile(), in.readLong()); this.journalRC.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.setValueMarshaller(IntegerMarshaller.INSTANCE); this.removeLocationTracker = new BTreeIndex<Integer, List<Integer>>(store.getPageFile(), in.readLong()); this.removeLocationTracker.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.removeLocationTracker.setValueMarshaller(new IntegerListMarshaller()); LOG.info("Scheduler Store version {} loaded", this.version); }
rc.orderIndex.setKeyMarshaller(LongMarshaller.INSTANCE); rc.orderIndex.setValueMarshaller(MessageKeysMarshaller.INSTANCE); rc.orderIndex.load(tx); rc.messageIdIndex.setKeyMarshaller(StringMarshaller.INSTANCE); rc.messageIdIndex.setValueMarshaller(LongMarshaller.INSTANCE); rc.messageIdIndex.load(tx); rc.subscriptions.setKeyMarshaller(StringMarshaller.INSTANCE); rc.subscriptions.setValueMarshaller(KahaSubscriptionCommandMarshaller.INSTANCE); rc.subscriptions.load(tx); rc.subscriptionAcks.setKeyMarshaller(StringMarshaller.INSTANCE); rc.subscriptionAcks.setValueMarshaller(LongMarshaller.INSTANCE); rc.subscriptionAcks.load(tx);
rc.locationIndex.setKeyMarshaller(new LocationSizeMarshaller()); rc.locationIndex.setValueMarshaller(LongMarshaller.INSTANCE); rc.locationIndex.load(tx); rc.messageIdIndex.setKeyMarshaller(StringMarshaller.INSTANCE); rc.messageIdIndex.setValueMarshaller(LongMarshaller.INSTANCE); rc.messageIdIndex.load(tx); rc.subscriptions.setKeyMarshaller(StringMarshaller.INSTANCE); rc.subscriptions.setValueMarshaller(KahaSubscriptionCommandMarshaller.INSTANCE); rc.subscriptions.load(tx); rc.subscriptionAcks.setKeyMarshaller(StringMarshaller.INSTANCE); rc.subscriptionAcks.setValueMarshaller(new LastAckMarshaller()); rc.subscriptionAcks.load(tx);
void load(Transaction tx) throws IOException { defaultPriorityIndex.setKeyMarshaller(LongMarshaller.INSTANCE); defaultPriorityIndex.setValueMarshaller(messageKeysMarshaller); defaultPriorityIndex.load(tx); lowPriorityIndex.setKeyMarshaller(LongMarshaller.INSTANCE); lowPriorityIndex.setValueMarshaller(messageKeysMarshaller); lowPriorityIndex.load(tx); highPriorityIndex.setKeyMarshaller(LongMarshaller.INSTANCE); highPriorityIndex.setValueMarshaller(messageKeysMarshaller); highPriorityIndex.load(tx); }
void load(Transaction tx) throws IOException { this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(JobLocationsMarshaller.INSTANCE); this.index.load(tx); }
void load(Transaction tx) throws IOException { this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(JobLocationsMarshaller.INSTANCE); this.index.load(tx); }
void load(Transaction tx) throws IOException { this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(ValueMarshaller.INSTANCE); this.index.load(tx); }
void read(DataInput in) throws IOException { this.name = in.readUTF(); this.index = new BTreeIndex<>(this.store.getPageFile(), in.readLong()); this.index.setKeyMarshaller(LongMarshaller.INSTANCE); this.index.setValueMarshaller(JobLocationsMarshaller.INSTANCE); }
void load(Transaction tx) throws IOException { this.storedSchedulers.setKeyMarshaller(StringMarshaller.INSTANCE); this.storedSchedulers.setValueMarshaller(new JobSchedulerMarshaller(this.store)); this.storedSchedulers.load(tx); this.journalRC.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.setValueMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.load(tx); }
@Override public void load(Transaction tx) throws IOException { this.storedSchedulers.setKeyMarshaller(StringMarshaller.INSTANCE); this.storedSchedulers.setValueMarshaller(new JobSchedulerMarshaller(this.store)); this.storedSchedulers.load(tx); this.journalRC.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.setValueMarshaller(IntegerMarshaller.INSTANCE); this.journalRC.load(tx); this.removeLocationTracker.setKeyMarshaller(IntegerMarshaller.INSTANCE); this.removeLocationTracker.setValueMarshaller(new IntegerListMarshaller()); this.removeLocationTracker.load(tx); }