Interface EndpointRouter
- All Known Implementing Classes:
HotRodEndpointRouter,RestEndpointRouter,SinglePortEndpointRouter
public interface EndpointRouter
The EndpointRouter interface. Currently the EndpointRouter is coupled closely with the the
EndpointRouter.Protocol it implements.- Author:
- Sebastian Ćaskawiec
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe protocol the router implements. -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Gets theEndpointRouter's host.getIp()Gets theEndpointRouter's IP address.getPort()Gets theEndpointRouter's port.GetsEndpointRouter.Protocolimplemented by thisEndpointRouter.voidstart(RoutingTable routingTable, org.infinispan.manager.EmbeddedCacheManager cm) Starts theEndpointRouter.voidstop()Stops theEndpointRouter.
-
Method Details
-
start
Starts theEndpointRouter.- Parameters:
routingTable-RoutingTablefor supplyingRoutes.
-
stop
void stop()Stops theEndpointRouter. -
getHost
String getHost()Gets theEndpointRouter's host. -
getIp
InetAddress getIp()Gets theEndpointRouter's IP address. -
getPort
Integer getPort()Gets theEndpointRouter's port. -
getProtocol
EndpointRouter.Protocol getProtocol()GetsEndpointRouter.Protocolimplemented by thisEndpointRouter.
-