krichter722 commented on a change in pull request #3050: STORM-3434: server:
fix all checkstyle warnings
URL: https://github.com/apache/storm/pull/3050#discussion_r316786247
##########
File path:
storm-server/src/main/java/org/apache/storm/daemon/supervisor/BasicContainer.java
##########
@@ -439,26 +435,26 @@ protected String getWorkerLogWriter(SimpleVersion
topoVersion) {
*/
protected String getWorkerClassPath(String stormJar, List<String>
dependencyLocations, SimpleVersion topoVersion) {
List<String> workercp = new ArrayList<>();
-
workercp.addAll(asStringList(_topoConf.get(Config.TOPOLOGY_CLASSPATH_BEGINNING)));
+
workercp.addAll(asStringList(topoConf.get(Config.TOPOLOGY_CLASSPATH_BEGINNING)));
workercp.addAll(frameworkClasspath(topoVersion));
workercp.add(stormJar);
workercp.addAll(dependencyLocations);
-
workercp.addAll(asStringList(_topoConf.get(Config.TOPOLOGY_CLASSPATH)));
+ workercp.addAll(asStringList(topoConf.get(Config.TOPOLOGY_CLASSPATH)));
return CPJ.join(workercp);
}
private String substituteChildOptsInternal(String string, int memOnheap) {
if (StringUtils.isNotBlank(string)) {
- String p = String.valueOf(_port);
+ String p = String.valueOf(port);
string = string.replace("%ID%", p);
- string = string.replace("%WORKER-ID%", _workerId);
- string = string.replace("%TOPOLOGY-ID%", _topologyId);
+ string = string.replace("%WORKER-ID%", workerId);
+ string = string.replace("%TOPOLOGY-ID%", topologyId);
string = string.replace("%WORKER-PORT%", p);
if (memOnheap > 0) {
string = string.replace("%HEAP-MEM%",
String.valueOf(memOnheap));
}
- if (memoryLimitMB > 0) {
- string = string.replace("%LIMIT-MEM%",
String.valueOf(memoryLimitMB));
+ if (memoryLimitMb > 0) {
Review comment:
@Ethanlm what does it stand for?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services