Package com.fasterxml.clustermate.api

Examples of com.fasterxml.clustermate.api.ClusterStatusMessage


        if (entries.isEmpty() && upUntil > lastSeen) {
            lastSeen = upUntil-1;
        }

        // One more thing: is cluster info requested?
        ClusterStatusMessage clusterStatus;
        long currentHash = _cluster.getHashOverState();
        clusterStatus = (clusterHash == 0L || clusterHash != currentHash) ?
                _cluster.asMessage() : null;
       
        final SyncListResponse<E> resp = new SyncListResponse<E>(entries, timestamp.get(),
View Full Code Here


        try {
            in = conn.getInputStream();
        } catch (IOException e) {
            throw new IOException("Can not access Cluster state using '"+endpoint+"': "+e.getMessage());
        }
        ClusterStatusMessage result;
        try {
            result = _converter.fromJSON(in);
        } catch (IOException e) {
            throw new IOException("Invalid Cluster state returned by '"+endpoint+"', failed to parse JSON: "+e.getMessage());
        } finally {
View Full Code Here

        return _coveragePct(getTotalCoverage());
    }

    @Override
    public ClusterStatusMessage asMessage() {
        return new ClusterStatusMessage(_timeMaster.currentTimeMillis(),
                getLastUpdated(), getLocalState(), getRemoteStates());
    }
View Full Code Here

        return _coveragePct(getTotalCoverage());
    }

    @Override
    public ClusterStatusMessage asMessage() {
        return new ClusterStatusMessage(_timeMaster.currentTimeMillis(),
                getLastUpdated(), getLocalState(), getRemoteStates());
    }
View Full Code Here

        if (entries.isEmpty() && upUntil > lastSeen) {
            lastSeen = upUntil-1;
        }

        // One more thing: is cluster info requested?
        ClusterStatusMessage clusterStatus;
        long currentHash = _cluster.getHashOverState();
        clusterStatus = (clusterHash == 0L || clusterHash != currentHash) ?
                _cluster.asMessage() : null;
       
        final SyncListResponse<E> resp = new SyncListResponse<E>(entries, timestamp.get(),
View Full Code Here

            while (it.hasNext()) {
                IpAndPort ip = it.next();
                final long requestTime = System.currentTimeMillis();
                long maxTimeout = waitUntil - requestTime;
                try {
                    ClusterStatusMessage resp = _accessor.getClusterStatus(ip,
                            Math.min(maxTimeout, BOOTSTRAP_TIMEOUT_MSECS));
                    if (resp == null) {
                        continue;
                    }
                    it.remove(); // remove from bootstrap list
View Full Code Here

        while (it.hasNext()) {
            IpAndPort ip = it.next();
            final long requestTime = System.currentTimeMillis();
            long maxTimeout = waitUntil - requestTime;
            try {
                ClusterStatusMessage resp = _accessor.getClusterStatus(ip,
                        Math.min(maxTimeout, BOOTSTRAP_TIMEOUT_MSECS));
                if (resp == null) {
                    continue;
                }
                it.remove(); // remove from bootstrap list
View Full Code Here

TOP

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

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.