Examples of writeData()


Examples of com.hazelcast.management.ClusterRuntimeState.writeData()

                cluster.getMembers(),
                partitionService.getPartitions(),
                partitionService.getActiveMigrations(),
                connectionMap,
                lockedRecords);
        clusterRuntimeState.writeData(dos);
    }

    @Override
    public Object readResponse(ObjectDataInput in) throws IOException {
        ClusterRuntimeState clusterRuntimeState = new ClusterRuntimeState();
View Full Code Here

Examples of com.hazelcast.monitor.TimedMemberState.writeData()

                OutputStream outputStream = connection.getOutputStream();
                try {
                    identifier.write(outputStream);
                    ObjectDataOutputStream out = serializationService.createObjectDataOutputStream(outputStream);
                    TimedMemberState timedMemberState = timedMemberStateFactory.createTimedMemberState();
                    timedMemberState.writeData(out);
                    outputStream.flush();
                    post(connection);
                } finally {
                    closeResource(outputStream);
                }
View Full Code Here

Examples of com.hazelcast.nio.BufferObjectDataOutput.writeData()

        // register class def
        transferClassDefinition(data, serializationService, serializationService2);

        // emulate socket write by writing data to stream
        BufferObjectDataOutput out = serializationService.createObjectDataOutput(1024);
        out.writeData(data);
        byte[] bytes = out.toByteArray();
        byte[] header = ((PortableDataOutput) out).getPortableHeader();

        // emulate socket read by reading data from stream
        BufferObjectDataInput in = serializationService2.createObjectDataInput(new DefaultData(0, bytes, 0, header));
View Full Code Here

Examples of com.hazelcast.nio.ObjectDataOutput.writeData()

    @Override
    public void write(PortableWriter writer) throws IOException {
        super.write(writer);
        ObjectDataOutput out = writer.getRawDataOutput();
        out.writeData(function);
    }

    @Override
    public void read(PortableReader reader) throws IOException {
        super.read(reader);
View Full Code Here

Examples of com.hazelcast.nio.serialization.Data.writeData()

        out.writeInt(dataMap.size());
        for (Map.Entry<Long, Data> entry: dataMap.entrySet()) {
            long itemId = entry.getKey();
            Data value = entry.getValue();
            out.writeLong(itemId);
            value.writeData(out);
        }
    }

    protected void readInternal(ObjectDataInput in) throws IOException {
        super.readInternal(in);
View Full Code Here

Examples of com.hazelcast.nio.serialization.Data.writeData()

        final ObjectDataOutput out = writer.getRawDataOutput();
        for (Map.Entry<Data, Data> entry: entrySet){
            Data key = entry.getKey();
            Data value = entry.getValue();
            key.writeData(out);
            value.writeData(out);
        }
    }

    public void readPortable(PortableReader reader) throws IOException {
        int size = reader.readInt("s");
View Full Code Here

Examples of com.hazelcast.nio.serialization.Data.writeData()

            Map<Data, MultiMapWrapper> collections = entry.getValue();
            out.writeInt(collections.size());
            for (Map.Entry<Data, MultiMapWrapper> collectionEntry : collections.entrySet()) {
                Data key = collectionEntry.getKey();
                key.writeData(out);
                MultiMapWrapper wrapper = collectionEntry.getValue();
                Collection<MultiMapRecord> coll = wrapper.getCollection(false);
                out.writeInt(coll.size());
                String collectionType = MultiMapConfig.ValueCollectionType.SET.name();
                if (coll instanceof List){
View Full Code Here

Examples of com.hazelcast.query.impl.QueryResultEntryImpl.writeData()

        out.writeInt(rsize);
        if (rsize > 0) {
            Iterator<QueryResultEntry> iterator = result.iterator();
            for (int i = 0; i < rsize; i++) {
                final QueryResultEntryImpl queryableEntry = (QueryResultEntryImpl) iterator.next();
                queryableEntry.writeData(out);
            }
        }
    }

    public void readData(ObjectDataInput in) throws IOException {
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer.writeData()

    protected void writeInternal(ObjectDataOutput out) throws IOException {
        out.writeInt(migrationData.size());
        for (Map.Entry<String, QueueContainer> entry : migrationData.entrySet()) {
            out.writeUTF(entry.getKey());
            QueueContainer container = entry.getValue();
            container.writeData(out);
        }
    }

    @Override
    protected void readInternal(ObjectDataInput in) throws IOException {
View Full Code Here

Examples of com.itextpdf.text.pdf.codec.PngWriter.writeData()

            png.writeHeader(width, height, pngBitDepth, pngColorType);
            if (icc != null)
                png.writeIccProfile(icc);
            if (palette != null)
                png.writePalette(palette);
            png.writeData(imageBytes, stride);
            png.writeEnd();
            streamContentType = ImageBytesType.PNG;
            imageBytes = ms.toByteArray();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.