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

Fixes #5787 - Make ManagedSelector report better JMX data. #5910

Merged
merged 1 commit into from Feb 3, 2021

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Jan 22, 2021

Added SampleStatistics to record data and JMX methods to export it.

Signed-off-by: Simone Bordet simone.bordet@gmail.com

Added SampleStatistics to record data and JMX methods to export it.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet requested review from gregw and lorban January 22, 2021 18:15
@@ -144,6 +148,36 @@ protected void doStop() throws Exception
super.doStop();
}

@ManagedAttribute(value = "Total number of keys", readonly = true)
public int getTotalKeys()
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename this getTotalSelectableKeys maybe?

}

@ManagedOperation(value = "Resets the statistics", impact = "ACTION")
public void resetStats()
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you really sure we want to expose this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is good to have and easy to ignore if you don't want to use it.

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

LGTM

@sbordet sbordet merged commit a26ad6d into jetty-9.4.x Feb 3, 2021
@sbordet sbordet deleted the jetty-9.4.x-5787-managedselector_jmx branch February 3, 2021 14:23
@sbordet sbordet linked an issue Feb 3, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make ManagedSelector report better JMX data
3 participants