open fun setAgentId(agentId: String): Unit
Set the agent id of the MBeanServer to locate.
Default is none. If specified, this will result in an automatic attempt being made to locate the attendant MBeanServer, and (importantly) if said MBeanServer cannot be located no attempt will be made to create a new MBeanServer (and an MBeanServerNotFoundException will be thrown at resolution time).
Specifying the empty String indicates the platform MBeanServer.
See Also
javax.management.MBeanServerFactory#findMBeanServer(String)