Tabnine Logo
ManagementClient.getControllerClient
Code IndexAdd Tabnine to your IDE (free)

How to use
getControllerClient
method
in
org.jboss.as.arquillian.container.ManagementClient

Best Java code snippets using org.jboss.as.arquillian.container.ManagementClient.getControllerClient (Showing top 20 results out of 315)

origin: org.jboss.as/jboss-as-testsuite-shared

  @Override
  protected ModelControllerClient getModelControllerClient() {
    return managementClient.getControllerClient();
  }
}
origin: org.wildfly/wildfly-testsuite-shared

  @Override
  protected ModelControllerClient getModelControllerClient() {
    return managementClient.getControllerClient();
  }
}
origin: org.wildfly/wildfly-testsuite-shared

  /**
   * If required, calls {@link #executeReloadAndWaitForCompletion(ModelControllerClient)}.
   *
   * {@inheritDoc}
   */
  @Override
  public void tearDown(final ManagementClient managementClient, final String containerId) throws Exception {
    if (after) {
      reloadIfRequired(managementClient.getControllerClient());
    }
  }
}
origin: org.wildfly/wildfly-testsuite-shared

@Override
public void tearDown(final org.jboss.as.arquillian.container.ManagementClient managementClient, final String containerId)
    throws Exception {
  tearDown(managementClient.getControllerClient());
}
origin: org.wildfly/wildfly-testsuite-shared

/**
 * If required, calls {@link #executeReloadAndWaitForCompletion(ModelControllerClient)}.
 *
 * {@inheritDoc}
 */
@Override
public void setup(final ManagementClient managementClient, final String containerId) throws Exception {
  if (before) {
    reloadIfRequired(managementClient.getControllerClient());
  }
}
origin: org.wildfly/wildfly-testsuite-shared

@Override
public void tearDown(final ManagementClient managementClient, final String containerId) {
  applyRemoveAllowReload(managementClient.getControllerClient(), domainAddress, false);
  applyRemoveAllowReload(managementClient.getControllerClient(), realmAddress, false);
}
origin: org.wildfly/wildfly-testsuite-shared

/**
 * Adds security realms retrieved from {@link #getSecurityRealms()}.
 */
public void setup(final ManagementClient managementClient, String containerId) throws Exception {
  this.managementClient = managementClient;
  setup(managementClient.getControllerClient(), containerId);
}
origin: org.wildfly.arquillian/wildfly-arquillian-common

/**
 * Creates a new deployer for deploying archives.
 *
 * @param client the management client to use
 */
public ArchiveDeployer(ManagementClient client) {
  this.client = client;
  this.deploymentManager = DeploymentManager.Factory.create(client.getControllerClient());
}
origin: org.wildfly/wildfly-testsuite-shared

  @Override
  public void close() throws Exception {
    ServerReload.executeReloadAndWaitForCompletion(client.getControllerClient(), fileName);
    ModelNode node = new ModelNode();
    node.get(ModelDescriptionConstants.OP).set("write-config");
    ModelNode result = client.getControllerClient().execute(node);
    if (!"success".equals(result.get(ClientConstants.OUTCOME).asString())) {
      fail("Failed to write config after restoring from snapshot " + result.asString());
    }
  }
};
origin: org.wildfly/wildfly-testsuite-shared

@Override
public void tearDown(final ManagementClient managementClient, final String containerId) {
  applyRemoveAllowReload(managementClient.getControllerClient(), undertowDomainAddress, false);
  if (useAuthenticationFactory()) {
    applyRemoveAllowReload(managementClient.getControllerClient(), httpAuthenticationAddress, false);
  }
}
origin: jboss-switchyard/release

  @Override
  public void tearDown(ManagementClient client, String unused) throws Exception {
    ResourceDeployer.tearDownSSL(client);
    ModelNode op = new ModelNode();
    op.get("operation").set("remove");
    op.get("address").add("subsystem", "security");
    op.get("address").add("security-domain", "policy-security-cert");
    client.getControllerClient().execute(op);
  }
}
origin: org.wildfly/wildfly-testsuite-shared

@Override
public void setup(ManagementClient managementClient, String containerId) throws Exception {
  adminOperations = JMSOperationsProvider.getInstance(managementClient.getControllerClient());
  adminOperations.createJmsQueue(QUEUE1_NAME, QUEUE1_JNDI_NAME);
  adminOperations.createJmsQueue(QUEUE2_NAME, QUEUE2_JNDI_NAME);
  adminOperations.createJmsQueue(QUEUE3_NAME, QUEUE3_JNDI_NAME);
}
origin: hibernate/hibernate-search

  private ModelNode execute(ModelNode op) throws IOException {
    ModelNode outcome = managementClient.getControllerClient().execute( op );
    if ( !Operations.isSuccessfulOutcome( outcome ) ) {
      throw new IllegalStateException( "Unsuccessful API call outcome: " + outcome );
    }
    return outcome;
  }
}
origin: hibernate/hibernate-search

