New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6875: Add agent MXBean operation to return instrumented xml configuration #99
Conversation
|
Hi Jessye, Changes look good to me! |
I think it would be nice with a few tests showing the failure modes, and some javadocs around what to expect from the API (especially in terms of failure modes / exceptions), for example setting invalid XML, setting invalid XML and then attempting reading it back and so on.
@jessyec-s this pull request can not be integrated into git checkout JMC-6875
git fetch https://git.openjdk.java.net/jmc master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
Currently, an XML configuration is only stored if it can be successfully instrumented. If a new configuration cannot be instrumented, the current configuration that has already been successfully applied is not overwritten. I have added a test In my initial commit I added a general test for Let me know if these tests cover the failure modes properly! I have also added a javadoc for the |
agent/src/main/java/org/openjdk/jmc/agent/jmx/AgentControllerMXBean.java
Show resolved
Hide resolved
agent/src/test/java/org/openjdk/jmc/agent/test/TestRetrieveEventProbes.java
Show resolved
Hide resolved
agent/src/test/java/org/openjdk/jmc/agent/test/TestRetrieveEventProbes.java
Show resolved
Hide resolved
@jessyec-s This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
There are currently no new commits on the As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@thegreystone) but any other Committer may sponsor as well.
|
/integrate |
@jessyec-s |
/integrate |
@thegreystone Only the author (@jessyec-s) is allowed to issue the |
/sponsor |
@thegreystone @jessyec-s |
This patch adds the MXBean operation
AgentControllerMXBean.retrieveEventProbes()
to the agent. This function is the counterpart ofAgentControllerMXBean.defineEventProbes()
.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jmc pull/99/head:pull/99
$ git checkout pull/99