Tabnine Logo
NativeManagementAddHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
NativeManagementAddHandler
in
org.jboss.as.host.controller.operations

Best Java code snippets using org.jboss.as.host.controller.operations.NativeManagementAddHandler (Showing top 6 results out of 315)

origin: org.jboss.as/jboss-as-host-controller

public NativeManagementResourceDefinition(final LocalHostControllerInfoImpl hostControllerInfo) {
  super(RESOURCE_PATH,
      HostModelUtil.getResourceDescriptionResolver("core","management","native-interface"),
      new NativeManagementAddHandler(hostControllerInfo), null,
      OperationEntry.Flag.RESTART_NONE, null);
  this.hostControllerInfo = hostControllerInfo;
}
origin: org.jboss.as/jboss-as-host-controller

@Override
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
               final ServiceVerificationHandler verificationHandler,
               final List<ServiceController<?>> newControllers) throws OperationFailedException {
  populateHostControllerInfo(hostControllerInfo, context, model);
  final ServiceTarget serviceTarget = context.getServiceTarget();
  ManagementChannelRegistryService.addService(serviceTarget, ManagementRemotingServices.MANAGEMENT_ENDPOINT);
  ManagementRemotingServices.installRemotingEndpoint(serviceTarget, ManagementRemotingServices.MANAGEMENT_ENDPOINT,
      hostControllerInfo.getLocalHostName(), EndpointService.EndpointType.MANAGEMENT, CONNECTION_OPTIONS, null, null);
  final boolean onDemand = context.isBooting();
  installNativeManagementServices(serviceTarget, hostControllerInfo, verificationHandler, newControllers, onDemand);
}
origin: org.wildfly.core/wildfly-host-controller

@Override
protected List<ServiceName> installServices(OperationContext context, NativeInterfaceCommonPolicy commonPolicy, ModelNode model) throws OperationFailedException {
  populateHostControllerInfo(hostControllerInfo, context, model);
  final ServiceTarget serviceTarget = context.getServiceTarget();
  final boolean onDemand = context.isBooting();
  NativeManagementServices.installRemotingServicesIfNotInstalled(serviceTarget, hostControllerInfo.getLocalHostName(), context.getServiceRegistry(false), onDemand);
  OptionMap options = createConnectorOptions(commonPolicy);
  final ServiceName nativeManagementInterfaceBinding = context.getCapabilityServiceName("org.wildfly.network.interface",
      hostControllerInfo.getNativeManagementInterface(), NetworkInterfaceBinding.class);
  final String securityRealm = commonPolicy.getSecurityRealm();
  final String saslAuthenticationFactory = commonPolicy.getSaslAuthenticationFactory();
  if (saslAuthenticationFactory == null && securityRealm == null) {
    ROOT_LOGGER.nativeManagementInterfaceIsUnsecured();
  }
  ServiceName securityRealmName = securityRealm != null ? SecurityRealm.ServiceUtil.createServiceName(securityRealm) : null;
  ServiceName saslAuthenticationFactoryName = saslAuthenticationFactory != null ? context.getCapabilityServiceName(
      SASL_AUTHENTICATION_FACTORY_CAPABILITY, saslAuthenticationFactory, SaslAuthenticationFactory.class) : null;
  String sslContext = commonPolicy.getSSLContext();
  ServiceName sslContextName = sslContext != null ? context.getCapabilityServiceName(SSL_CONTEXT_CAPABILITY, sslContext, SSLContext.class) : null;
  NativeManagementServices.installManagementWorkerService(serviceTarget, context.getServiceRegistry(false));
  ManagementRemotingServices.installDomainConnectorServices(context, serviceTarget, ManagementRemotingServices.MANAGEMENT_ENDPOINT,
      nativeManagementInterfaceBinding, hostControllerInfo.getNativeManagementPort(), options, securityRealmName, saslAuthenticationFactoryName, sslContextName);
  return Arrays.asList(REMOTING_BASE.append("server", MANAGEMENT_CONNECTOR), nativeManagementInterfaceBinding);
}
origin: wildfly/wildfly-core

@Override
protected List<ServiceName> installServices(OperationContext context, NativeInterfaceCommonPolicy commonPolicy, ModelNode model) throws OperationFailedException {
  populateHostControllerInfo(hostControllerInfo, context, model);
  final ServiceTarget serviceTarget = context.getServiceTarget();
  final boolean onDemand = context.isBooting();
  NativeManagementServices.installRemotingServicesIfNotInstalled(serviceTarget, hostControllerInfo.getLocalHostName(), context.getServiceRegistry(false), onDemand);
  OptionMap options = createConnectorOptions(commonPolicy);
  final ServiceName nativeManagementInterfaceBinding = context.getCapabilityServiceName("org.wildfly.network.interface",
      hostControllerInfo.getNativeManagementInterface(), NetworkInterfaceBinding.class);
  final String securityRealm = commonPolicy.getSecurityRealm();
  final String saslAuthenticationFactory = commonPolicy.getSaslAuthenticationFactory();
  if (saslAuthenticationFactory == null && securityRealm == null) {
    ROOT_LOGGER.nativeManagementInterfaceIsUnsecured();
  }
  ServiceName securityRealmName = securityRealm != null ? SecurityRealm.ServiceUtil.createServiceName(securityRealm) : null;
  ServiceName saslAuthenticationFactoryName = saslAuthenticationFactory != null ? context.getCapabilityServiceName(
      SASL_AUTHENTICATION_FACTORY_CAPABILITY, saslAuthenticationFactory, SaslAuthenticationFactory.class) : null;
  String sslContext = commonPolicy.getSSLContext();
  ServiceName sslContextName = sslContext != null ? context.getCapabilityServiceName(SSL_CONTEXT_CAPABILITY, sslContext, SSLContext.class) : null;
  NativeManagementServices.installManagementWorkerService(serviceTarget, context.getServiceRegistry(false));
  ManagementRemotingServices.installDomainConnectorServices(context, serviceTarget, ManagementRemotingServices.MANAGEMENT_ENDPOINT,
      nativeManagementInterfaceBinding, hostControllerInfo.getNativeManagementPort(), options, securityRealmName, saslAuthenticationFactoryName, sslContextName);
  return Arrays.asList(REMOTING_BASE.append("server", MANAGEMENT_CONNECTOR), nativeManagementInterfaceBinding);
}
origin: wildfly/wildfly-core

public NativeManagementResourceDefinition(final LocalHostControllerInfoImpl hostControllerInfo) {
  super(new Parameters(RESOURCE_PATH, HostModelUtil.getResourceDescriptionResolver("core","management","native-interface"))
    .setAddHandler(new NativeManagementAddHandler(hostControllerInfo))
    .setRemoveHandler(NativeManagementRemoveHandler.INSTANCE));
}
origin: org.wildfly.core/wildfly-host-controller

public NativeManagementResourceDefinition(final LocalHostControllerInfoImpl hostControllerInfo) {
  super(new Parameters(RESOURCE_PATH, HostModelUtil.getResourceDescriptionResolver("core","management","native-interface"))
    .setAddHandler(new NativeManagementAddHandler(hostControllerInfo))
    .setRemoveHandler(NativeManagementRemoveHandler.INSTANCE));
}
org.jboss.as.host.controller.operationsNativeManagementAddHandler

Most used methods

  • <init>
  • populateHostControllerInfo
  • createConnectorOptions
  • installNativeManagementServices

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JPanel (javax.swing)
  • JTable (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now