Class DefaultClusterNodeServer

    • Constructor Detail

      • DefaultClusterNodeServer

        protected DefaultClusterNodeServer​(DefaultClusterNodeServerProvider provider,
                                           de.dytanic.cloudnet.driver.network.cluster.NetworkClusterNode nodeInfo)
    • Method Detail

      • sendCustomChannelMessage

        public void sendCustomChannelMessage​(@NotNull
                                             @NotNull de.dytanic.cloudnet.driver.channel.ChannelMessage channelMessage)
        Specified by:
        sendCustomChannelMessage in interface IClusterNodeServer
      • sendCustomChannelMessage

        public void sendCustomChannelMessage​(@NotNull
                                             @NotNull java.lang.String channel,
                                             @NotNull
                                             @NotNull java.lang.String message,
                                             @NotNull
                                             @NotNull de.dytanic.cloudnet.common.document.gson.JsonDocument data)
        Specified by:
        sendCustomChannelMessage in interface IClusterNodeServer
      • saveSendPacket

        public void saveSendPacket​(@NotNull
                                   @NotNull de.dytanic.cloudnet.driver.network.protocol.IPacket packet)
        Specified by:
        saveSendPacket in interface IClusterNodeServer
      • saveSendPacketSync

        public void saveSendPacketSync​(@NotNull
                                       @NotNull de.dytanic.cloudnet.driver.network.protocol.IPacket packet)
        Specified by:
        saveSendPacketSync in interface IClusterNodeServer
      • isAcceptableConnection

        public boolean isAcceptableConnection​(@NotNull
                                              @NotNull de.dytanic.cloudnet.driver.network.INetworkChannel channel,
                                              @NotNull
                                              @NotNull java.lang.String nodeId)
        Specified by:
        isAcceptableConnection in interface IClusterNodeServer
      • sendCommandLine

        public java.lang.String[] sendCommandLine​(@NotNull
                                                  @NotNull java.lang.String commandLine)
        Specified by:
        sendCommandLine in interface NodeServer
      • getCloudServiceFactory

        @NotNull
        public @NotNull de.dytanic.cloudnet.driver.provider.service.CloudServiceFactory getCloudServiceFactory()
        Specified by:
        getCloudServiceFactory in interface NodeServer
      • getCloudServiceProvider

        public de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider getCloudServiceProvider​(@NotNull
                                                                                                                @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
        Specified by:
        getCloudServiceProvider in interface NodeServer
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class DefaultNodeServer
        Throws:
        java.lang.Exception
      • getChannel

        public de.dytanic.cloudnet.driver.network.INetworkChannel getChannel()
        Specified by:
        getChannel in interface IClusterNodeServer
      • setChannel

        public void setChannel​(@NotNull
                               @NotNull de.dytanic.cloudnet.driver.network.INetworkChannel channel)
        Specified by:
        setChannel in interface IClusterNodeServer
      • getNetworkChannel

        public de.dytanic.cloudnet.driver.network.INetworkChannel getNetworkChannel()
        Specified by:
        getNetworkChannel in interface de.dytanic.cloudnet.driver.api.DriverAPIUser