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

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

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

origin: org.wildfly/wildfly-arquillian-common

public ProtocolMetaData getProtocolMetaData(String deploymentName) {
  URI webURI = getWebUri();
  ProtocolMetaData metaData = new ProtocolMetaData();
  metaData.addContext(new JMXContext(getConnection()));
  HTTPContext context = new HTTPContext(webURI.getHost(), webURI.getPort());
  metaData.addContext(context);
  try {
    ModelNode deploymentNode = readResource(createDeploymentAddress(deploymentName));
    if (isWebArchive(deploymentName)) {
      extractWebArchiveContexts(context, deploymentNode);
    } else if (isEnterpriseArchive(deploymentName)) {
      extractEnterpriseArchiveContexts(context, deploymentNode);
    }
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  return metaData;
}
origin: org.jboss.as/jboss-as-arquillian-common

public ProtocolMetaData getProtocolMetaData(String deploymentName) {
  URI webURI = getWebUri();
  ProtocolMetaData metaData = new ProtocolMetaData();
  metaData.addContext(new JMXContext(getConnection()));
  HTTPContext context = new HTTPContext(webURI.getHost(), webURI.getPort());
  metaData.addContext(context);
  try {
    ModelNode deploymentNode = readResource(createDeploymentAddress(deploymentName));
    if (isWebArchive(deploymentName)) {
      extractWebArchiveContexts(context, deploymentNode);
    } else if (isEnterpriseArchive(deploymentName)) {
      extractEnterpriseArchiveContexts(context, deploymentNode);
    }
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  return metaData;
}
origin: org.wildfly.arquillian/wildfly-arquillian-common

/**
 * Gets the meta-data.
 *
 * @return the meta-data
 *
 * @throws IllegalStateException if this has been {@linkplain #close() closed}
 */
public ProtocolMetaData getProtocolMetaData(String deploymentName) {
  init();
  ProtocolMetaData metaData = new ProtocolMetaData();
  metaData.addContext(new JMXContext(getConnection()));
  if (undertowSubsystemPresent) {
    URI webURI = getWebUri();
    HTTPContext context = new HTTPContext(webURI.getHost(), webURI.getPort());
    metaData.addContext(context);
    try {
      final ModelNode deploymentNode = readDeploymentNode(deploymentName);
      if (isWebArchive(deploymentName)) {
        extractWebArchiveContexts(context, deploymentNode);
      } else if (isEnterpriseArchive(deploymentName)) {
        extractEnterpriseArchiveContexts(context, deploymentNode);
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
  return metaData;
}
origin: wildfly/wildfly-arquillian

/**
 * Gets the meta-data.
 *
 * @return the meta-data
 *
 * @throws IllegalStateException if this has been {@linkplain #close() closed}
 */
public ProtocolMetaData getProtocolMetaData(String deploymentName) {
  init();
  ProtocolMetaData metaData = new ProtocolMetaData();
  metaData.addContext(new JMXContext(getConnection()));
  if (undertowSubsystemPresent) {
    URI webURI = getWebUri();
    HTTPContext context = new HTTPContext(webURI.getHost(), webURI.getPort());
    metaData.addContext(context);
    try {
      final ModelNode deploymentNode = readDeploymentNode(deploymentName);
      if (isWebArchive(deploymentName)) {
        extractWebArchiveContexts(context, deploymentNode);
      } else if (isEnterpriseArchive(deploymentName)) {
        extractEnterpriseArchiveContexts(context, deploymentNode);
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
  return metaData;
}
org.jboss.as.arquillian.containerManagementClientextractEnterpriseArchiveContexts

Javadoc

Expects the deploymentNode to bit a list of addresses which contain a result of the subsystem model. The deployment node model should be the equivalent of /deployment=someEar.ear/subdeployment=*/subsystem=undertow:read-resource(recursive-depth=2, include-runtime=true)

Example Output:

 
[{ 
"address" => [ 
("deployment" => "example-app.ear"), 
("subdeployment" => "example.war"), 
("subsystem" => "undertow") 
], 
"outcome" => "success", 
"result" => { 
"active-sessions" => 0, 
"context-root" => "/example", 
"expired-sessions" => 0, 
"max-active-sessions" => -1, 
"rejected-sessions" => 0, 
"server" => "default-server", 
"session-avg-alive-time" => 0, 
"session-max-alive-time" => 0, 
"sessions-created" => 0, 
"virtual-host" => "default-host", 
"servlet" => {"ExapleService" => { 
"mappings" => 0, 
"max-request-time" => 0, 
"min-request-time" => 0, 
"request-count" => 0, 
"servlet-class" => "org.jboss.example.ExampleServlet", 
"servlet-name" => "ExampleService", 
"total-request-time" => 0 
}}, 
"websocket" => undefined 
} 
}] 

Popular methods of ManagementClient

  • getControllerClient
    Returns the client used to connect to the server.
  • <init>
  • close
  • checkSuccessful
  • defined
  • executeForResult
  • 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

  • Start an intent from android
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ImageIO (javax.imageio)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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