Class TableDataProtocolDriverImpl
java.lang.Object
com.illumon.iris.db.v2.locations.protocol.TableDataProtocolDriverImpl
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,TableDataProtocolDriver,NamedImplementation
public class TableDataProtocolDriverImpl
extends Object
implements TableDataProtocolDriver, NamedImplementation, com.fishlib.base.log.LogOutputAppendable
Remote
TableDataService implementation.-
Constructor Summary
ConstructorsConstructorDescriptionTableDataProtocolDriverImpl(io.deephaven.enterprise.niowrapper.sched.Scheduler scheduler, com.fishlib.io.logger.Logger log, String name, long requestTimeoutMillis, boolean allowIOMessageFlush) Construct a new remote table data service, ready to be connected. -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) voidvoidconnect(com.fishlib.base.Function.Nullary<SocketAddress> addressFunction) Connect to a remote server by address function, allowing fallback to different server addresses.voidConnect to a remote server.voidconnect(InetSocketAddress address) Connect to a remote server.connectLocalServer(String name) removePendingRequest(long requestKey) voidshutdown()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
-
Constructor Details
-
TableDataProtocolDriverImpl
public TableDataProtocolDriverImpl(@NotNull io.deephaven.enterprise.niowrapper.sched.Scheduler scheduler, @NotNull com.fishlib.io.logger.Logger log, @NotNull String name, long requestTimeoutMillis, boolean allowIOMessageFlush) Construct a new remote table data service, ready to be connected.- Parameters:
scheduler- Job schedulerlog- Logger for outputname- Remote service namerequestTimeoutMillis- The timeout value to use for all requestsallowIOMessageFlush- allow synchronous flush of message buffers
-
-
Method Details
-
authenticate
public void authenticate()- Specified by:
authenticatein interfaceTableDataProtocolDriver
-
connect
Description copied from interface:TableDataProtocolDriverConnect to a remote server.- Specified by:
connectin interfaceTableDataProtocolDriver- Parameters:
address- The host/port to connect to- Throws:
IOException
-
connect
Description copied from interface:TableDataProtocolDriverConnect to a remote server.- Specified by:
connectin interfaceTableDataProtocolDriver- Parameters:
host- The host to connect toport- The port to connect to- Throws:
IOException
-
connect
public void connect(@NotNull com.fishlib.base.Function.Nullary<SocketAddress> addressFunction) throws IOException Description copied from interface:TableDataProtocolDriverConnect to a remote server by address function, allowing fallback to different server addresses.- Specified by:
connectin interfaceTableDataProtocolDriver- Parameters:
addressFunction- The address function to determine each connection attempt's host and port- Throws:
IOException
-
connectLocalServer
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceTableDataProtocolDriver
-
removePendingRequest
- Specified by:
removePendingRequestin interfaceTableDataProtocolDriver
-
takeOrAllocateFreeRequest
- Specified by:
takeOrAllocateFreeRequestin interfaceTableDataProtocolDriver
-
getLogPrefix
- Specified by:
getLogPrefixin interfaceTableDataProtocolDriver
-
toString
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) - Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable
-