30
30
import com .navercorp .pinpoint .web .vo .tree .AgentsMapByApplication ;
31
31
import com .navercorp .pinpoint .web .vo .tree .AgentsMapByHost ;
32
32
import com .navercorp .pinpoint .web .vo .agent .AgentAndStatus ;
33
- import com .navercorp .pinpoint .web .vo .agent .AgentInfoFilter ;
34
- import com .navercorp .pinpoint .web .vo .agent .AgentInfoFilterChain ;
33
+ import com .navercorp .pinpoint .web .vo .agent .AgentStatusFilter ;
34
+ import com .navercorp .pinpoint .web .vo .agent .AgentStatusFilterChain ;
35
35
import com .navercorp .pinpoint .web .vo .agent .AgentStatus ;
36
- import com .navercorp .pinpoint .web .vo .agent .DefaultAgentInfoFilter ;
36
+ import com .navercorp .pinpoint .web .vo .agent .DefaultAgentStatusFilter ;
37
37
import com .navercorp .pinpoint .web .vo .agent .DetailedAgentAndStatus ;
38
38
import com .navercorp .pinpoint .web .vo .timeline .inspector .InspectorTimeline ;
39
39
import com .navercorp .pinpoint .web .view .tree .SimpleTreeView ;
@@ -74,7 +74,7 @@ public TreeView<TreeNode<AgentAndStatus>> getAgentList() {
74
74
public TreeView <TreeNode <AgentAndStatus >> getAgentList (
75
75
@ RequestParam ("from" ) long from ,
76
76
@ RequestParam ("to" ) long to ) {
77
- AgentInfoFilter filter = new DefaultAgentInfoFilter (from );
77
+ AgentStatusFilter filter = new DefaultAgentStatusFilter (from );
78
78
long timestamp = to ;
79
79
AgentsMapByApplication allAgentsList = this .agentInfoService .getAllAgentsList (filter , Range .between (from , to ));
80
80
return treeView (allAgentsList );
@@ -84,7 +84,7 @@ public TreeView<TreeNode<AgentAndStatus>> getAgentList(
84
84
@ GetMapping (value = "/getAgentList" , params = {"!application" , "timestamp" })
85
85
public TreeView <TreeNode <AgentAndStatus >> getAgentList (
86
86
@ RequestParam ("timestamp" ) long timestamp ) {
87
- AgentsMapByApplication allAgentsList = this .agentInfoService .getAllAgentsList (AgentInfoFilter ::accept , Range .between (timestamp , timestamp ));
87
+ AgentsMapByApplication allAgentsList = this .agentInfoService .getAllAgentsList (AgentStatusFilter ::accept , Range .between (timestamp , timestamp ));
88
88
return treeView (allAgentsList );
89
89
}
90
90
@@ -104,8 +104,8 @@ public TreeView<TreeNode<AgentStatusAndLink>> getAgentList(
104
104
@ RequestParam ("application" ) String applicationName ,
105
105
@ RequestParam ("from" ) long from ,
106
106
@ RequestParam ("to" ) long to ) {
107
- AgentInfoFilter currentRunFilter = new AgentInfoFilterChain (
108
- new DefaultAgentInfoFilter (from )
107
+ AgentStatusFilter currentRunFilter = new AgentStatusFilterChain (
108
+ new DefaultAgentStatusFilter (from )
109
109
);
110
110
long timestamp = to ;
111
111
AgentsMapByHost list = this .agentInfoService .getAgentsListByApplicationName (currentRunFilter , applicationName , Range .between (from , to ));
@@ -116,8 +116,8 @@ public TreeView<TreeNode<AgentStatusAndLink>> getAgentList(
116
116
public TreeView <TreeNode <AgentStatusAndLink >> getAgentList (
117
117
@ RequestParam ("application" ) String applicationName ,
118
118
@ RequestParam ("timestamp" ) long timestamp ) {
119
- AgentInfoFilter runningAgentFilter = new AgentInfoFilterChain (
120
- AgentInfoFilter ::filterRunning
119
+ AgentStatusFilter runningAgentFilter = new AgentStatusFilterChain (
120
+ AgentStatusFilter ::filterRunning
121
121
);
122
122
AgentsMapByHost list = this .agentInfoService .getAgentsListByApplicationName (runningAgentFilter , applicationName , Range .between (timestamp , timestamp ));
123
123
return treeView (list );
0 commit comments