-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: future-DUCC
-
Component/s: DUCC
-
Labels:None
Agent collects node processes in multiple classes:
CGroupsManager.java
NodeMemInfoCollector.java
NodeUsersCollector.java
The processes are collected by exec'ing OS 'ps ..' command and scraping the output.
Refactor to use a single helper class to collect process info and make it available as a list to the above classes. This would hide the algorithm for obtaining process info from client classes as well as remove duplicated code.