Decouple config and netconf subsystems.
[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(NotificationBroadcasterSupport source, String message) {
18         super(ConfigJMXNotification.NotificationType.COMMIT,  source, String.format(AFTER_COMMIT_MESSAGE_TEMPLATE, message));
19     }
20
21     @Override
22     public String toString() {
23         final StringBuffer sb = new StringBuffer("CommitJMXNotification{");
24         sb.append('}');
25         return sb.toString();
26     }
27
28     /**
29      *
30      */
31     private static final long serialVersionUID = -8587623362011695514L;
32
33 }