Ejemplo n.º 1
0
 void gc(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   connectedAgent.gc();
 }
Ejemplo n.º 2
0
 void preloadClasspathCache(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   connectedAgent.preloadClasspathCache();
 }
Ejemplo n.º 3
0
 ThreadDump threadDump(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.threadDump();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 int reweave(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.reweave();
 }
Ejemplo n.º 9
0
 GlobalMeta globalMeta(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.globalMeta();
 }
Ejemplo n.º 10
0
 Capabilities capabilities(String agentId) throws Exception {
   ConnectedAgent connectedAgent = connectedAgents.get(agentId);
   if (connectedAgent == null) {
     throw new AgentNotConnectedException();
   }
   return connectedAgent.capabilities();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }