ef538188914b32c21847eb81a79093725bb8bfac
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / jmx / notifications / CommitJMXNotification.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.config.api.jmx.notifications;
10
11 import javax.management.NotificationBroadcasterSupport;
12
13 public class CommitJMXNotification extends ConfigJMXNotification {
14
15     private static final String AFTER_COMMIT_MESSAGE_TEMPLATE = "Commit successful: %s";
16
17     CommitJMXNotification(final NotificationBroadcasterSupport source, final String message) {
18         super(ConfigJMXNotification.NotificationType.COMMIT,  source, String.format(AFTER_COMMIT_MESSAGE_TEMPLATE, message));
19     }
20
21     @Override
22     public String toString() {
23         return "CommitJMXNotification{}";
24     }
25
26     /**
27      *
28      */
29     private static final long serialVersionUID = -8587623362011695514L;
30
31 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.