Skip to content
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

Issue #5816 : JMX-ify Scheduler implementations #5821

Merged
merged 2 commits into from
Dec 18, 2020

Conversation

rk1165
Copy link
Contributor

@rk1165 rk1165 commented Dec 17, 2020

Signed-off-by: Ravi Kumar kumarravi1165@gmail.com

Signed-off-by: Ravi Kumar <kumarravi1165@gmail.com>
@@ -37,6 +39,7 @@
* queue even if the task did not fire, which provides a huge benefit in the performance
* of garbage collection in young generation.
*/
@ManagedObject("A scheduler")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description does not add any value, so just remove it.

@@ -154,4 +157,22 @@ public boolean cancel()
return scheduledFuture.cancel(false);
}
}

@ManagedAttribute("name of scheduler")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use "The name of the scheduler".

return name;
}

@ManagedAttribute("is scheduler daemon")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use "Whether the scheduler uses daemon threads".

return daemon;
}

@ManagedAttribute("number of scheduler threads")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use "The number of scheduler threads".

Signed-off-by: Ravi Kumar <kumarravi1165@gmail.com>
@rk1165 rk1165 requested a review from sbordet December 18, 2020 04:53
@sbordet
Copy link
Contributor

sbordet commented Dec 18, 2020

Thanks!

@sbordet sbordet merged commit ea24a81 into jetty:jetty-9.4.x Dec 18, 2020
@sbordet sbordet linked an issue Dec 18, 2020 that may be closed by this pull request
This was referenced Mar 10, 2021
This was referenced Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JMX-ify Scheduler implementations
3 participants