Skip to content

fixed jmx bean naming #155

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,25 @@ public static MonitoringManager PlatformDependent(final String name)

return JMX();
}

/**
* Provide a platform dependent MonitoringManager.
* This is either the "JMX" implementation or the "Disabled" implementation
* on android systems.
*
* This method does not create a storage specific name.
*
* @return a platform dependent MonitoringManage instance
*/
public static MonitoringManager PlatformDependent()
{
if(VMInfo.New().isAnyAndroid())
{
return Disabled();
}

return JMX(null);
}

/**
* Provides a new instance of the default JMX MonitoringManager implementation.
Expand Down Expand Up @@ -155,6 +174,8 @@ public JMX(final String storageName)
{
super();
this.storageName = storageName;

logger.debug("create MonitoringManager for storage: " + this.storageName);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static LazyReferenceManager New(
checker,
_longReference.New(milliTimeCheckInterval),
_longReference.New(nanoTimeBudget) ,
MonitoringManager.PlatformDependent(null)
MonitoringManager.PlatformDependent()
);
}

Expand Down
Loading