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 String
asString()
Returns a string representation of the endpoint.DataRoutingService.Endpoint
getEndpoint()
Returns a realized endpointString
getHost()
Returns the host name for this endpointString
getName()
Returns the service name hosting the endpoint.int
getPort()
Returns the port for this endpointboolean
hasEndpoint()
Returns true if this instance has a realized endpoint.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.DeferredEndpoint
append
Methods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.Endpoint
getAddress
-
Constructor Details
-
Method Details
-
getName
Description copied from interface:DataRoutingService.Endpoint
Returns the service name hosting the endpoint.- Specified by:
getName
in interfaceDataRoutingService.DeferredEndpoint
- Specified by:
getName
in interfaceDataRoutingService.Endpoint
-
getHost
Description copied from interface:DataRoutingService.Endpoint
Returns the host name for this endpoint- Specified by:
getHost
in interfaceDataRoutingService.Endpoint
-
getPort
public int getPort()Description copied from interface:DataRoutingService.Endpoint
Returns the port for this endpoint- Specified by:
getPort
in interfaceDataRoutingService.Endpoint
-
getEndpoint
@NotNull public DataRoutingService.Endpoint getEndpoint() throws DataRoutingService.NotReadyExceptionDescription copied from interface:DataRoutingService.DeferredEndpoint
Returns a realized endpoint- Specified by:
getEndpoint
in interfaceDataRoutingService.DeferredEndpoint
- Throws:
DataRoutingService.NotReadyException
- if not realized
-
hasEndpoint
public boolean hasEndpoint()Description copied from interface:DataRoutingService.DeferredEndpoint
Returns true if this instance has a realized endpoint.- Specified by:
hasEndpoint
in interfaceDataRoutingService.DeferredEndpoint
-
asString
Description copied from interface:DataRoutingService.DeferredEndpoint
Returns a string representation of the endpoint.- Specified by:
asString
in interfaceDataRoutingService.DeferredEndpoint
-
toString
-