// before we start, figure out if we're running with only a sub-set
// of services, in which case there should be no external services
NodeType type =
NodeType.valueOf(
appProperties.getProperty(StandardProperties.NODE_TYPE));
StandardService finalStandardService = null;
String externalServices =
appProperties.getProperty(StandardProperties.SERVICES);
String externalManagers =
appProperties.getProperty(StandardProperties.MANAGERS);
switch (type) {
case appNode:
case singleNode:
default:
finalStandardService = StandardService.LAST_SERVICE;
break;
case coreServerNode:
if ((externalServices != null) || (externalManagers != null)) {
throw new IllegalArgumentException(
"Cannot specify external services for the core server");
}
finalStandardService = StandardService.TaskService;
break;
}
final int finalServiceOrdinal = finalStandardService.ordinal();
// load the data service
String dataServiceClass =
appProperties.getProperty(StandardProperties.DATA_SERVICE,