-
Notifications
You must be signed in to change notification settings - Fork 31
feat(jmc-agent): add handler for retrieving available probe templates #1126
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
feat(jmc-agent): add handler for retrieving available probe templates #1126
Conversation
…a/container-jfr into agent-plugin-agent-handlers
* build(base): update base image * update mergify config
…statio#1122) * init commit on some fixes * changed some comments
default values have been thoroughly tested over a long time and appear to be overly cautious. JDP "settling" doesn't seem to happen and is more likely to indicate a broken implementation than a natural effect.
…only (cryostatio#1132) * build(frontend): do not run frontend tests on build * block PRs manually updating web-client * reflow
…-archives view (cryostatio#1136) * added lost folder, refactored some special cases, fixed metadata interaction with all archives view and deletionFromPath * fixed uts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request blocked. web-client
submodule updates are performed automatically by CI when that repository is updated. Please revert or drop all changes to the web-client
submodule from this PR and perform any required frontend work by opening and merging a PR against cryostat-web.
Nice, that removal of
The problem is here, in public synchronized IConnectionHandle getHandle() {
return this.handle;
}
public synchronized IFlightRecorderService getService()
throws ConnectionException, IOException, ServiceNotAvailableException {
if (!isConnected()) {
connect();
}
IFlightRecorderService service = serviceFactory.getServiceInstance(handle);
if (service == null || !isConnected()) {
throw new ConnectionException(
String.format(
"Could not connect to remote target %s",
this.connectionDescriptor.createJMXServiceURL().toString()));
}
return service;
} This could either be fixed in |
Fixed the getHandle issue in the core PR, and made a quick adjustment here to accompany it |
This PR/issue depends on:
|
…#1126) * Adding agent plugin template management handlers * Adding probe directory creation to the launch script * Fixing missing lisence header, adding resourceActions * Adding Tests, moving handlers to beta handlers, cleanup * Adding agent handlers, adjusting run script * Cleanup, adding tests * Fixing HttpApiBetaModule * Cleanup, enforcing file upload name for ProbeTemplateUploadHandler * Rebasing after core changes, cleanup * bumping core pom version * Fixing run script and integration test setup * fixing core version * fixing spotbugs issues * running spotless * running spotless * Fixing pom.xml and template module sanity checks * Merging changes from upstream * Add probe template fetching handler * Remove entrypoint change for testing * API Handler fixes/cleanup * Running spotless * Fixing spotbugs failure * Adjusting notification structure * Improve error handling for TargetProbesGet * Moving probe mount location * create probes directory if needed * Removing unnecessary connect calls * build(base): update base image (#1120) * build(base): update base image * update mergify config * fix(archives): fix various archives and metadata related issues (#1122) * init commit on some fixes * changed some comments * build(web-client): update submodule to a35c409 * build(web-client): update submodule to 2ac50cd * build(web-client): update submodule to 5a52a48 * test(itest): reduce JDP wait times (#1127) default values have been thoroughly tested over a long time and appear to be overly cautious. JDP "settling" doesn't seem to happen and is more likely to indicate a broken implementation than a natural effect. * build(web-client): update submodule to e41e2c8 * build(pom): use different property for jasypt-hibernate5 (#1130) * build(frontend): skip frontend tests, require frontend updated by CI only (#1132) * build(frontend): do not run frontend tests on build * block PRs manually updating web-client * reflow * fix(archives): fixed archive migration and metadata handling from all-archives view (#1136) * added lost folder, refactored some special cases, fixed metadata interaction with all archives view and deletionFromPath * fixed uts * Accompanying adjustment for the getHandle fix in corE * ignore probes directory Co-authored-by: Andrew Azores <[email protected]> Co-authored-by: Max Cao <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Elliott Baron <[email protected]> Co-authored-by: Andrew Azores <[email protected]> (cherry picked from commit 07894f1)
… (backport #1126) (#1140) * feat(jmc-agent): add handler for retrieving available probe templates (#1126) * Adding agent plugin template management handlers * Adding probe directory creation to the launch script * Fixing missing lisence header, adding resourceActions * Adding Tests, moving handlers to beta handlers, cleanup * Adding agent handlers, adjusting run script * Cleanup, adding tests * Fixing HttpApiBetaModule * Cleanup, enforcing file upload name for ProbeTemplateUploadHandler * Rebasing after core changes, cleanup * bumping core pom version * Fixing run script and integration test setup * fixing core version * fixing spotbugs issues * running spotless * running spotless * Fixing pom.xml and template module sanity checks * Merging changes from upstream * Add probe template fetching handler * Remove entrypoint change for testing * API Handler fixes/cleanup * Running spotless * Fixing spotbugs failure * Adjusting notification structure * Improve error handling for TargetProbesGet * Moving probe mount location * create probes directory if needed * Removing unnecessary connect calls * build(base): update base image (#1120) * build(base): update base image * update mergify config * fix(archives): fix various archives and metadata related issues (#1122) * init commit on some fixes * changed some comments * build(web-client): update submodule to a35c409 * build(web-client): update submodule to 2ac50cd * build(web-client): update submodule to 5a52a48 * test(itest): reduce JDP wait times (#1127) default values have been thoroughly tested over a long time and appear to be overly cautious. JDP "settling" doesn't seem to happen and is more likely to indicate a broken implementation than a natural effect. * build(web-client): update submodule to e41e2c8 * build(pom): use different property for jasypt-hibernate5 (#1130) * build(frontend): skip frontend tests, require frontend updated by CI only (#1132) * build(frontend): do not run frontend tests on build * block PRs manually updating web-client * reflow * fix(archives): fixed archive migration and metadata handling from all-archives view (#1136) * added lost folder, refactored some special cases, fixed metadata interaction with all archives view and deletionFromPath * fixed uts * Accompanying adjustment for the getHandle fix in corE * ignore probes directory Co-authored-by: Andrew Azores <[email protected]> Co-authored-by: Max Cao <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Elliott Baron <[email protected]> Co-authored-by: Andrew Azores <[email protected]> (cherry picked from commit 07894f1) * bump -core version Co-authored-by: Joshua Matsuoka <[email protected]> Co-authored-by: Andrew Azores <[email protected]>
Small PR to add a handler for retrieving currently available probe templates, this is needed for the Agent Plugin frontend. Also fixes an issue with the notification category for the delete handler and tweaks the way the TargetProbesGetHandler outputs the active probes for the frontend.
Keeping as Draft until I add tests for the new handler
Depends on cryostatio/cryostat-core#156