Package nxt.peer

Interface Peer

  • All Superinterfaces:
    java.lang.Comparable<Peer>

    public interface Peer
    extends java.lang.Comparable<Peer>
    • Method Detail

      • providesService

        boolean providesService​(Peer.Service service)
      • providesServices

        boolean providesServices​(long services)
      • getHost

        java.lang.String getHost()
      • getPort

        int getPort()
      • getAnnouncedAddress

        java.lang.String getAnnouncedAddress()
      • getVersion

        java.lang.String getVersion()
      • getApplication

        java.lang.String getApplication()
      • getPlatform

        java.lang.String getPlatform()
      • getSoftware

        java.lang.String getSoftware()
      • getApiPort

        int getApiPort()
      • getApiSSLPort

        int getApiSSLPort()
      • getDisabledAPIs

        java.util.Set<APIEnum> getDisabledAPIs()
      • getApiServerIdleTimeout

        int getApiServerIdleTimeout()
      • getWeight

        int getWeight()
      • shareAddress

        boolean shareAddress()
      • isBlacklisted

        boolean isBlacklisted()
      • blacklist

        void blacklist​(java.lang.Exception cause)
      • blacklist

        void blacklist​(java.lang.String cause)
      • unBlacklist

        void unBlacklist()
      • deactivate

        void deactivate()
      • remove

        void remove()
      • getDownloadedVolume

        long getDownloadedVolume()
      • getUploadedVolume

        long getUploadedVolume()
      • getLastUpdated

        int getLastUpdated()
      • getLastConnectAttempt

        int getLastConnectAttempt()
      • isInbound

        boolean isInbound()
      • isInboundWebSocket

        boolean isInboundWebSocket()
      • isOutboundWebSocket

        boolean isOutboundWebSocket()
      • isOpenAPI

        boolean isOpenAPI()
      • isApiConnectable

        boolean isApiConnectable()
      • getPeerApiUri

        java.lang.StringBuilder getPeerApiUri()
      • getBlacklistingCause

        java.lang.String getBlacklistingCause()
      • send

        org.json.simple.JSONObject send​(org.json.simple.JSONStreamAware request)
      • send

        org.json.simple.JSONObject send​(org.json.simple.JSONStreamAware request,
                                        int maxResponseSize)