You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by aledsage <gi...@git.apache.org> on 2015/06/19 23:10:30 UTC

[GitHub] incubator-brooklyn pull request: Wildfly 8 Support (Partial)

Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/621#discussion_r32869672
  
    --- Diff: software/webapp/src/main/java/brooklyn/entity/webapp/jboss/Wildfly8Server.java ---
    @@ -0,0 +1,101 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package brooklyn.entity.webapp.jboss;
    +
    +import brooklyn.catalog.Catalog;
    +import brooklyn.config.ConfigKey;
    +import brooklyn.entity.basic.ConfigKeys;
    +import brooklyn.entity.basic.SoftwareProcess;
    +import brooklyn.entity.proxying.ImplementedBy;
    +import brooklyn.entity.trait.HasShortName;
    +import brooklyn.entity.webapp.JavaWebAppSoftwareProcess;
    +import brooklyn.event.AttributeSensor;
    +import brooklyn.event.basic.BasicAttributeSensorAndConfigKey;
    +import brooklyn.event.basic.BasicAttributeSensorAndConfigKey.StringAttributeSensorAndConfigKey;
    +import brooklyn.event.basic.PortAttributeSensorAndConfigKey;
    +import brooklyn.event.basic.Sensors;
    +import brooklyn.util.flags.SetFromFlag;
    +import brooklyn.util.javalang.JavaClassNames;
    +
    +@Catalog(name="Wildfly 8 Application Server", description="Wildfly: an open source Java application server from JBoss", iconUrl="classpath:///jboss-logo.png")
    +@ImplementedBy(Wildfly8ServerImpl.class)
    +public interface Wildfly8Server extends JavaWebAppSoftwareProcess, HasShortName {
    +
    +    @SetFromFlag("version")
    +    ConfigKey<String> SUGGESTED_VERSION =
    +            ConfigKeys.newConfigKeyWithDefault(SoftwareProcess.SUGGESTED_VERSION, "8.2.0.Final");
    +
    +    @SetFromFlag("downloadUrl")
    +    BasicAttributeSensorAndConfigKey<String> DOWNLOAD_URL = new StringAttributeSensorAndConfigKey(
    +            SoftwareProcess.DOWNLOAD_URL, "http://download.jboss.org/wildfly/${version}/wildfly-${version}.tar.gz");
    +
    +    @SetFromFlag("bindAddress")
    +    BasicAttributeSensorAndConfigKey<String> BIND_ADDRESS =
    +            new StringAttributeSensorAndConfigKey("jboss.bind.address",
    +                "Address of interface JBoss should listen on, defaulting 0.0.0.0 (but could set e.g. to attributeWhenReady(HOSTNAME)", 
    +                "0.0.0.0");
    +
    +    @SetFromFlag("managementHttpPort")
    +    PortAttributeSensorAndConfigKey MANAGEMENT_HTTP_PORT =
    +            new PortAttributeSensorAndConfigKey("webapp.jboss.managementHttpPort", "Management port", "9990+");
    +
    +    @SetFromFlag("managementHttpsPort")
    +    PortAttributeSensorAndConfigKey MANAGEMENT_HTTPS_PORT =
    +            new PortAttributeSensorAndConfigKey("webapp.jboss.managementHttpsPort", "Management port", "9443+");
    +
    +    @SetFromFlag("managementNativePort")
    +    PortAttributeSensorAndConfigKey MANAGEMENT_NATIVE_PORT =
    +            new PortAttributeSensorAndConfigKey("webapp.jboss.managementNativePort", "Management native port", "10999+");
    +
    +    /**
    +     * Port increments are the standard way to run multiple instances of AS7 on the same machine.
    --- End diff --
    
    Wildlfy, rather than AS7. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---