Class NodeStatus


  • public class NodeStatus
    extends java.lang.Object
    • Constructor Detail

      • NodeStatus

        public NodeStatus​(NodeId nodeId,
                          java.net.URI externalUri,
                          int maxSessionCount,
                          java.util.Set<Slot> slots,
                          Availability availability,
                          java.time.Duration heartbeatPeriod,
                          java.lang.String version,
                          java.util.Map<java.lang.String,​java.lang.String> osInfo)
    • Method Detail

      • hasCapability

        public boolean hasCapability​(Capabilities caps)
      • hasCapacity

        public boolean hasCapacity()
      • hasCapacity

        public boolean hasCapacity​(Capabilities caps)
      • getMaxSessionCount

        public int getMaxSessionCount()
      • getNodeId

        public NodeId getNodeId()
      • getExternalUri

        public java.net.URI getExternalUri()
      • getSlots

        public java.util.Set<Slot> getSlots()
      • getHeartbeatPeriod

        public java.time.Duration getHeartbeatPeriod()
      • getVersion

        public java.lang.String getVersion()
      • getOsInfo

        public java.util.Map<java.lang.String,​java.lang.String> getOsInfo()
      • getLoad

        public float getLoad()
      • getLastSessionCreated

        public long getLastSessionCreated()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object