@Override public void readMarshallable(@NotNull WireIn wire) throws IllegalStateException { @NotNull StringBuilder mountDesc = new StringBuilder(); while (!wire.isEmpty()) { @Nullable MountPoint mp = wire.readEventName(mountDesc).typedMarshallable(); mounts.put(mountDesc.toString(), mp); } }
@Override public void onRead(@NotNull WireIn inWire, @NotNull WireOut outWire) { if (inWire.isEmpty()) return; inWire.read(() -> "heartbeat").text(); }
@Override public void readMarshallable(@NotNull WireIn wire) throws IllegalStateException { StringBuilder clusterName = Wires.acquireStringBuilder(); while (!wire.isEmpty()) { wire.readEventName(clusterName).marshallable(host -> { EngineCluster engineCluster = clusterMap.computeIfAbsent(clusterName.toString(), EngineCluster::new); engineCluster.readMarshallable(host); }); } }
private void readMarshallable(String path, @NotNull WireIn wire) { @NotNull StringBuilder name = new StringBuilder(); while (!wire.isEmpty()) { @NotNull ValueIn in = wire.read(name); long pos = wire.bytes().readPosition(); @NotNull String path2 = path + "/" + name; if (wire.getValueIn().isTyped()) { wire.bytes().readPosition(pos); @Nullable Object o = in.typedMarshallable(); installableMap.put(path2, (Installable) o); } else { in.marshallable(w -> this.readMarshallable(path2, w)); } } }
@Override public void readMarshallable(@NotNull WireIn wire) throws IllegalStateException { wire.read(() -> "keyType").typeLiteral(this, (o, c) -> o.keyType = c) .read(() -> "valueType").typeLiteral(this, (o, c) -> o.valueType = c) .read(() -> "compression").text(this, (o, c) -> o.compression = c) .read(() -> "putReturnsNull").bool(this, (o, e) -> o.putReturnsNull = e) .read(() -> "removeReturnsNull").bool(this, (o, e) -> o.removeReturnsNull = e); while (!wire.isEmpty()) wire.read(() -> "import").text(this, (o, s) -> o.importFile = s); }