Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Separate EAP7 plugin from EAP6 (AS7) plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Burman committed Mar 1, 2016
1 parent e67934c commit 01449c9
Show file tree
Hide file tree
Showing 205 changed files with 417,199 additions and 3 deletions.
14,902 changes: 14,902 additions & 0 deletions modules/plugins/jboss-as-7/rhq-plugin-new.xml

Large diffs are not rendered by default.

16,509 changes: 16,509 additions & 0 deletions modules/plugins/jboss-as-7/rhq-plugin-wl.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext
ProcessInfo process = processScanResult.getProcessInfo();
AS7CommandLine commandLine = new AS7CommandLine(process);
DiscoveredResourceDetails details = buildResourceDetails(discoveryContext, process, commandLine);
discoveredResources.add(details);
if (details != null) {
discoveredResources.add(details);
}
if (LOG.isDebugEnabled()) {
LOG.debug("Discovered new " + discoveryContext.getResourceType().getName() + " Resource (key=["
+ details.getResourceKey() + "], name=[" + details.getResourceName() + "], version=["
Expand Down Expand Up @@ -221,6 +223,10 @@ protected DiscoveredResourceDetails buildResourceDetails(ResourceDiscoveryContex
pluginConfig.setSimpleValue("realm", hostConfig.getManagementSecurityRealm());
String apiVersion = hostConfig.getDomainApiVersion();
JBossProductType productType = JBossProductType.determineJBossProductType(homeDir, apiVersion);
if(productType == JBossProductType.EAP7) {
// Ignore here, use EAP7 / Wildfly 10 plugin to do the detection
return null;
}
serverPluginConfig.setProductType(productType);
pluginConfig.setSimpleValue("expectedRuntimeProductName", productType.PRODUCT_NAME);
pluginConfig.setSimpleValue("hostXmlFileName", getHostXmlFileName(commandLine));
Expand Down Expand Up @@ -480,6 +486,10 @@ public DiscoveredResourceDetails discoverResource(Configuration pluginConfig, Re
+ "] as user [" + user + "]. Did you provide the correct credentials?");
}

if (productType == JBossProductType.EAP7) {
throw new InvalidPluginConfigurationException("EAP7 / Wildfly 10 are not supported by this plugin.");
}

HostPort hostPort = new HostPort(false);
HostPort managementHostPort = new HostPort(false);
managementHostPort.host = hostname;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ private static JBossProductType determineJBossProductTypeViaProductConfFile(File
throw new Exception("'slot' property not found in " + productConfFile + ".");
}
if (slot.equals("eap")) {
productType = JBossProductType.EAP;
if(apiVersion.startsWith("4")) {
if(apiVersion.startsWith("1")) {
productType = JBossProductType.EAP;
} else {
productType = JBossProductType.EAP7;
}
} else if (slot.equals("ispn")) {
Expand Down
1 change: 1 addition & 0 deletions modules/plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
<module>jboss-as</module>
<module>jboss-as-5</module>
<module>jboss-as-7</module>
<module>wfly-10</module>
<module>jboss-as-7-jmx</module>
<module>rhq-server</module>
<module>jboss-cache-v3</module>
Expand Down
8 changes: 8 additions & 0 deletions modules/plugins/wfly-10/d2d.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

M2_REPO=${HOME}/.m2/repository
RHQ_VERSION='4.14.0-SNAPSHOT'
OPTS=""
#OPTS="-agentlib:jdwp=transport=dt_socket,address=8790,server=y,suspend=y"

java $OPTS -cp "target/classes/lib/*:${M2_REPO}/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar:target/rhq-jboss-as-7-plugin-${RHQ_VERSION}.jar:${M2_REPO}/org/rhq/rhq-core-plugin-api/${RHQ_VERSION}/rhq-core-plugin-api-${RHQ_VERSION}.jar:${M2_REPO}/org/rhq/rhq-core-util/${RHQ_VERSION}/rhq-core-util-${RHQ_VERSION}.jar" org.rhq.modules.plugins.jbossas7.Domain2Descriptor $*
155,958 changes: 155,958 additions & 0 deletions modules/plugins/wfly-10/json-api/domain.txt

Large diffs are not rendered by default.

176,517 changes: 176,517 additions & 0 deletions modules/plugins/wfly-10/json-api/standalone_full_ha.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 01449c9

Please sign in to comment.