Class SimpleEndpoint
java.lang.Object
com.illumon.iris.db.v2.routing.endpoint.SimpleEndpoint
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,DataRoutingService.DeferredEndpoint,DataRoutingService.Endpoint
- Direct Known Subclasses:
SimpleLogAggregatorEndpoint
public class SimpleEndpoint extends Object implements DataRoutingService.Endpoint, DataRoutingService.DeferredEndpoint
-
Constructor Summary
Constructors Constructor Description SimpleEndpoint(String name, String host, int port) -
Method Summary
Modifier and Type Method Description StringasString()Returns a string representation of the endpoint.DataRoutingService.EndpointgetEndpoint()Returns a realized endpointStringgetHost()Returns the host name for this endpointStringgetName()Returns the service name hosting the endpoint.intgetPort()Returns the port for this endpointbooleanhasEndpoint()Returns true if this instance has a realized endpoint.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.DeferredEndpoint
appendMethods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.Endpoint
getAddress
-
Constructor Details
-
Method Details
-
getName
Description copied from interface:DataRoutingService.EndpointReturns the service name hosting the endpoint.- Specified by:
getNamein interfaceDataRoutingService.DeferredEndpoint- Specified by:
getNamein interfaceDataRoutingService.Endpoint
-
getHost
Description copied from interface:DataRoutingService.EndpointReturns the host name for this endpoint- Specified by:
getHostin interfaceDataRoutingService.Endpoint
-
getPort
public int getPort()Description copied from interface:DataRoutingService.EndpointReturns the port for this endpoint- Specified by:
getPortin interfaceDataRoutingService.Endpoint
-
getEndpoint
@NotNull public DataRoutingService.Endpoint getEndpoint() throws DataRoutingService.NotReadyExceptionDescription copied from interface:DataRoutingService.DeferredEndpointReturns a realized endpoint- Specified by:
getEndpointin interfaceDataRoutingService.DeferredEndpoint- Throws:
DataRoutingService.NotReadyException- if not realized
-
hasEndpoint
public boolean hasEndpoint()Description copied from interface:DataRoutingService.DeferredEndpointReturns true if this instance has a realized endpoint.- Specified by:
hasEndpointin interfaceDataRoutingService.DeferredEndpoint
-
asString
Description copied from interface:DataRoutingService.DeferredEndpointReturns a string representation of the endpoint.- Specified by:
asStringin interfaceDataRoutingService.DeferredEndpoint
-
toString
-