Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
   * as indicated by the @authors tag. All rights reserved.
   * See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * Licensed 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 org.jboss.as.arquillian.container.domain.managed;
 
 import java.io.File;
 

Author(s):
Aslak Knutsen
Version:
$Revision: $
 
 
     private String jbossHome = System.getenv("JBOSS_HOME");
 
     private String javaHome = System.getenv("JAVA_HOME");
 
     private String modulePath = System.getProperty("module.path");
 
     private String javaVmArguments = System.getProperty("jboss.options""-Xmx512m -XX:MaxPermSize=128m");
 
     private int startupTimeoutInSeconds = 60;
 
     private int stopTimeoutInSeconds = 60;
 
     private int autoServerStartupTimeoutInSeconds = 60;
 
     private boolean outputToConsole = true;
 
     private String domainConfig = System.getProperty("jboss.domain.default.config""domain.xml");
 
     private String hostConfig = System.getProperty("jboss.host.default.config""host.xml");
 
     private boolean allowConnectingToRunningServer = false;
 
     private boolean enableAssertions = true;
 
     private boolean setupCleanServerBaseDir = false;
 
     private String cleanServerBaseDir;
 
         // if no javaHome is set use java.home of already running jvm
         if ( == null || .isEmpty()) {
              = System.getProperty("java.home");
         }
     }
 
     @Override
     public void validate() throws ConfigurationException {
         super.validate();
 
         Validate.configurationDirectoryExists("jbossHome '" +  + "' must exist");
         if ( != null) {
             Validate.configurationDirectoryExists("javaHome must exist");
         }
     }

    

Returns:
the jbossHome
 
     public String getJbossHome() {
         return ;
     }

    

Parameters:
jbossHome the jbossHome to set
 
     public void setJbossHome(String jbossHome) {
         this. = new File(jbossHome).getAbsolutePath();
     }

    

Returns:
the javaHome
 
     public String getJavaHome() {
         return ;
     }

    

Parameters:
javaHome the javaHome to set
    public void setJavaHome(String javaHome) {
        this. = javaHome;
    }

    

Returns:
the javaVmArguments
    public String getJavaVmArguments() {
        return ;
    }

    

Parameters:
javaVmArguments the javaVmArguments to set
    public void setJavaVmArguments(String javaVmArguments) {
        this. = javaVmArguments;
    }

    
The number of seconds to wait before failing when starting domain controller process

Parameters:
startupTimeoutInSeconds
    public void setStartupTimeoutInSeconds(int startupTimeoutInSeconds) {
        this. = startupTimeoutInSeconds;
    }

    

Returns:
the startupTimeoutInSeconds
    public int getStartupTimeoutInSeconds() {
        return ;
    }

    

Parameters:
stopTimeoutInSeconds number of seconds to wait for the container process to shutdown
    public void setStopTimeoutInSeconds(int stopTimeoutInSeconds) {
        this. = stopTimeoutInSeconds;
    }

    

Returns:
stopTimeoutInSeconds number of seconds to wait for the container process to shutdown; defaults to 60
    public int getStopTimeoutInSeconds() {
        return ;
    }

    
The number of seconds to wait before failing when starting servers in Auto start mode

Parameters:
autoServerStartupTimeoutInSeconds
    public void setAutoServerStartupTimeoutInSeconds(int autoServerStartupTimeoutInSeconds) {
        this. = autoServerStartupTimeoutInSeconds;
    }

    

Returns:
the autoServerStartupTimeoutInSeconds
    public int getAutoServerStartupTimeoutInSeconds() {
        return ;
    }

    

Parameters:
outputToConsole the outputToConsole to set
    public void setOutputToConsole(boolean outputToConsole) {
        this. = outputToConsole;
    }

    

Returns:
the outputToConsole
    public boolean isOutputToConsole() {
        return ;
    }

    
Get the server configuration file name. Equivalent to [-server-config=...] on the command line.

Returns:
the server config
    public String getDomainConfig() {
        return ;
    }

    
Set the server configuration file name. Equivalent to [-Djboss.domain.default.config=...] on the command line.

Parameters:
domainConfig the domain xml file name
    public void setDomainConfig(String domainConfig) {
        this. = domainConfig;
    }
    public String getModulePath() {
        return ;
    }
    public String getHostConfig() {
        return ;
    }

    
Set the server configuration file name. Equivalent to [-Djboss.host.default.config=...] on the command line.

Parameters:
hostConfig the host xml file name
    public void setHostConfig(String hostConfig) {
        this. = hostConfig;
    }
    public void setModulePath(final String modulePath) {
        this. = modulePath;
    }
    public boolean isAllowConnectingToRunningServer() {
        return ;
    }
    public void setAllowConnectingToRunningServer(final boolean allowConnectingToRunningServer) {
        this. = allowConnectingToRunningServer;
    }
    public boolean isEnableAssertions() {
        return ;
    }
    public void setEnableAssertions(final boolean enableAssertions) {
        this. = enableAssertions;
    }
    public boolean isSetupCleanServerBaseDir() {
        return ;
    }
    public void setSetupCleanServerBaseDir(boolean setupCleanServerBaseDir) {
        this. = setupCleanServerBaseDir;
    }
    public String getCleanServerBaseDir() {
        return ;
    }
    public void setCleanServerBaseDir(String cleanServerBaseDir) {
        this. = cleanServerBaseDir;
    }
New to GrepCode? Check out our FAQ X