Class TableDataServiceExporter
java.lang.Object
com.illumon.iris.db.v2.locations.server.TableDataServiceExporter
public class TableDataServiceExporter extends Object
Exports a TableDataService to RemoteTableDataService (clients) via the TableDataProtocol.
-
Constructor Summary
Constructors Constructor Description TableDataServiceExporter(com.fishlib.io.sched.Scheduler scheduler, com.fishlib.io.logger.Logger log, String name, TableDataService tableDataService, boolean asyncColumnFileDataReads)
Construct a new server that delegate's to the supplied service. -
Method Summary
Modifier and Type Method Description TableDataServiceExporter
accept(int port)
Start accepting remote clients.TableDataProtocol.LocalClient
acceptLocalClient(String name)
Accept an in-process client.void
shutdown()
-
Constructor Details
-
TableDataServiceExporter
public TableDataServiceExporter(@NotNull com.fishlib.io.sched.Scheduler scheduler, @NotNull com.fishlib.io.logger.Logger log, @NotNull String name, @NotNull TableDataService tableDataService, boolean asyncColumnFileDataReads)Construct a new server that delegate's 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!
-
-
Method Details
-
accept
Start accepting remote clients.- Parameters:
port
- The port to bind to and listen on- Returns:
- this
- Throws:
IOException
-
acceptLocalClient
Accept an in-process client.- Parameters:
name
- The name to use for the client- Returns:
- this
-
shutdown
public void shutdown()
-