@@ -39,11 +39,10 @@ public class LocalPubsubHelper {
3939 private final int port ;
4040 private final LocalServiceHelper serviceHelper ;
4141
42-
4342 // Local server settings
4443 private static final int DEFAULT_PORT = 8080 ;
4544 private static final String DEFAULT_HOST = "localhost" ;
46- private static final URL EMULATE_URL ;
45+ private static final URL EMULATOR_URL ;
4746
4847 // GCloud emulator settings
4948 private static final String GCLOUD_CMD_TEXT = "gcloud beta emulators pubsub start" ;
@@ -59,7 +58,7 @@ public class LocalPubsubHelper {
5958
6059 static {
6160 try {
62- EMULATE_URL = new URL ("http://storage.googleapis.com/pubsub/tools/" + FILENAME );
61+ EMULATOR_URL = new URL ("http://storage.googleapis.com/pubsub/tools/" + FILENAME );
6362 } catch (MalformedURLException ex ) {
6463 throw new IllegalStateException (ex );
6564 }
@@ -77,8 +76,7 @@ public LocalPubsubHelper() {
7776 new GCloudEmulatorRunner (gcloudCommand , VERSION_PREFIX , MIN_VERSION );
7877 DownloadableEmulatorRunner downloadRunner =
7978 new DownloadableEmulatorRunner (Arrays .asList (BIN_NAME , BIN_CMD_PORT_FLAG + port ),
80- EMULATE_URL ,
81- MD5_CHECKSUM );
79+ EMULATOR_URL , MD5_CHECKSUM );
8280 serviceHelper =
8381 new LocalServiceHelper (Arrays .asList (gcloudRunner , downloadRunner ), port );
8482 }
@@ -123,4 +121,4 @@ public ManagedChannel createChannel() {
123121 .negotiationType (NegotiationType .PLAINTEXT )
124122 .build ();
125123 }
126- }
124+ }
0 commit comments