We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cea30b commit f07acdcCopy full SHA for f07acdc
src/main/java/io/cryostat/agent/remote/InvokeContext.java
@@ -149,6 +149,8 @@ static class MBeanInvocationRequest<T> {
149
"com.sun.management:type=HotSpotDiagnostic";
150
private static final String DIAGNOSTIC_COMMAND_BEAN_NAME =
151
"com.sun.management:type=DiagnosticCommand";
152
+ private static final String JMC_AGENT_BEAN_NAME =
153
+ "org.openjdk.jmc.jfr.agent:type=AgentController";
154
155
public boolean isValid() {
156
if (CRYOSTAT_AGENT_BEAN_NAME.equals(beanName)) {
@@ -163,6 +165,9 @@ public boolean isValid() {
163
165
|| DUMP_THREADS_TO_FIlE.equals(this.operation))) {
164
166
return true;
167
}
168
+ if (JMC_AGENT_BEAN_NAME.equals(beanName)) {
169
+ return true;
170
+ }
171
return false;
172
173
0 commit comments