update airline to 0.7

This commit is contained in:
Xavier Léauté 2015-08-25 15:30:12 -07:00
parent d601038271
commit 9a0c15c52c
21 changed files with 32 additions and 34 deletions

View File

@ -198,7 +198,7 @@
<dependency> <dependency>
<groupId>io.airlift</groupId> <groupId>io.airlift</groupId>
<artifactId>airline</artifactId> <artifactId>airline</artifactId>
<version>0.6</version> <version>0.7</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.skife.config</groupId> <groupId>org.skife.config</groupId>

View File

@ -25,7 +25,7 @@ import com.google.inject.Provides;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.lifecycle.Lifecycle; import com.metamx.common.lifecycle.Lifecycle;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.concurrent.Execs; import io.druid.concurrent.Execs;
import io.druid.curator.PotentiallyGzippedCompressionProvider; import io.druid.curator.PotentiallyGzippedCompressionProvider;
import io.druid.curator.announcement.Announcer; import io.druid.curator.announcement.Announcer;

View File

@ -22,7 +22,7 @@ import com.google.inject.Binder;
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.client.BrokerServerView; import io.druid.client.BrokerServerView;
import io.druid.client.CachingClusteredClient; import io.druid.client.CachingClusteredClient;
import io.druid.client.TimelineServerView; import io.druid.client.TimelineServerView;

View File

@ -25,7 +25,7 @@ import com.google.inject.Provides;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.concurrent.ScheduledExecutorFactory; import com.metamx.common.concurrent.ScheduledExecutorFactory;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.client.indexing.IndexingServiceClient; import io.druid.client.indexing.IndexingServiceClient;
import io.druid.guice.ConfigProvider; import io.druid.guice.ConfigProvider;
import io.druid.guice.Jerseys; import io.druid.guice.Jerseys;

View File

@ -21,9 +21,9 @@ import com.google.common.base.Joiner;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Arguments; import io.airlift.airline.Arguments;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.airlift.command.Option; import io.airlift.airline.Option;
import io.druid.guice.ExtensionsConfig; import io.druid.guice.ExtensionsConfig;
import io.druid.initialization.Initialization; import io.druid.initialization.Initialization;
import io.tesla.aether.internal.DefaultTeslaAether; import io.tesla.aether.internal.DefaultTeslaAether;

View File

@ -22,7 +22,7 @@ import com.google.inject.Binder;
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.client.cache.Cache; import io.druid.client.cache.Cache;
import io.druid.client.cache.CacheConfig; import io.druid.client.cache.CacheConfig;
import io.druid.client.cache.CacheMonitor; import io.druid.client.cache.CacheMonitor;

View File

@ -28,8 +28,8 @@ import com.google.inject.Module;
import com.google.inject.TypeLiteral; import com.google.inject.TypeLiteral;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Arguments; import io.airlift.airline.Arguments;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.guice.LazySingleton; import io.druid.guice.LazySingleton;
import io.druid.indexer.HadoopDruidDetermineConfigurationJob; import io.druid.indexer.HadoopDruidDetermineConfigurationJob;
import io.druid.indexer.HadoopDruidIndexerConfig; import io.druid.indexer.HadoopDruidIndexerConfig;

View File

@ -24,7 +24,7 @@ import com.google.inject.Provides;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.google.inject.util.Providers; import com.google.inject.util.Providers;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.guice.IndexingServiceFirehoseModule; import io.druid.guice.IndexingServiceFirehoseModule;
import io.druid.guice.IndexingServiceModuleHelper; import io.druid.guice.IndexingServiceModuleHelper;
import io.druid.guice.IndexingServiceTaskLogsModule; import io.druid.guice.IndexingServiceTaskLogsModule;

View File

@ -28,7 +28,7 @@ import com.google.inject.name.Names;
import com.google.inject.servlet.GuiceFilter; import com.google.inject.servlet.GuiceFilter;
import com.google.inject.util.Providers; import com.google.inject.util.Providers;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.audit.AuditManager; import io.druid.audit.AuditManager;
import io.druid.client.indexing.IndexingServiceSelectorConfig; import io.druid.client.indexing.IndexingServiceSelectorConfig;
import io.druid.guice.IndexingServiceFirehoseModule; import io.druid.guice.IndexingServiceFirehoseModule;

View File

@ -27,9 +27,9 @@ import com.google.inject.multibindings.MapBinder;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.lifecycle.Lifecycle; import com.metamx.common.lifecycle.Lifecycle;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Arguments; import io.airlift.airline.Arguments;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.airlift.command.Option; import io.airlift.airline.Option;
import io.druid.guice.Binders; import io.druid.guice.Binders;
import io.druid.guice.IndexingServiceFirehoseModule; import io.druid.guice.IndexingServiceFirehoseModule;
import io.druid.guice.Jerseys; import io.druid.guice.Jerseys;

View File

@ -22,7 +22,7 @@ import com.google.inject.Binder;
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.guice.RealtimeModule; import io.druid.guice.RealtimeModule;
import java.util.List; import java.util.List;

