@Test public void testVersionOrHelpReturnFalse() { assertFalse(new ProxyConfig().parseArguments(new String[]{"--version"}, "PushAgentTest")); assertFalse(new ProxyConfig().parseArguments(new String[]{"--help"}, "PushAgentTest")); assertTrue(new ProxyConfig().parseArguments(new String[]{"--host", "host"}, "PushAgentTest")); }
public boolean parseArguments(String[] args, String programName) throws ParameterException { String versionStr = "Wavefront Proxy version " + getBuildVersion(); JCommander jCommander = JCommander.newBuilder(). programName(programName). addObject(this). allowParameterOverwriting(true). build(); jCommander.parse(args); if (this.isVersion()) { System.out.println(versionStr); return false; } if (this.isHelp()) { System.out.println(versionStr); jCommander.usage(); return false; } return true; }
ProxyConfig extends Configuration { public boolean parseArguments(String[] args, String programName) throws ParameterException { String versionStr = "Wavefront Proxy version " + getBuildVersion(); JCommander jCommander = JCommander.newBuilder(). programName(programName). addObject(this). allowParameterOverwriting(true). build(); jCommander.parse(args); if (this.isVersion()) { System.out.println(versionStr); return false; } if (this.isHelp()) { System.out.println(versionStr); jCommander.usage(); return false; } return true; } }
ProxyConfig extends Configuration { public boolean parseArguments(String[] args, String programName) throws ParameterException { String versionStr = "Wavefront Proxy version " + getBuildVersion(); JCommander jCommander = JCommander.newBuilder(). programName(programName). addObject(this). allowParameterOverwriting(true). build(); jCommander.parse(args); if (this.isVersion()) { System.out.println(versionStr); return false; } if (this.isHelp()) { System.out.println(versionStr); jCommander.usage(); return false; } return true; }  }
ProxyConfig extends Configuration { public boolean parseArguments(String[] args, String programName) throws ParameterException { String versionStr = "Wavefront Proxy version " + getBuildVersion(); JCommander jCommander = JCommander.newBuilder(). programName(programName). addObject(this). allowParameterOverwriting(true). build(); jCommander.parse(args); if (this.isVersion()) { System.out.println(versionStr); return false; } if (this.isHelp()) { System.out.println(versionStr); jCommander.usage(); return false; } return true; }  boolean isHelp(); boolean isVersion(); String getPrefix(); String getToken(); boolean isTestLogs(); String getTestPreprocessorForPort(); String getTestSpanPreprocessorForPort(); String getServer(); String getBufferFile(); boolean isSqsQueueBuffer(); String getSqsQueueNameTemplate(); String getSqsQueueRegion(); String getSqsQueueIdentifier(); TaskQueueLevel getTaskQueueLevel(); String getExportQueuePorts(); String getExportQueueOutputFile(); boolean isExportQueueRetainData(); boolean isUseNoopSender(); Integer getFlushThreads(); int getFlushThreadsSourceTags(); int getFlushThreadsEvents(); boolean isPurgeBuffer(); int getPushFlushInterval(); int getPushFlushMaxPoints(); int getPushFlushMaxHistograms(); int getPushFlushMaxSourceTags(); int getPushFlushMaxSpans(); int getPushFlushMaxSpanLogs(); int getPushFlushMaxEvents(); double getPushRateLimit(); double getPushRateLimitHistograms(); double getPushRateLimitSourceTags(); double getPushRateLimitSpans(); double getPushRateLimitSpanLogs(); double getPushRateLimitEvents(); int getPushRateLimitMaxBurstSeconds(); int getPushMemoryBufferLimit(); Integer getPushBlockedSamples(); String getBlockedPointsLoggerName(); String getBlockedHistogramsLoggerName(); String getBlockedSpansLoggerName(); String getPushListenerPorts(); Integer getPushListenerMaxReceivedLength(); Integer getPushListenerHttpBufferSize(); Integer getTraceListenerMaxReceivedLength(); Integer getTraceListenerHttpBufferSize(); int getListenerIdleConnectionTimeout(); int getMemGuardFlushThreshold(); boolean isHistogramPassthroughRecompression(); String getHistogramStateDirectory(); Long getHistogramAccumulatorResolveInterval(); Long getHistogramAccumulatorFlushInterval(); Integer getHistogramAccumulatorFlushMaxBatchSize(); Integer getHistogramMaxReceivedLength(); Integer getHistogramHttpBufferSize(); String getHistogramMinuteListenerPorts(); Integer getHistogramMinuteFlushSecs(); Short getHistogramMinuteCompression(); Integer getHistogramMinuteAvgKeyBytes(); Integer getHistogramMinuteAvgDigestBytes(); Long getHistogramMinuteAccumulatorSize(); boolean isHistogramMinuteAccumulatorPersisted(); boolean isHistogramMinuteMemoryCache(); String getHistogramHourListenerPorts(); Integer getHistogramHourFlushSecs(); Short getHistogramHourCompression(); Integer getHistogramHourAvgKeyBytes(); Integer getHistogramHourAvgDigestBytes(); Long getHistogramHourAccumulatorSize(); boolean isHistogramHourAccumulatorPersisted(); boolean isHistogramHourMemoryCache(); String getHistogramDayListenerPorts(); Integer getHistogramDayFlushSecs(); Short getHistogramDayCompression(); Integer getHistogramDayAvgKeyBytes(); Integer getHistogramDayAvgDigestBytes(); Long getHistogramDayAccumulatorSize(); boolean isHistogramDayAccumulatorPersisted(); boolean isHistogramDayMemoryCache(); String getHistogramDistListenerPorts(); Integer getHistogramDistFlushSecs(); Short getHistogramDistCompression(); Integer getHistogramDistAvgKeyBytes(); Integer getHistogramDistAvgDigestBytes(); Long getHistogramDistAccumulatorSize(); boolean isHistogramDistAccumulatorPersisted(); boolean isHistogramDistMemoryCache(); String getGraphitePorts(); String getGraphiteFormat(); String getGraphiteDelimiters(); String getGraphiteFieldsToRemove(); String getJsonListenerPorts(); String getDataDogJsonPorts(); String getDataDogRequestRelayTarget(); int getDataDogRequestRelayAsyncThreads(); boolean isDataDogRequestRelaySyncMode(); boolean isDataDogProcessSystemMetrics(); boolean isDataDogProcessServiceChecks(); String getWriteHttpJsonListenerPorts(); Integer getFilebeatPort(); Integer getRawLogsPort(); Integer getRawLogsMaxReceivedLength(); Integer getRawLogsHttpBufferSize(); String getLogsIngestionConfigFile(); String getHostname(); String getIdFile(); String getAllowRegex(); String getBlockRegex(); String getOpentsdbPorts(); String getOpentsdbAllowRegex(); String getOpentsdbBlockRegex(); String getPicklePorts(); String getTraceListenerPorts(); String getTraceJaegerListenerPorts(); String getTraceJaegerHttpListenerPorts(); String getTraceJaegerGrpcListenerPorts(); String getTraceJaegerApplicationName(); String getTraceZipkinListenerPorts(); String getTraceZipkinApplicationName(); String getCustomTracingListenerPorts(); String getCustomTracingApplicationName(); String getCustomTracingServiceName(); double getTraceSamplingRate(); Integer getTraceSamplingDuration(); Set<String> getTraceDerivedCustomTagKeys(); boolean isTraceAlwaysSampleErrors(); String getPushRelayListenerPorts(); boolean isPushRelayHistogramAggregator(); Long getPushRelayHistogramAggregatorAccumulatorSize(); Integer getPushRelayHistogramAggregatorFlushSecs(); Short getPushRelayHistogramAggregatorCompression(); boolean isSplitPushWhenRateLimited(); double getRetryBackoffBaseSeconds(); List<String> getCustomSourceTags(); Map<String, String> getAgentMetricsPointTags(); boolean isEphemeral(); boolean isDisableRdnsLookup(); boolean isGzipCompression(); int getGzipCompressionLevel(); Integer getSoLingerTime(); String getProxyHost(); Integer getProxyPort(); String getProxyUser(); String getProxyPassword(); String getHttpUserAgent(); Integer getHttpConnectTimeout(); Integer getHttpRequestTimeout(); Integer getHttpMaxConnTotal(); Integer getHttpMaxConnPerRoute(); Integer getHttpAutoRetries(); String getPreprocessorConfigFile(); int getDataBackfillCutoffHours(); int getDataPrefillCutoffHours(); TokenValidationMethod getAuthMethod(); String getAuthTokenIntrospectionServiceUrl(); String getAuthTokenIntrospectionAuthorizationHeader(); int getAuthResponseRefreshInterval(); int getAuthResponseMaxTtl(); String getAuthStaticToken(); Integer getAdminApiListenerPort(); String getAdminApiRemoteIpAllowRegex(); String getHttpHealthCheckPorts(); boolean isHttpHealthCheckAllPorts(); String getHttpHealthCheckPath(); String getHttpHealthCheckResponseContentType(); int getHttpHealthCheckPassStatusCode(); String getHttpHealthCheckPassResponseBody(); int getHttpHealthCheckFailStatusCode(); String getHttpHealthCheckFailResponseBody(); long getDeltaCountersAggregationIntervalSeconds(); String getDeltaCountersAggregationListenerPorts(); @JsonIgnore TimeProvider getTimeProvider(); String getPrivateCertPath(); String getPrivateKeyPath(); String getTlsPorts(); boolean isTrafficShaping(); Integer getTrafficShapingWindowSeconds(); double getTrafficShapingHeadroom(); List<String> getCorsEnabledPorts(); List<String> getCorsOrigin(); boolean isCorsAllowNullOrigin(); @Override void verifyAndInit(); boolean parseArguments(String[] args, String programName); }
ProxyConfig extends Configuration { public boolean parseArguments(String[] args, String programName) throws ParameterException { String versionStr = "Wavefront Proxy version " + getBuildVersion(); JCommander jCommander = JCommander.newBuilder(). programName(programName). addObject(this). allowParameterOverwriting(true). build(); jCommander.parse(args); if (this.isVersion()) { System.out.println(versionStr); return false; } if (this.isHelp()) { System.out.println(versionStr); jCommander.usage(); return false; } return true; }  boolean isHelp(); boolean isVersion(); String getPrefix(); String getToken(); boolean isTestLogs(); String getTestPreprocessorForPort(); String getTestSpanPreprocessorForPort(); String getServer(); String getBufferFile(); boolean isSqsQueueBuffer(); String getSqsQueueNameTemplate(); String getSqsQueueRegion(); String getSqsQueueIdentifier(); TaskQueueLevel getTaskQueueLevel(); String getExportQueuePorts(); String getExportQueueOutputFile(); boolean isExportQueueRetainData(); boolean isUseNoopSender(); Integer getFlushThreads(); int getFlushThreadsSourceTags(); int getFlushThreadsEvents(); boolean isPurgeBuffer(); int getPushFlushInterval(); int getPushFlushMaxPoints(); int getPushFlushMaxHistograms(); int getPushFlushMaxSourceTags(); int getPushFlushMaxSpans(); int getPushFlushMaxSpanLogs(); int getPushFlushMaxEvents(); double getPushRateLimit(); double getPushRateLimitHistograms(); double getPushRateLimitSourceTags(); double getPushRateLimitSpans(); double getPushRateLimitSpanLogs(); double getPushRateLimitEvents(); int getPushRateLimitMaxBurstSeconds(); int getPushMemoryBufferLimit(); Integer getPushBlockedSamples(); String getBlockedPointsLoggerName(); String getBlockedHistogramsLoggerName(); String getBlockedSpansLoggerName(); String getPushListenerPorts(); Integer getPushListenerMaxReceivedLength(); Integer getPushListenerHttpBufferSize(); Integer getTraceListenerMaxReceivedLength(); Integer getTraceListenerHttpBufferSize(); int getListenerIdleConnectionTimeout(); int getMemGuardFlushThreshold(); boolean isHistogramPassthroughRecompression(); String getHistogramStateDirectory(); Long getHistogramAccumulatorResolveInterval(); Long getHistogramAccumulatorFlushInterval(); Integer getHistogramAccumulatorFlushMaxBatchSize(); Integer getHistogramMaxReceivedLength(); Integer getHistogramHttpBufferSize(); String getHistogramMinuteListenerPorts(); Integer getHistogramMinuteFlushSecs(); Short getHistogramMinuteCompression(); Integer getHistogramMinuteAvgKeyBytes(); Integer getHistogramMinuteAvgDigestBytes(); Long getHistogramMinuteAccumulatorSize(); boolean isHistogramMinuteAccumulatorPersisted(); boolean isHistogramMinuteMemoryCache(); String getHistogramHourListenerPorts(); Integer getHistogramHourFlushSecs(); Short getHistogramHourCompression(); Integer getHistogramHourAvgKeyBytes(); Integer getHistogramHourAvgDigestBytes(); Long getHistogramHourAccumulatorSize(); boolean isHistogramHourAccumulatorPersisted(); boolean isHistogramHourMemoryCache(); String getHistogramDayListenerPorts(); Integer getHistogramDayFlushSecs(); Short getHistogramDayCompression(); Integer getHistogramDayAvgKeyBytes(); Integer getHistogramDayAvgDigestBytes(); Long getHistogramDayAccumulatorSize(); boolean isHistogramDayAccumulatorPersisted(); boolean isHistogramDayMemoryCache(); String getHistogramDistListenerPorts(); Integer getHistogramDistFlushSecs(); Short getHistogramDistCompression(); Integer getHistogramDistAvgKeyBytes(); Integer getHistogramDistAvgDigestBytes(); Long getHistogramDistAccumulatorSize(); boolean isHistogramDistAccumulatorPersisted(); boolean isHistogramDistMemoryCache(); String getGraphitePorts(); String getGraphiteFormat(); String getGraphiteDelimiters(); String getGraphiteFieldsToRemove(); String getJsonListenerPorts(); String getDataDogJsonPorts(); String getDataDogRequestRelayTarget(); int getDataDogRequestRelayAsyncThreads(); boolean isDataDogRequestRelaySyncMode(); boolean isDataDogProcessSystemMetrics(); boolean isDataDogProcessServiceChecks(); String getWriteHttpJsonListenerPorts(); Integer getFilebeatPort(); Integer getRawLogsPort(); Integer getRawLogsMaxReceivedLength(); Integer getRawLogsHttpBufferSize(); String getLogsIngestionConfigFile(); String getHostname(); String getIdFile(); String getAllowRegex(); String getBlockRegex(); String getOpentsdbPorts(); String getOpentsdbAllowRegex(); String getOpentsdbBlockRegex(); String getPicklePorts(); String getTraceListenerPorts(); String getTraceJaegerListenerPorts(); String getTraceJaegerHttpListenerPorts(); String getTraceJaegerGrpcListenerPorts(); String getTraceJaegerApplicationName(); String getTraceZipkinListenerPorts(); String getTraceZipkinApplicationName(); String getCustomTracingListenerPorts(); String getCustomTracingApplicationName(); String getCustomTracingServiceName(); double getTraceSamplingRate(); Integer getTraceSamplingDuration(); Set<String> getTraceDerivedCustomTagKeys(); boolean isTraceAlwaysSampleErrors(); String getPushRelayListenerPorts(); boolean isPushRelayHistogramAggregator(); Long getPushRelayHistogramAggregatorAccumulatorSize(); Integer getPushRelayHistogramAggregatorFlushSecs(); Short getPushRelayHistogramAggregatorCompression(); boolean isSplitPushWhenRateLimited(); double getRetryBackoffBaseSeconds(); List<String> getCustomSourceTags(); Map<String, String> getAgentMetricsPointTags(); boolean isEphemeral(); boolean isDisableRdnsLookup(); boolean isGzipCompression(); int getGzipCompressionLevel(); Integer getSoLingerTime(); String getProxyHost(); Integer getProxyPort(); String getProxyUser(); String getProxyPassword(); String getHttpUserAgent(); Integer getHttpConnectTimeout(); Integer getHttpRequestTimeout(); Integer getHttpMaxConnTotal(); Integer getHttpMaxConnPerRoute(); Integer getHttpAutoRetries(); String getPreprocessorConfigFile(); int getDataBackfillCutoffHours(); int getDataPrefillCutoffHours(); TokenValidationMethod getAuthMethod(); String getAuthTokenIntrospectionServiceUrl(); String getAuthTokenIntrospectionAuthorizationHeader(); int getAuthResponseRefreshInterval(); int getAuthResponseMaxTtl(); String getAuthStaticToken(); Integer getAdminApiListenerPort(); String getAdminApiRemoteIpAllowRegex(); String getHttpHealthCheckPorts(); boolean isHttpHealthCheckAllPorts(); String getHttpHealthCheckPath(); String getHttpHealthCheckResponseContentType(); int getHttpHealthCheckPassStatusCode(); String getHttpHealthCheckPassResponseBody(); int getHttpHealthCheckFailStatusCode(); String getHttpHealthCheckFailResponseBody(); long getDeltaCountersAggregationIntervalSeconds(); String getDeltaCountersAggregationListenerPorts(); @JsonIgnore TimeProvider getTimeProvider(); String getPrivateCertPath(); String getPrivateKeyPath(); String getTlsPorts(); boolean isTrafficShaping(); Integer getTrafficShapingWindowSeconds(); double getTrafficShapingHeadroom(); List<String> getCorsEnabledPorts(); List<String> getCorsOrigin(); boolean isCorsAllowNullOrigin(); @Override void verifyAndInit(); boolean parseArguments(String[] args, String programName);  }