/** * The container's port for the specified port type */ public String getPort(String portType) { LocalConfiguration config = getConfiguration(); config.applyPortOffset(); if (!container.getState().isStarted()) throw new IllegalStateException( "Container is not started, thus a port has not yet been assigned to the container."); return config.getPropertyValue(portType); }
/** * Convenience method for retrieving the {@link LocalConfiguration}'s property value. * @param propertyName the property we want the value of. * @return the value of the named property. */ private String getPropertyValue(String propertyName) { return configuration.getPropertyValue(propertyName); }
/** * Convenience method for retrieving the {@link LocalConfiguration}'s property value. * @param propertyName the property we want the value of. * @return the value of the named property. */ private String getPropertyValue(String propertyName) { return configuration.getPropertyValue(propertyName); }
/** * Tells whether WildFly Swarm operates in Hollow Swarm mode. * @return true if WildFly Swarm operates in Hollow Swarm mode, otherwise false. * */ protected boolean isHollowSwarm() { String hollowSwarmProperty = getConfiguration().getPropertyValue(WildFlySwarmPropertySet.SWARM_HOLLOW_ENABLED); return Boolean.parseBoolean(hollowSwarmProperty); }
/** * Setup of the target domain name for the JOnAS admin command call. * * @param java the target JVM launcher to setup */ private void doDomainNameArgs(JvmLauncher java) { String domainName = getConfiguration().getPropertyValue(JonasPropertySet.JONAS_DOMAIN_NAME); if (domainName == null || domainName.trim().isEmpty()) { domainName = "jonas"; } java.addJvmArguments("-Ddomain.name=" + domainName); }
/** * {@inheritDoc} */ @Override protected ConfigurationBuilder createConfigurationBuilder(LocalContainer container) { String serverName = container.getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); return new WebLogic8xConfigurationBuilder(serverName); }
/** * return the running server's name. * * @return the WebLogic server's name */ protected String getServerName() { return getContainer().getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); }
/** * {@inheritDoc} */ @Override protected ConfigurationBuilder createConfigurationBuilder(LocalContainer container) { String serverName = container.getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); return new WebLogic9x10x103x12xConfigurationBuilder(serverName); }
/** * return the running server's name. * * @return the WebLogic server's name */ protected String getServerName() { return getContainer().getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); }
/** * return the running server's name. * * @return the WebLogic server's name */ protected String getServerName() { return getContainer().getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); }
/** * {@inheritDoc} */ @Override protected ConfigurationBuilder createConfigurationBuilder(LocalContainer container) { String serverName = container.getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); return new WebLogic8xConfigurationBuilder(serverName); }
/** * return the running server's name. * * @return the WebLogic server's name */ protected String getServerName() { return getContainer().getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); }
/** * {@inheritDoc} */ @Override protected ConfigurationBuilder createConfigurationBuilder(LocalContainer container) { String serverName = container.getConfiguration().getPropertyValue(WebLogicPropertySet.SERVER); return new WebLogic9x10x103x12xConfigurationBuilder(serverName); }
/** * {@inheritDoc}. For JRun this is the <code>servers/server_name</code> directory. */ @Override public String getDeployableDir(Deployable deployable) { InstalledLocalContainer localContainer = (InstalledLocalContainer) this.getContainer(); String serverName = localContainer.getConfiguration().getPropertyValue(JRun4xPropertySet.SERVER_NAME); return getFileHandler().append(getContainer().getConfiguration().getHome(), "servers/" + serverName); } }
/** * {@inheritDoc} */ @Override public void doStop(JvmLauncher java) throws Exception { doAction(java); java.addAppArguments("-stop"); java.addAppArguments(getConfiguration().getPropertyValue(JRun4xPropertySet.SERVER_NAME)); java.start(); }
/** * {@inheritDoc} */ @Override public void doStop(JvmLauncher java) throws Exception { doAction(java); java.addAppArguments("-stop"); java.addAppArguments(getConfiguration().getPropertyValue(JRun4xPropertySet.SERVER_NAME)); java.start(); }
/** * {@inheritDoc} */ @Override public void doStart(JvmLauncher java) throws Exception { doAction(java); java.addAppArguments("-start"); java.addAppArguments(getConfiguration().getPropertyValue(JRun4xPropertySet.SERVER_NAME)); // Add settings specific to a given container version startUpAdditions(java); java.start(); }
/** * {@inheritDoc} */ @Override public void doStart(JvmLauncher java) throws Exception { doAction(java); java.addAppArguments("-start"); java.addAppArguments(getConfiguration().getPropertyValue(JRun4xPropertySet.SERVER_NAME)); // Add settings specific to a given container version startUpAdditions(java); java.start(); }
/** * {@inheritDoc}. For Tomcat this is the <code>webapps</code> directory. */ @Override public String getDeployableDir(Deployable deployable) { return getFileHandler().append(getContainer().getConfiguration().getHome(), getContainer().getConfiguration().getPropertyValue( TomcatPropertySet.WEBAPPS_DIRECTORY)); }
/** * {@inheritDoc}. For Tomcat this is the <code>webapps</code> directory. */ @Override public String getDeployableDir(Deployable deployable) { return getFileHandler().append(getContainer().getConfiguration().getHome(), getContainer().getConfiguration().getPropertyValue( TomcatPropertySet.WEBAPPS_DIRECTORY)); }