Class TableDataServiceExporter
java.lang.Object
com.illumon.iris.db.v2.locations.server.TableDataServiceExporter
Exports a TableDataService to RemoteTableDataService (clients) via the TableDataProtocol.
-
Constructor Summary
ConstructorsConstructorDescriptionTableDataServiceExporter(io.deephaven.enterprise.niowrapper.sched.Scheduler scheduler, com.fishlib.io.logger.Logger log, String name, TableDataService tableDataService, boolean asyncColumnFileDataReads, AuthenticationClientManager authenticationClientManager, AuditEventLoggerBasicEx auditEventLoggerBasic, TableDataProtocol.TableAccessChecker tableAccessChecker) Construct a new server that delegates to the supplied service. -
Method Summary
Modifier and TypeMethodDescriptionaccept(int port) Start accepting remote clients.acceptLocalClient(String name) Accept an in-process client.intReturn the single port that has been attached viaaccept(int).Return all ports that have been attached viaaccept(int).voidshutdown()
-
Constructor Details
-
TableDataServiceExporter
public TableDataServiceExporter(@NotNull io.deephaven.enterprise.niowrapper.sched.Scheduler scheduler, @NotNull com.fishlib.io.logger.Logger log, @NotNull String name, @NotNull TableDataService tableDataService, boolean asyncColumnFileDataReads, @NotNull AuthenticationClientManager authenticationClientManager, @NotNull AuditEventLoggerBasicEx auditEventLoggerBasic, @NotNull TableDataProtocol.TableAccessChecker tableAccessChecker) Construct a new server that delegates to the supplied service.- Parameters:
scheduler- Job schedulerlog- Logger for outputname- Exporter nametableDataService- Service to exportasyncColumnFileDataReads- Be careful with this - it may not always positively impact request latency!authenticationClientManager- an AuthenticationClientManager to be used for token verificationauditEventLoggerBasic- a basic audit event loggertableAccessChecker- callback to evaluate whether the configured user has access to a given table
-
-
Method Details
-
accept
Start accepting remote clients.- Parameters:
port- The port to bind to and listen on- Returns:
- this
- Throws:
IOException
-
getAcceptedPorts
Return all ports that have been attached viaaccept(int).- Returns:
- a list of all accepted ports
-
getAcceptedPort
public int getAcceptedPort()Return the single port that has been attached viaaccept(int). If more than one port has been accepted, then throw an IllegalStateException.- Returns:
- the single port in use
-
acceptLocalClient
Accept an in-process client.- Parameters:
name- The name to use for the client- Returns:
- this
-
shutdown
public void shutdown()
-