/** * {@inheritDoc} */ @Override protected Configuration getConfiguration() { return this.container.getConfiguration(); } }
/** * {@inheritDoc} */ @Override protected Configuration getConfiguration() { return this.container.getConfiguration(); } }
/** * Constructor. * * @param container the remote container */ public AbstractJonasRemoteDeployer(RemoteContainer container) { super(container); configuration = container.getConfiguration(); }
/** * Constructor. * * @param container the remote container */ public AbstractJonasRemoteDeployer(RemoteContainer container) { super(container); configuration = container.getConfiguration(); }
/** * @param container the container containing the configuration to use to find the deployer * properties such as url, user name and password to use to connect to the deployer */ public AbstractWildFlyRemoteDeployer(RemoteContainer container) { super(container); this.configuration = container.getConfiguration(); this.marshaller = new WildFlyRemoteDeploymentJsonMarshaller(); }
/** * @param container the container containing the configuration to use to find the deployer * properties such as url, user name and password to use to connect to the deployer */ public AbstractWildFlyRemoteDeployer(RemoteContainer container) { super(container); this.configuration = container.getConfiguration(); this.marshaller = new WildFlyRemoteDeploymentJsonMarshaller(); }
/** * @param container Container. * @return Container configuration. */ private Configuration retrieveConfiguration(Container container) { if (container instanceof LocalContainer) { return ((LocalContainer) container).getConfiguration(); } else { return ((RemoteContainer) container).getConfiguration(); } } }
/** * Constructor. * * @param container the remote container */ public AbstractJsr88Deployer(RemoteContainer container) { super(container); this.configuration = container.getConfiguration(); this.fileHandler = new DefaultFileHandler(); // Set a timeout in order to avoid CARGO-1299 String portStr = configuration.getPropertyValue(RemotePropertySet.TIMEOUT); this.timeout = Long.parseLong(portStr); }
/** * @param container the container containing the configuration to use to find the deployer * properties such as url, user name and password to use to connect to the deployer * @param connection the connection class to use * @param fileServer http file server to use */ protected JBoss4xRemoteDeployer(RemoteContainer container, HttpURLConnection connection, ISimpleHttpFileServer fileServer) { super(container); this.configuration = container.getConfiguration(); this.connection = connection; this.deployableServerSocketAddress = buildSocketAddressForDeployableServer(); this.fileHandler = new DefaultFileHandler(); this.fileServer = fileServer; // Set a timeout in order to avoid CARGO-859 String portStr = configuration.getPropertyValue(RemotePropertySet.TIMEOUT); this.connection.setTimeout(Integer.parseInt(portStr)); }
/** * @param container the container containing the configuration to use to find the deployer * properties such as url, user name and password to use to connect to the deployer * @param connection the connection class to use * @param fileServer http file server to use */ protected JBoss4xRemoteDeployer(RemoteContainer container, HttpURLConnection connection, ISimpleHttpFileServer fileServer) { super(container); this.configuration = container.getConfiguration(); this.connection = connection; this.deployableServerSocketAddress = buildSocketAddressForDeployableServer(); this.fileHandler = new DefaultFileHandler(); this.fileServer = fileServer; // Set a timeout in order to avoid CARGO-859 String portStr = configuration.getPropertyValue(RemotePropertySet.TIMEOUT); this.connection.setTimeout(Integer.parseInt(portStr)); }
Configuration.class); this.deployer = (IJBossProfileManagerDeployer) jbossDeployerConstructor.newInstance(container.getConfiguration());
Configuration.class); this.deployer = (IJBossProfileManagerDeployer) jbossDeployerConstructor.newInstance(container.getConfiguration());
/** * Remote deployer for the Jetty container. * @param container The container used for deployment */ public JettyRemoteDeployer(RemoteContainer container) { super(container); Configuration configuration = container.getConfiguration(); username = configuration.getPropertyValue(RemotePropertySet.USERNAME); password = configuration.getPropertyValue(RemotePropertySet.PASSWORD); deployerUrl = configuration.getPropertyValue(JettyPropertySet.DEPLOYER_URL); if (deployerUrl == null) { this.deployerUrl = createDefaultDeployerUrl(configuration); } }
/** * Remote deployer for the Jetty container. * @param container The container used for deployment */ public JettyRemoteDeployer(RemoteContainer container) { super(container); Configuration configuration = container.getConfiguration(); username = configuration.getPropertyValue(RemotePropertySet.USERNAME); password = configuration.getPropertyValue(RemotePropertySet.PASSWORD); deployerUrl = configuration.getPropertyValue(JettyPropertySet.DEPLOYER_URL); if (deployerUrl == null) { this.deployerUrl = createDefaultDeployerUrl(configuration); } }
/** * Set up a logger for the container. */ protected void setupLogger() { getContainer().setLogger(getLogger()); if (getContainer().getType().isLocal()) { ((LocalContainer) getContainer()).getConfiguration().setLogger(getLogger()); } else { ((RemoteContainer) getContainer()).getConfiguration().setLogger(getLogger()); } }
getRemoteContainer().getConfiguration().setProperty(RemotePropertySet.USERNAME, "cargo"); getRemoteContainer().getConfiguration().setProperty(RemotePropertySet.PASSWORD, "password"); getRemoteContainer().getConfiguration().setProperty( WebLogicPropertySet.LOCAL_WEBLOGIC_HOME, localContainer.getHome());
/** * Set up a logger for the container. */ protected void setupLogger() { getContainer().setLogger(getLogger()); if (getContainer().getType().isLocal()) { ((LocalContainer) getContainer()).getConfiguration().setLogger(getLogger()); } else { ((RemoteContainer) getContainer()).getConfiguration().setLogger(getLogger()); } }