// For all delegates ...
for (Iterator it = set.iterator(); it.hasNext();) {
delegates.append("\n");
Map.Entry entry = (Map.Entry) it.next();
Endpoint endpoint = (Endpoint) entry.getValue();
ServiceState state = ServiceState.INITIALIZING;
if ( endpoint.isRemote() ) {
if ( endpoint.isInitialized() ) {
state = ServiceState.RUNNING;
}
delegates.append(lbl1+lbl1+"Remote Delegate:"+endpoint.getDelegateKey()+" State: "+state.toString());
} else {
if ( endpoint.isInitialized() ) {
state = ServiceState.RUNNING;
}
delegates.append(lbl1+lbl1+"Co-located Delegate:"+endpoint.getDelegateKey()+" State: "+state.toString());
// If a delegate is an aggregate, call its dumpState method
synchronized(childControllerList) {
if ( childControllerList.size() > 0 ) {
for( AnalysisEngineController childController : childControllerList ) {
if ( endpoint.getDelegateKey().equals(childController.getKey()) && !childController.isPrimitive()) {