Class NetEndPoint

All Implemented Interfaces:
IBaseEndPoint, IController, IDataProvider, IDataProviderController, IEndPoint, Closeable, CloseStateRequestable, GroupCloseable, AutoCloseable

public final class NetEndPoint extends AbstractEndPoint
Author:
Silvan Wyss
  • Method Details

    • toLocalMachineAndGivenPortAndDefaultSlot

      public static NetEndPoint toLocalMachineAndGivenPortAndDefaultSlot(int port)
      Parameters:
      port -
      Returns:
      a new NetEndPoint that will connect to the default slot on the given port on the local machine.
      Throws:
      RuntimeException - if the given port is not in [0, 65535].
    • toLocalMachineAndGivenPortAndGivenSlot

      public static NetEndPoint toLocalMachineAndGivenPortAndGivenSlot(int port, String slot)
      Parameters:
      port -
      slot -
      Returns:
      a new NetEndPoint that will connect to the given slot on the given port on the local machine.
      Throws:
      RuntimeException - if the given port is not in [0, 65535].
      RuntimeException - if the given slot is null or blank.
    • toGivenHostAndGivenPortAndDefaultSlot

      public static NetEndPoint toGivenHostAndGivenPortAndDefaultSlot(String host, int port)
      Parameters:
      host -
      port -
      Returns:
      a new NetEndPoint that will connect to the default slot on the given port on the given host.
      Throws:
      RuntimeException - if the given port is not in [0, 65535].
    • toGivenHostAndGivenPortAndGivenSlot

      public static NetEndPoint toGivenHostAndGivenPortAndGivenSlot(String host, int port, String slot)
      Parameters:
      host -
      port -
      slot -
      Returns:
      a new NetEndPoint that will connect to the given slot on the given port on the given host.
      Throws:
      RuntimeException - if the given port is not in [0, 65535].
      RuntimeException - if the given slot is null or blank.
    • toGivenHostAndHttpPortAndDefaultSlot

      public static NetEndPoint toGivenHostAndHttpPortAndDefaultSlot(String host)
      Parameters:
      host -
      Returns:
      a new NetEndPoint that will connect to the given slot on the HTTP port on the given host.
    • getConnectionType

      public ConnectionType getConnectionType()
    • getCustomTargetSlot

      public String getCustomTargetSlot()
    • getDataForRequest

      public INode<?> getDataForRequest(IChainedNode request)
    • getDataForRequests

      public IContainer<? extends INode<?>> getDataForRequests(IChainedNode... requests)
    • getDataForRequests

      public IContainer<? extends INode<?>> getDataForRequests(Iterable<? extends IChainedNode> requests)
    • getPeerType

      public PeerType getPeerType()
    • getSecurityMode

      public SecurityMode getSecurityMode()
    • hasCustomTargetSlot

      public boolean hasCustomTargetSlot()
    • runCommand

      public void runCommand(IChainedNode command)
    • runCommands

      public void runCommands(Iterable<? extends IChainedNode> commands)