Skip to content

Instantly share code, notes, and snippets.

@cleantutorials
Created May 19, 2020 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleantutorials/26c49a7eb8b4efcf56c5aea92e1be31e to your computer and use it in GitHub Desktop.
Save cleantutorials/26c49a7eb8b4efcf56c5aea92e1be31e to your computer and use it in GitHub Desktop.
JMXTutorial.java
package com.cleantutorials.jconsole.jmx;
public class JMXTutorial implements JMXTutorialMBean {
private int noOfStudents;
public int getNoOfStudents() {
return noOfStudents;
}
public void setNoOfStudents(int noOfStudents) {
this.noOfStudents = noOfStudents;
}
public void incrementNoOfStudents() {
noOfStudents++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment