public synchronized void deploy() throws Exception { if (clustered) { for (BroadcastGroupConfiguration config : configuration.getBroadcastGroupConfigurations()) { deployBroadcastGroup(config); } for (ClusterConnectionConfiguration config : configuration.getClusterConfigurations()) { deployClusterConnection(config); } } }
public synchronized void deploy() throws Exception { if (state == State.STOPPED) { state = State.DEPLOYED; } else { throw new IllegalStateException(); } for (BroadcastGroupConfiguration config : configuration.getBroadcastGroupConfigurations()) { deployBroadcastGroup(config); } for (ClusterConnectionConfiguration config : configuration.getClusterConfigurations()) { deployClusterConnection(config); } }