예제 #1
0
 void gc(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   connectedAgent.gc();
 }
예제 #2
0
 void preloadClasspathCache(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   connectedAgent.preloadClasspathCache();
 }
예제 #3
0
 ThreadDump threadDump(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.threadDump();
 }
예제 #4
0
 long availableDiskSpaceBytes(String agentId, String directory) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.availableDiskSpaceBytes(directory);
 }
예제 #5
0
 List<Trace.Entry> getEntries(String agentId, String traceId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.getEntries(traceId);
 }
예제 #6
0
 public void updateAgentConfig(String agentId, AgentConfig agentConfig) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   connectedAgent.updateAgentConfig(agentConfig);
 }
예제 #7
0
 HeapDumpFileInfo heapDump(String agentId, String directory) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.heapDump(directory);
 }
예제 #8
0
 int reweave(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.reweave();
 }
예제 #9
0
 GlobalMeta globalMeta(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.globalMeta();
 }
예제 #10
0
 Capabilities capabilities(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.capabilities();
 }
예제 #11
0
 MBeanMeta mbeanMeta(String agentId, String objectName) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.mbeanMeta(objectName);
 }
예제 #12
0
 @Nullable
 Trace getFullTrace(String agentId, String traceId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.getFullTrace(traceId);
 }
예제 #13
0
 @Nullable
 Profile getAuxThreadProfile(String agentId, String traceId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.getAuxThreadProfile(traceId);
 }
예제 #14
0
 List<MethodSignature> methodSignatures(String agentId, String className, String methodName)
     throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.methodSignatures(className, methodName);
 }
예제 #15
0
 List<String> matchingMethodNames(
     String agentId, String className, String partialMethodName, int limit) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.matchingMethodNames(className, partialMethodName, limit);
 }
예제 #16
0
 List<String> matchingMBeanObjectNames(String agentId, String partialObjectName, int limit)
     throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.matchingMBeanObjectNames(partialObjectName, limit);
 }
예제 #17
0
 MBeanDump mbeanDump(String agentId, MBeanDumpKind mbeanDumpKind, List<String> objectNames)
     throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.mbeanDump(mbeanDumpKind, objectNames);
 }