Class DataImportServer
java.lang.Object
com.fishlib.util.process.OnetimeShutdownTask
com.illumon.iris.db.tables.dataimport.logtailer.DataImportServer
- All Implemented Interfaces:
com.fishlib.util.process.ShutdownManager.Task,IDataImportServer
public class DataImportServer extends com.fishlib.util.process.OnetimeShutdownTask implements IDataImportServer
Data Import Server: Consumes row-oriented data from log tailers (or similar data sources) and persists Iris'
column-oriented table format, simultaneously serving said data consistently to remote table data clients.
-
Field Summary
Fields Modifier and Type Field Description static longLOG_TAILER_ACK_TIMEOUT_DEFAULTstatic StringLOG_TAILER_ACK_TIMEOUT_PROPstatic longLOG_TAILER_POLL_PAUSE_DEFAULTstatic StringLOG_TAILER_POLL_PAUSE_PROP -
Constructor Summary
Constructors Constructor Description DataImportServer(com.fishlib.io.logger.Logger log, DataRoutingService.DataImportServiceConfig disConfig, com.fishlib.configuration.Configuration configuration)DataImportServer(com.fishlib.io.logger.Logger log, DataRoutingService.DataImportServiceConfig disConfig, com.fishlib.configuration.Configuration configuration, SchemaService schemaService)Construct aDataImportServer. -
Method Summary
Modifier and Type Method Description SimpleDataImportStreamProcessorcreateSimpleProcessor(String description, FullTableLocationKey streamKey, Runnable closeCallback, SimpleDataImportStreamProcessor.OnReject onReject)Create a SimpleDataImportStreamProcessor for importing data into this DataImportServer.static DataImportServergetDataImportServer(com.fishlib.io.logger.Logger log, DataRoutingService.DataImportServiceConfig disConfig, com.fishlib.configuration.Configuration configuration, SchemaService schemaService)SchemaServicegetSchemaService()TableDataServicegetTableDataService()static voidmain(String... args)voidshutdown()voidstart()Deprecated.usestartInWorker()insteadvoidstartInWorker()Start accepting connections in-worker.Methods inherited from class com.fishlib.util.process.OnetimeShutdownTask
adapt, awaitShutdown, awaitShutdown, invoke, isShutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.tables.dataimport.logtailer.IDataImportServer
isShutdown
-
Field Details
-
LOG_TAILER_POLL_PAUSE_PROP
- See Also:
- Constant Field Values
-
LOG_TAILER_ACK_TIMEOUT_PROP
- See Also:
- Constant Field Values
-
LOG_TAILER_POLL_PAUSE_DEFAULT
public static final long LOG_TAILER_POLL_PAUSE_DEFAULT- See Also:
- Constant Field Values
-
LOG_TAILER_ACK_TIMEOUT_DEFAULT
public static final long LOG_TAILER_ACK_TIMEOUT_DEFAULT- See Also:
- Constant Field Values
-
-
Constructor Details
-
DataImportServer
public DataImportServer(@NotNull com.fishlib.io.logger.Logger log, @NotNull DataRoutingService.DataImportServiceConfig disConfig, @NotNull com.fishlib.configuration.Configuration configuration, @NotNull SchemaService schemaService) throws IOExceptionConstruct aDataImportServer.- Parameters:
log- the log to output messages todisConfig- the parameters that define this DIS instanceconfiguration- the configuration to use when fetching settings that aren't included in disConfigschemaService- the SchemaService to use- Throws:
IOException
-
DataImportServer
@Deprecated public DataImportServer(@NotNull com.fishlib.io.logger.Logger log, @NotNull DataRoutingService.DataImportServiceConfig disConfig, @NotNull com.fishlib.configuration.Configuration configuration) throws IOExceptionDeprecated.Delegate toDataImportServer(Logger, DataRoutingService.DataImportServiceConfig, Configuration, SchemaService)with the default schema service.- Parameters:
log- the log to output messages todisConfig- the parameters that define this DIS instanceconfiguration- the configuration to use when fetching settings that aren't included in disConfig- Throws:
IOException
-
-
Method Details
-
getTableDataService
- Specified by:
getTableDataServicein interfaceIDataImportServer
-
getSchemaService
- Specified by:
getSchemaServicein interfaceIDataImportServer
-
start
Deprecated.usestartInWorker()instead- Throws:
IOException
-
startInWorker
Start accepting connections in-worker.- Specified by:
startInWorkerin interfaceIDataImportServer- Throws:
IOException
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceIDataImportServer- Specified by:
shutdownin classcom.fishlib.util.process.OnetimeShutdownTask
-
createSimpleProcessor
public SimpleDataImportStreamProcessor createSimpleProcessor(@NotNull String description, @NotNull FullTableLocationKey streamKey, @NotNull Runnable closeCallback, @NotNull SimpleDataImportStreamProcessor.OnReject onReject)Create a SimpleDataImportStreamProcessor for importing data into this DataImportServer.- Specified by:
createSimpleProcessorin interfaceIDataImportServer- Parameters:
description- a description for the data connectionstreamKey- destination informationcloseCallback- callback to be invoked when the simple data stream is closedonReject- callback to be invoked if the simple data stream is rejected- Returns:
- a new SimpleDataImportStreamProcessor
-
main
- Throws:
IOException
-
getDataImportServer
public static DataImportServer getDataImportServer(com.fishlib.io.logger.Logger log, DataRoutingService.DataImportServiceConfig disConfig, com.fishlib.configuration.Configuration configuration, SchemaService schemaService) throws IOException- Throws:
IOException
-