Class LocalEndPoint
java.lang.Object
ch.nolix.base.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.base.net.executoranddataproviderserver.AbstractEndPoint
ch.nolix.base.net.executoranddataproviderserver.LocalEndPoint
- All Implemented Interfaces:
BaseEndPoint, DataProvider, EndPoint, Executor, ExecutorAndDataProvider, ConnectionTypeHolder, SecurityModeHolder, Closeable, GroupCloseable, OpennessRequestable, AutoCloseable
A
LocalEndPoint can communicate with another LocalEndPoint.- Author:
- Silvan Wyss
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newLocalEndPointthat will connect to another new local duplex controller. -
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 LocalEndPointMethods 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
-
Constructor Details
-
LocalEndPoint
public LocalEndPoint()Creates a newLocalEndPointthat will connect to another new local duplex controller.
-
-
Method Details
-
toSlot
- Parameters:
slot-- Returns:
- a new
LocalEndPointthat will connect to the given slot - Throws:
RuntimeException- if the given slot is null
-
getConnectionType
- Returns:
- the
ConnectionTypeof the currentConnectionTypeHolder
-
getDataForRequest
- Returns:
- the data the given request requests from this local duplex controller
- Throws:
ArgumentDoesNotHaveAttributeException- if thisLocalEndPointdoes not have a receiver controller.
-
getDataForRequests
-
getDataForRequests
public ExtendedIterable<? extends Node<?>> getDataForRequests(Iterable<? extends ChainedNode> requests) -
getStoredCounterpart
- Returns:
- the counterpart of this
LocalEndPoint.
-
getCustomTargetSlot
- Returns:
- the target of this
LocalEndPoint.
-
getPeerType
-
getSecurityMode
- Returns:
- the
SecurityModeof the currentSecurityModeHolder
-
hasCustomTargetSlot
public boolean hasCustomTargetSlot() -
runCommand
-
runCommands
-