jdk/src/java.management/share/classes/javax/management/monitor/Monitor.java
changeset 29927 9cc3e111a1d8
parent 29921 f13586cdb0e4
child 37518 cd27455e4276
equal deleted inserted replaced
29926:2eceae3716d9 29927:9cc3e111a1d8
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   385      * be registered.
   385      * be registered.
   386      * @param name The object name of the monitor MBean.
   386      * @param name The object name of the monitor MBean.
   387      *
   387      *
   388      * @return The name of the monitor MBean registered.
   388      * @return The name of the monitor MBean registered.
   389      *
   389      *
   390      * @exception Exception
   390      * @exception Exception if something goes wrong
   391      */
   391      */
   392     public ObjectName preRegister(MBeanServer server, ObjectName name)
   392     public ObjectName preRegister(MBeanServer server, ObjectName name)
   393         throws Exception {
   393         throws Exception {
   394 
   394 
   395         MONITOR_LOGGER.logp(Level.FINER, Monitor.class.getName(),
   395         MONITOR_LOGGER.logp(Level.FINER, Monitor.class.getName(),
   414      * Allows the monitor MBean to perform any operations it needs
   414      * Allows the monitor MBean to perform any operations it needs
   415      * before being unregistered by the MBean server.
   415      * before being unregistered by the MBean server.
   416      * <P>
   416      * <P>
   417      * Stops the monitor.
   417      * Stops the monitor.
   418      *
   418      *
   419      * @exception Exception
   419      * @exception Exception if something goes wrong
   420      */
   420      */
   421     public void preDeregister() throws Exception {
   421     public void preDeregister() throws Exception {
   422 
   422 
   423         MONITOR_LOGGER.logp(Level.FINER, Monitor.class.getName(),
   423         MONITOR_LOGGER.logp(Level.FINER, Monitor.class.getName(),
   424                 "preDeregister()", "stop the monitor");
   424                 "preDeregister()", "stop the monitor");