public long start(Properties properties) throws IOException {
  ModelNode op = Operations.createOperation( "start-job", jberetSubsystemAddress.toModelNode() );
  op.get( "job-xml-name" ).set( MassIndexingJob.NAME );
  if ( properties != null ) {
    op.get( "properties" ).set( toModelNode( properties ) );
  }
  final ModelNode outcome = managementClient.getControllerClient().execute( op );
  if ( !Operations.isSuccessfulOutcome( outcome ) ) {
    throw new IllegalStateException( "Could not start job: " + outcome );
  }
  return outcome.get( "result" ).asLong();
}
origin: hibernate/hibernate-search

public long restart(long executionId, Properties properties) throws IOException {
  ModelNode op = Operations.createOperation( "restart-job", jberetSubsystemAddress.toModelNode() );
  op.get( "execution-id" ).set( executionId );
  if ( properties != null ) {
    op.get( "properties" ).set( toModelNode( properties ) );
  }
  final ModelNode outcome = managementClient.getControllerClient().execute( op );
  if ( !Operations.isSuccessfulOutcome( outcome ) ) {
    throw new IllegalStateException( "Could not restart job: " + outcome );
  }
  return outcome.get( "result" ).asLong();
}
origin: hibernate/hibernate-search

private void addLogger(ModelNode node, String loggerLevel) throws IOException {
  ModelNode op = Operations.createAddOperation( node );
  op.get( "level" ).set( loggerLevel );
  final ModelNode result = managementClient.get().getControllerClient()
      .execute( op );
  if ( !Operations.isSuccessfulOutcome( result ) ) {
    logger.warning( "Can't create " + node + " logger: " + result.toJSONString( false ) );
  }
}
origin: hibernate/hibernate-search

@Override
public void tearDown(ManagementClient managementClient, String s) throws Exception {
  ModelNode op = Operations.createUndefineAttributeOperation( ADDRESS_TRANSACTIONS_SUBSYSTEM, "default-timeout" );
  ModelNode result = managementClient.getControllerClient().execute( op );
  if ( !Operations.isSuccessfulOutcome( result ) ) {
    logger.warning( "Can't reset default transaction timeout: " + result.toJSONString( false ) );
  }
}
origin: hibernate/hibernate-search

private void removeLogger(ModelNode node) throws IOException {
  final ModelNode result = managementClient.get().getControllerClient()
      .execute( Operations.createRemoveOperation( node ) );
  if ( !Operations.isSuccessfulOutcome( result ) ) {
    logger.warning( "Can't remove " + node + " logger: " + result.toJSONString( false ) );
  }
}
origin: hibernate/hibernate-search

public void beforeShutdown(@Observes BeforeStop event, ArquillianDescriptor descriptor) throws IOException {
  ModelNode result = managementClient.get().getControllerClient()
      .execute( Operations.createRemoveOperation( DATA_SOURCE_ADDRESS ) );
  if ( !Operations.isSuccessfulOutcome( result ) ) {
    log.warning( "Can't remove data source: " + result.toJSONString( false ) );
  }
}
origin: hibernate/hibernate-search

public void afterStart(@Observes AfterStart event, ArquillianDescriptor descriptor) throws IOException {
  ModelNode result = managementClient.get().getControllerClient()
      .execute( createAddDataSourceOperation() );
  if ( !Operations.isSuccessfulOutcome( result ) ) {
    log.severe( "Can't create data source: " + result.toJSONString( false ) );
  }
}
org.jboss.as.arquillian.containerManagementClientgetControllerClient

Javadoc

Returns the client used to connect to the server.

Popular methods of ManagementClient

  • <init>
  • close
  • checkSuccessful
  • defined
  • executeForResult
  • extractEnterpriseArchiveContexts
    Expects the deploymentNode to bit a list of addresses which contain a result of the subsystem model.
  • extractWebArchiveContexts
  • getConnection
  • getProtocolMetaData
    Gets the meta-data.
  • getRemoteEjbURL
    Returns the URI for EJB's.
  • getRemoteJMXURL
  • getWebUri
  • getRemoteJMXURL,
  • getWebUri,
  • isEnterpriseArchive,
  • isWebArchive,
  • toContextName,
  • createDeploymentAddress,
  • getBinding,
  • isServerInRunningState,
  • readResource

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JTextField (javax.swing)
  • Github Copilot alternatives
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