コード例 #1
0
 @Override
 protected void initializeExtraSubystemsAndModel(
     ExtensionRegistry extensionRegistry,
     Resource rootResource,
     ManagementResourceRegistration rootRegistration,
     RuntimeCapabilityRegistry capabilityRegistry) {
   super.initializeExtraSubystemsAndModel(
       extensionRegistry, rootResource, rootRegistration, capabilityRegistry);
   Map<String, Class> capabilities = new HashMap<>();
   capabilities.put(
       buildDynamicCapabilityName(
           ListenerResourceDefinition.IO_WORKER_CAPABILITY,
           ListenerResourceDefinition.WORKER.getDefaultValue().asString()),
       XnioWorker.class);
   capabilities.put(
       buildDynamicCapabilityName(
           ListenerResourceDefinition.IO_WORKER_CAPABILITY, "non-default"),
       XnioWorker.class);
   capabilities.put(
       buildDynamicCapabilityName(
           ListenerResourceDefinition.IO_BUFFER_POOL_CAPABILITY,
           ListenerResourceDefinition.BUFFER_POOL.getDefaultValue().asString()),
       Pool.class);
   for (String entry : sockets.keySet()) {
     capabilities.put(
         buildDynamicCapabilityName(ListenerResourceDefinition.SOCKET_CAPABILITY, entry),
         SocketBinding.class);
   }
   registerServiceCapabilities(capabilityRegistry, capabilities);
 }
コード例 #2
0
 public static void doExtraInitialization(
     AdditionalInitialization additionalInit,
     ControllerInitializer controllerInitializer,
     ExtensionRegistry extensionRegistry,
     Resource rootResource,
     ManagementResourceRegistration rootRegistration) {
   // TODO
   // controllerInitializer.setTestModelControllerService(this);
   // controllerInitializer.initializeModel(rootResource, rootRegistration);
   additionalInit.initializeExtraSubystemsAndModel(
       extensionRegistry, rootResource, rootRegistration);
 }
コード例 #3
0
 public static RunningMode getRunningMode(AdditionalInitialization additionalInit) {
   return additionalInit.getRunningMode();
 }
コード例 #4
0
 public static void initializeModel(
     AdditionalInitialization additionalInit,
     Resource rootResource,
     ManagementResourceRegistration rootRegistration) {
   additionalInit.createControllerInitializer().initializeModel(rootResource, rootRegistration);
 }
コード例 #5
0
 public static ProcessType getProcessType(AdditionalInitialization additionalInit) {
   return additionalInit.getProcessType();
 }