Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.client;
 
Representation of a server node that is part of a cluster, including read-only accessors to state.
public interface ClusterServerNode
    extends ServerNode
    /*
    /**********************************************************************
    /* Basic state accessors
    /**********************************************************************
     */

    
Whether server node is disabled: usually occurs during shutdowns and startups, and is considered a transient state. Clients typically try to avoid GET access from disabled nodes; and schedule updates (if any) after all enabled instances.
    public boolean isDisabled();
    /*
    /**********************************************************************
    /* Key range access
    /**********************************************************************
     */
    
    public KeyRange getActiveRange();
    public KeyRange getPassiveRange();
    public KeyRange getTotalRange();
    /*
    /**********************************************************************
    /* Timestamp access
    /**********************************************************************
     */
    
    
Timestamp when last node state access request was sent.
    public long getLastRequestSent();

    
Timestamp when last node state access response was received (note: does NOT include cases where error occured during request).
    public long getLastResponseReceived();

    
Timestamp when last node state response update was processed.
    public long getLastNodeUpdateFetched();

    
Timestamp of the last update that has been fetched from the server node.
    public long getLastClusterUpdateFetched();

    
Timestamp of the latest update for the server node.
    public long getLastClusterUpdateAvailable();
    /*
    /**********************************************************************
    /* Call accessors, paths etc
    /**********************************************************************
     */
    
    
Accessor for getting path builder initialized to the root path of the service for this node; used for building paths to access things like entries and node state.
    public <P extends RequestPathBuilder> P rootPath();
    public abstract <K extends EntryKeyContentPutter<K> entryPutter();
    public abstract <K extends EntryKeyContentGetter<K> entryGetter();
    public abstract <K extends EntryKeyContentHeader<K> entryHeader();
    public abstract <K extends EntryKeyContentDeleter<K> entryDeleter();
    public abstract <K extends EntryKeyEntryLister<K> entryLister();
New to GrepCode? Check out our FAQ X