Class ManagementResourceRegistration.Factory

  • Enclosing interface:
    ManagementResourceRegistration

    public static class ManagementResourceRegistration.Factory
    extends Object
    A factory for creating a new, root model node registration.
    • Method Detail

      • forProcessType

        public static ManagementResourceRegistration.Factory forProcessType​(ProcessType processType)
        Returns a ManagementResourceRegistration's Factory that will use the specified processType and default stability level to determine whether resource metrics are registered or not. If the processType id null, metrics are always registered.
        Parameters:
        processType - can be null
        Returns:
        a Factory which creates ManagementResourceRegistration that dynamically determine whether resource metrics are actually registered
      • forProcessType

        public static ManagementResourceRegistration.Factory forProcessType​(ProcessType processType,
                                                                            Stability stability)
        Returns a ManagementResourceRegistration's Factory that will use the specified processType and stability level to determine whether resource metrics are registered or not. If the processType id null, metrics are always registered.
        Parameters:
        processType - can be null
        stability - a stability level
        Returns:
        a Factory which creates ManagementResourceRegistration that dynamically determine whether resource metrics are actually registered