Package com.fasterxml.clustermate.api

Examples of com.fasterxml.clustermate.api.NodeState


    @Override
    protected ServletServiceResponse _handleGet(ServletServiceRequest request, ServletServiceResponse response,
            OperationDiagnostics stats, K key)
        throws IOException
    {
        NodeState node = _findRedirect(request, response, key);
        if (node == null) {
            response = (ServletServiceResponse) _storeHandler.getEntry(request, response, key, stats);
            _addStdHeaders(response);
            return response;
        }
View Full Code Here


    @Override
    protected ServletServiceResponse _handleHead(ServletServiceRequest request, ServletServiceResponse response,
            OperationDiagnostics stats, K key)
        throws IOException
    {
        NodeState node = _findRedirect(request, response, key);
        if (node == null) {
            _storeHandler.getEntryStats(request, response, key, stats);
            _addStdHeaders(response);
            return response;
        }
View Full Code Here

    @Override
    protected ServletServiceResponse _handlePut(ServletServiceRequest request, ServletServiceResponse response,
            OperationDiagnostics stats, K key)
        throws IOException
    {
        NodeState node = _findRedirect(request, response, key);
        if (node == null) {
            _storeHandler.putEntry(request, response, key, request.getInputStream(),
                    stats);
            _addStdHeaders(response);
            return response;
View Full Code Here

    @Override
    protected ServletServiceResponse _handleDelete(ServletServiceRequest request, ServletServiceResponse response,
            OperationDiagnostics stats, K key)
        throws IOException
    {
        NodeState node = _findRedirect(request, response, key);
        if (node == null) {
            _storeHandler.removeEntry(request, response, key, stats);
            _addStdHeaders(response);
            return response;
        }
View Full Code Here

    }

    protected String _buildSyncListUrl(ClusterViewByServerUpdatable cluster, NodeState remote,
            long lastClusterHash)
    {
        final NodeState local = cluster.getLocalState();
        final long syncedUpTo = remote.getSyncedUpTo();

        /* Need to be sure to pass the full range; remote end can do filtering,
         * (to reduce range if need be), but it needs to know full range
         * for initial auto-registration. Although ideally maybe we should
         * pass active and passive separately... has to do, for now.
         */
        final KeyRange syncRange = local.totalRange();
        final ServiceConfig config = _stuff.getServiceConfig();
        JdkHttpClientPathBuilder pathBuilder = new JdkHttpClientPathBuilder(remote.getAddress())
            .addPathSegments(config.servicePathRoot);
        pathBuilder = _path(pathBuilder, PathType.SYNC_LIST);
        pathBuilder = pathBuilder.addParameter(ClusterMateConstants.QUERY_PARAM_SINCE,
View Full Code Here

TOP

Related Classes of com.fasterxml.clustermate.api.NodeState

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.