equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2012, 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 |
193 * @param server The MBean server in which the timer MBean will be registered. |
193 * @param server The MBean server in which the timer MBean will be registered. |
194 * @param name The object name of the timer MBean. |
194 * @param name The object name of the timer MBean. |
195 * |
195 * |
196 * @return The name of the timer MBean registered. |
196 * @return The name of the timer MBean registered. |
197 * |
197 * |
198 * @exception java.lang.Exception |
198 * @exception java.lang.Exception if something goes wrong |
199 */ |
199 */ |
200 public ObjectName preRegister(MBeanServer server, ObjectName name) |
200 public ObjectName preRegister(MBeanServer server, ObjectName name) |
201 throws java.lang.Exception { |
201 throws java.lang.Exception { |
202 return name; |
202 return name; |
203 } |
203 } |
215 * Allows the timer MBean to perform any operations it needs before being unregistered |
215 * Allows the timer MBean to perform any operations it needs before being unregistered |
216 * by the MBean server. |
216 * by the MBean server. |
217 * <P> |
217 * <P> |
218 * Stops the timer. |
218 * Stops the timer. |
219 * |
219 * |
220 * @exception java.lang.Exception |
220 * @exception java.lang.Exception if something goes wrong |
221 */ |
221 */ |
222 public void preDeregister() throws java.lang.Exception { |
222 public void preDeregister() throws java.lang.Exception { |
223 |
223 |
224 TIMER_LOGGER.logp(Level.FINER, Timer.class.getName(), |
224 TIMER_LOGGER.logp(Level.FINER, Timer.class.getName(), |
225 "preDeregister", "stop the timer"); |
225 "preDeregister", "stop the timer"); |