Package com.fasterxml.clustermate.service.msg

Examples of com.fasterxml.clustermate.service.msg.StreamingEntityImpl


                _cluster.asMessage() : null;
        resp.setClusterStatus(clusterStatus);               
        final ObjectWriter w = useSmile ? _syncListSmileWriter : _syncListJsonWriter;
        final String contentType = useSmile ? ContentType.SMILE.toString() : ContentType.JSON.toString();
       
        return response.ok(new StreamingEntityImpl(w, resp))
                .setContentType(contentType);
    }
View Full Code Here


                _cluster.asMessage() : null;
        resp.setClusterStatus(clusterStatus);               
        final ObjectWriter w = useSmile ? _syncListSmileWriter : _syncListJsonWriter;
        final String contentType = useSmile ? ContentType.SMILE.toString() : ContentType.JSON.toString();
       
        return (OUT) response.ok(new StreamingEntityImpl(w, resp))
                .setContentType(contentType);
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    public <RESP extends ServiceResponse> RESP getStatus(ServiceRequest request, RESP response,
            OperationDiagnostics metadata)
    {
        // use streaming impl just so we'll use specific ObjectWriter
        return (RESP) response.ok(new StreamingEntityImpl(_writer, _cluster.asMessage()))
            .setContentTypeJson();
    }
View Full Code Here

                _cluster.asMessage(false) : null;
        resp.setClusterStatus(clusterStatus);               
        final ObjectWriter w = useSmile ? _syncListSmileWriter : _syncListJsonWriter;
        final String contentType = useSmile ? ContentType.SMILE.toString() : ContentType.JSON.toString();
       
        return response.ok(new StreamingEntityImpl(w, resp))
                .setContentType(contentType);
    }
View Full Code Here

    public <RESP extends ServiceResponse> RESP getStatus(ServiceRequest request, RESP response,
            OperationDiagnostics metadata)
    {
        // use streaming impl just so we'll use specific ObjectWriter
        // true -> do include remote peer info too
        return (RESP) response.ok(new StreamingEntityImpl(_writer, _cluster.asMessage(true)))
            .setContentTypeJson();
    }
View Full Code Here

                _cluster.asMessage() : null;
        resp.setClusterStatus(clusterStatus);               
        final ObjectWriter w = useSmile ? _syncListSmileWriter : _syncListJsonWriter;
        final String contentType = useSmile ? ContentType.SMILE.toString() : ContentType.JSON.toString();
       
        return (OUT) response.ok(new StreamingEntityImpl(w, resp))
                .setContentType(contentType);
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.clustermate.service.msg.StreamingEntityImpl

Copyright © 2018 www.massapicom. 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.