Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / jmx / notifications / CommitJMXNotification.java
1 /*
2  * Copyright (c) 2013, 2017 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,
19                 String.format(AFTER_COMMIT_MESSAGE_TEMPLATE, message));
20     }
21
22     @Override
23     public String toString() {
24         return "CommitJMXNotification{}";
25     }
26
27     private static final long serialVersionUID = -8587623362011695514L;
28 }

©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.