X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fnotifications%2FRoleChanged.java;h=711025bfa9251e3d332adddfef6b5c79b7093ebb;hb=HEAD;hp=770d709abe79d1fc60bfc705b8bfa94a591991c9;hpb=edcc020c8fda4b13f22a31d79c13feef0b53b0ee;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChanged.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChanged.java index 770d709abe..711025bfa9 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChanged.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChanged.java @@ -1,15 +1,21 @@ +/* + * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + package org.opendaylight.controller.cluster.notifications; /** * Role Change message initiated internally from the Raft Actor when a the behavior/role changes. - * * Since its internal , need not be serialized - * */ public class RoleChanged { - private String memberId; - private String oldRole; - private String newRole; + private final String memberId; + private final String oldRole; + private final String newRole; public RoleChanged(String memberId, String oldRole, String newRole) { this.memberId = memberId; @@ -31,10 +37,6 @@ public class RoleChanged { @Override public String toString() { - return "RoleChanged{" + - "memberId='" + memberId + '\'' + - ", oldRole='" + oldRole + '\'' + - ", newRole='" + newRole + '\'' + - '}'; + return "RoleChanged [memberId=" + memberId + ", oldRole=" + oldRole + ", newRole=" + newRole + "]"; } }