while (ch.getLifecycleState() != LifecycleState.START && !supervisor.isComponentInErrorState(ch)) { try {
/** * Stops the channels. */ private void stopChannels() { for (String channelName : channelsRef.keySet()) { Channel channel = channelsRef.get(channelName); LifecycleState state = channel.getLifecycleState(); System.out.println("Stopping " + channelName + " (lyfecycle state=" + state.toString() + ")"); supervisorRef.unsupervise(channel); } // for } // stopChannels
while (ch.getLifecycleState() != LifecycleState.START && !supervisor.isComponentInErrorState(ch)) { try {
+ "\"status\":\"" + channel.getLifecycleState().toString() + "\",";