null);
ValueConstraint jvmThreadContentionMonitoringVC = new EnumerationConstraint(
new int[] { JvmManagementMib.JvmThreadContentionMonitoringEnum.enabled,
JvmManagementMib.JvmThreadContentionMonitoringEnum.disabled });
scalar.addMOValueValidationListener(
new ValueConstraintValidator(jvmThreadContentionMonitoringVC));
scalar = (MOScalar)
server.getManagedObject(JvmManagementMib.oidJvmThreadCpuTimeMonitoring,
null);
ValueConstraint jvmThreadCpuTimeMonitoringVC = new EnumerationConstraint(
new int[] { JvmManagementMib.JvmThreadContentionMonitoringEnum.enabled,
JvmManagementMib.JvmThreadContentionMonitoringEnum.disabled });
scalar.addMOValueValidationListener(
new ValueConstraintValidator(jvmThreadCpuTimeMonitoringVC));
}