Class NetEndPoint
java.lang.Object
ch.nolix.base.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.base.net.level3server.AbstractEndPoint
ch.nolix.base.net.level3server.NetEndPoint
- All Implemented Interfaces:
IBaseEndPoint, IController, IDataProvider, IDataProviderController, IEndPoint, Closeable, CloseStateRequestable, GroupCloseable, AutoCloseable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionINode<?> getDataForRequest(IChainedNode request) IContainer<? extends INode<?>> getDataForRequests(IChainedNode... requests) IContainer<? extends INode<?>> getDataForRequests(Iterable<? extends IChainedNode> requests) booleanvoidrunCommand(IChainedNode command) voidrunCommands(Iterable<? extends IChainedNode> commands) static NetEndPointtoGivenHostAndGivenPortAndDefaultSlot(String host, int port) static NetEndPointtoGivenHostAndGivenPortAndGivenSlot(String host, int port, String slot) static NetEndPointstatic NetEndPointtoLocalMachineAndGivenPortAndDefaultSlot(int port) static NetEndPointtoLocalMachineAndGivenPortAndGivenSlot(int port, String slot) Methods inherited from class AbstractEndPoint
hasReceivingDataProviderController, noteClose, runCommands, setReceivingDataProviderControllerMethods inherited from class AbstractBaseEndPoint
getStoredCloseController, getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosedMethods inherited from interface IBaseEndPoint
getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
-
Method Details
-
toLocalMachineAndGivenPortAndDefaultSlot
- Parameters:
port-- Returns:
- a new
NetEndPointthat 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
- Parameters:
port-slot-- Returns:
- a new
NetEndPointthat 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
- Parameters:
host-port-- Returns:
- a new
NetEndPointthat 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
- Parameters:
host-port-slot-- Returns:
- a new
NetEndPointthat 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
- Parameters:
host-- Returns:
- a new
NetEndPointthat will connect to the given slot on the HTTP port on the given host.
-
getConnectionType
-
getCustomTargetSlot
-
getDataForRequest
-
getDataForRequests
-
getDataForRequests
-
getPeerType
-
getSecurityMode
-
hasCustomTargetSlot
public boolean hasCustomTargetSlot() -
runCommand
-
runCommands
-