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.booleanbooleanequalsImpl(Object o) InvokeObject.equals(Object)on the given object.Returns a realized endpointgetHost()Returns the host name for this endpointgetName()Returns the service name hosting the endpoint.intgetPort()Returns the port for this endpointbooleanReturns true if this instance has a realized endpoint.inthashCode()intInvokeObject.hashCode().toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, 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
-
SimpleEndpoint
-
-
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- Returns:
- true if realized
-
asString
Description copied from interface:DataRoutingService.DeferredEndpointReturns a string representation of the endpoint.- Specified by:
asStringin interfaceDataRoutingService.DeferredEndpoint- Returns:
- a string representation of the endpoint
-
toString
-
equalsImpl
Description copied from interface:DataRoutingService.DeferredEndpointInvokeObject.equals(Object)on the given object. This forces all subclasses to implement equals.- Specified by:
equalsImplin interfaceDataRoutingService.DeferredEndpoint- Parameters:
o- the other object- Returns:
- the result of the equals method
-
hashCodeImpl
public int hashCodeImpl()Description copied from interface:DataRoutingService.DeferredEndpointInvokeObject.hashCode(). This forces all subclasses to implement hashCode.- Specified by:
hashCodeImplin interfaceDataRoutingService.DeferredEndpoint- Returns:
- the result of the hashCode method
-
equals
-
hashCode
public int hashCode()
-