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 -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns a string representation of the endpoint.Returns a realized endpointgetHost()
Returns the host name for this endpointgetName()
Returns the service name hosting the endpoint.int
getPort()
Returns the port for this endpointboolean
Returns true if this instance has a realized endpoint.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
-
SimpleEndpoint
-
-
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
-