View File

@ -22,7 +22,7 @@ import com.google.inject.Binder;
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.client.DruidServer; import io.druid.client.DruidServer;
import io.druid.client.InventoryView; import io.druid.client.InventoryView;
import io.druid.client.ServerView; import io.druid.client.ServerView;

View File

@ -24,7 +24,7 @@ import com.google.inject.Provides;
import com.google.inject.TypeLiteral; import com.google.inject.TypeLiteral;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.curator.discovery.DiscoveryModule; import io.druid.curator.discovery.DiscoveryModule;
import io.druid.curator.discovery.ServerDiscoveryFactory; import io.druid.curator.discovery.ServerDiscoveryFactory;
import io.druid.curator.discovery.ServerDiscoverySelector; import io.druid.curator.discovery.ServerDiscoverySelector;

View File

@ -23,8 +23,8 @@ import com.google.inject.Injector;
import com.google.inject.Key; import com.google.inject.Key;
import com.google.inject.Module; import com.google.inject.Module;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.airlift.command.Option; import io.airlift.airline.Option;
import io.druid.metadata.MetadataStorageConnector; import io.druid.metadata.MetadataStorageConnector;
import io.druid.metadata.MetadataStorageConnectorConfig; import io.druid.metadata.MetadataStorageConnectorConfig;
import io.druid.metadata.MetadataStorageTablesConfig; import io.druid.metadata.MetadataStorageTablesConfig;

View File

@ -18,9 +18,9 @@
package io.druid.cli; package io.druid.cli;
import com.google.inject.Injector; import com.google.inject.Injector;
import io.airlift.command.Cli; import io.airlift.airline.Cli;
import io.airlift.command.Help; import io.airlift.airline.Help;
import io.airlift.command.ParseException; import io.airlift.airline.ParseException;
import io.druid.cli.convert.ConvertProperties; import io.druid.cli.convert.ConvertProperties;
import io.druid.cli.validate.DruidJsonValidator; import io.druid.cli.validate.DruidJsonValidator;
import io.druid.guice.ExtensionsConfig; import io.druid.guice.ExtensionsConfig;

View File

@ -20,8 +20,8 @@ package io.druid.cli;
import com.google.common.base.Throwables; import com.google.common.base.Throwables;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.google.inject.Inject; import com.google.inject.Inject;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.airlift.command.Option; import io.airlift.airline.Option;
import io.druid.guice.ExtensionsConfig; import io.druid.guice.ExtensionsConfig;
import io.druid.indexing.common.config.TaskConfig; import io.druid.indexing.common.config.TaskConfig;
import io.druid.initialization.Initialization; import io.druid.initialization.Initialization;

View File

@ -17,7 +17,7 @@
package io.druid.cli; package io.druid.cli;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.druid.initialization.DruidModule; import io.druid.initialization.DruidModule;
import io.druid.initialization.Initialization; import io.druid.initialization.Initialization;
import io.druid.server.StatusResource; import io.druid.server.StatusResource;

View File

@ -25,11 +25,10 @@ import com.google.common.base.Charsets;
import com.google.common.base.Throwables; import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.metamx.common.guava.CloseQuietly; import com.metamx.common.guava.CloseQuietly;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.airlift.command.Option; import io.airlift.airline.Option;
import io.druid.jackson.DefaultObjectMapper; import io.druid.jackson.DefaultObjectMapper;
import java.io.BufferedWriter; import java.io.BufferedWriter;
@ -41,7 +40,6 @@ import java.io.InputStreamReader;
import java.io.OutputStreamWriter; import java.io.OutputStreamWriter;
import java.io.Reader; import java.io.Reader;
import java.net.URI; import java.net.URI;
import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Properties; import java.util.Properties;

View File

@ -20,8 +20,8 @@ package io.druid.cli.validate;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Throwables; import com.google.common.base.Throwables;
import com.metamx.common.UOE; import com.metamx.common.UOE;
import io.airlift.command.Command; import io.airlift.airline.Command;
import io.airlift.command.Option; import io.airlift.airline.Option;
import io.druid.indexer.HadoopDruidIndexerConfig; import io.druid.indexer.HadoopDruidIndexerConfig;
import io.druid.indexing.common.task.Task; import io.druid.indexing.common.task.Task;
import io.druid.jackson.DefaultObjectMapper; import io.druid.jackson.DefaultObjectMapper;

View File

@ -25,7 +25,7 @@ import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
import org.junit.Rule; import org.junit.Rule;
import io.airlift.command.Cli; import io.airlift.airline.Cli;
import org.junit.rules.TemporaryFolder; import org.junit.rules.TemporaryFolder;

View File

@ -19,7 +19,7 @@
package io.druid.cli.validate; package io.druid.cli.validate;
import io.airlift.command.Cli; import io.airlift.airline.Cli;
import org.junit.After; import org.junit.After;
import org.junit.Assert; import org.junit.Assert;