View Javadoc
1   /*
2    * Copyright 2022 The OSHI Project Contributors
3    * SPDX-License-Identifier: MIT
4    */
5   package oshi.demo.jmx.api;
6   
7   import java.beans.IntrospectionException;
8   
9   import javax.management.InstanceAlreadyExistsException;
10  import javax.management.MBeanRegistrationException;
11  import javax.management.MBeanServer;
12  import javax.management.MalformedObjectNameException;
13  import javax.management.NotCompliantMBeanException;
14  
15  import oshi.SystemInfo;
16  
17  public interface StrategyRegistrationPlatformMBeans {
18      void registerMBeans(SystemInfo systemInfo, MBeanServer mBeanServer)
19              throws NotCompliantMBeanException, InstanceAlreadyExistsException, MBeanRegistrationException,
20              MalformedObjectNameException, IntrospectionException, javax.management.IntrospectionException;
21  }