Class DynamicResolverMixin.DeferredEndpointServiceRegistryImpl
java.lang.Object
com.illumon.iris.db.v2.routing.endpoint.DynamicResolverMixin.DeferredEndpointServiceRegistryImpl
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,DataRoutingService.DeferredEndpoint
- Direct Known Subclasses:
DynamicResolverMixin.DeferredDISEndpointServiceRegistryImpl,DynamicResolverMixin.DeferredLASEndpointServiceRegistryImpl
- Enclosing interface:
- DynamicResolverMixin
public static class DynamicResolverMixin.DeferredEndpointServiceRegistryImpl
extends Object
implements DataRoutingService.DeferredEndpoint
DeferredEndpoint implementation that uses
ServiceRegistryService to resolve endpoints-
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 endpointprotected io.deephaven.registrysupport.routing.RoutingEndpointConfiggetName()Returns a service name hosting the endpoint.booleanReturns true if this instance has a realized endpoint.inthashCode()intInvokeObject.hashCode().protected SimpleEndpointmakeSimpleEndpoint(String name, String host, int port) Create a simple endpoint of the appropriate type.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
append
-
Method Details
-
getName
Description copied from interface:DataRoutingService.DeferredEndpointReturns a service name hosting the endpoint.- Specified by:
getNamein interfaceDataRoutingService.DeferredEndpoint
-
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
-
makeSimpleEndpoint
@NotNull protected SimpleEndpoint makeSimpleEndpoint(@NotNull String name, @NotNull String host, int port) Create a simple endpoint of the appropriate type. Subclasses can override the return type.- Parameters:
name- the name of the endpointhost- the host part of the endpointport- the port part of the endpoint- Returns:
- a new static endpoint
-
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
-
getFromServiceRegistryService
protected io.deephaven.registrysupport.routing.RoutingEndpointConfig getFromServiceRegistryService() -
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()
-