Class NetEndPoint
java.lang.Object
ch.nolix.base.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.base.net.executoranddataproviderserver.AbstractEndPoint
ch.nolix.base.net.executoranddataproviderserver.NetEndPoint
- All Implemented Interfaces:
BaseEndPoint, DataProvider, EndPoint, Executor, ExecutorAndDataProvider, ConnectionTypeHolder, SecurityModeHolder, Closeable, GroupCloseable, OpennessRequestable, AutoCloseable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionNode<?> getDataForRequest(ChainedNode request) ExtendedIterable<? extends Node<?>> getDataForRequests(ChainedNode... requests) ExtendedIterable<? extends Node<?>> getDataForRequests(Iterable<? extends ChainedNode> requests) booleanvoidrunCommand(ChainedNode command) voidrunCommands(Iterable<? extends ChainedNode> 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
hasExecutorAndDataProvider, noteClose, runCommands, setExecutorAndDataProviderMethods inherited from class AbstractBaseEndPoint
getStoredCloseController, getTargetSlotDefinitionType, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseEndPoint
getTargetSlotDefinitionType, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosedMethods inherited from interface OpennessRequestable
isOpen
-
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
- Returns:
- the
ConnectionTypeof the currentConnectionTypeHolder
-
getCustomTargetSlot
-
getDataForRequest
-
getDataForRequests
-
getDataForRequests
public ExtendedIterable<? extends Node<?>> getDataForRequests(Iterable<? extends ChainedNode> requests) -
getPeerType
-
getSecurityMode
- Returns:
- the
SecurityModeof the currentSecurityModeHolder
-
hasCustomTargetSlot
public boolean hasCustomTargetSlot() -
runCommand
-
runCommands
-