Class DefaultNodeServer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNodeInfoSnapshot currentSnapshot  
      protected de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNodeInfoSnapshot lastSnapshot  
      protected de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNode nodeInfo  
    • Field Detail

      • nodeInfo

        protected volatile de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNode nodeInfo
      • lastSnapshot

        protected volatile de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNodeInfoSnapshot lastSnapshot
      • currentSnapshot

        protected volatile de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNodeInfoSnapshot currentSnapshot
    • Constructor Detail

      • DefaultNodeServer

        public DefaultNodeServer()
    • Method Detail

      • getNodeInfo

        @NotNull
        public @NotNull de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNode getNodeInfo()
        Specified by:
        getNodeInfo in interface NodeServer
      • setNodeInfo

        public void setNodeInfo​(@NotNull
                                @NotNull de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNode nodeInfo)
        Specified by:
        setNodeInfo in interface NodeServer
      • getNodeInfoSnapshot

        public de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNodeInfoSnapshot getNodeInfoSnapshot()
        Specified by:
        getNodeInfoSnapshot in interface NodeServer
      • setNodeInfoSnapshot

        public void setNodeInfoSnapshot​(@NotNull
                                        @NotNull de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNodeInfoSnapshot nodeInfoSnapshot)
        Specified by:
        setNodeInfoSnapshot in interface NodeServer
      • getLastNodeInfoSnapshot

        public de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNodeInfoSnapshot getLastNodeInfoSnapshot()
        Specified by:
        getLastNodeInfoSnapshot in interface NodeServer
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception