void setAppName ( final String appName ) { if ( clusterId . applicationName != null && ! clusterId . applicationName . equals ( appName ) ) throw new IllegalStateException ( "Restting the application name on a cluster is not allowed." ) ; clusterId = new ClusterId ( appName , clusterId . clusterName ) ; }
This is called from Node