public class BimServerConfig extends Object
| Constructor and Description |
|---|
BimServerConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassPath() |
Environment |
getEnvironment() |
Path |
getHomeDir() |
int |
getPort() |
String |
getResourcebase() |
org.bimserver.plugins.ResourceFetcher |
getResourceFetcher() |
boolean |
isAutoMigrate() |
boolean |
isLocalDev() |
boolean |
isStartCommandLine() |
boolean |
isStartEmbeddedWebServer() |
void |
setAutoMigrate(boolean autoMigrate) |
void |
setClassPath(String classPath) |
void |
setEnvironment(Environment environment) |
void |
setHomeDir(Path homeDir) |
void |
setLocalDev(boolean localDev) |
void |
setPort(int port) |
void |
setResourceBase(String resourceBase) |
void |
setResourceFetcher(org.bimserver.plugins.ResourceFetcher resourceFetcher) |
void |
setStartCommandLine(boolean startCommandLine) |
void |
setStartEmbeddedWebServer(boolean startEmbeddedWebServer) |
public boolean isStartEmbeddedWebServer()
public void setStartEmbeddedWebServer(boolean startEmbeddedWebServer)
startEmbeddedWebServer - Whether to start an embedded web server or not (make sure the port it will be listening on is free, you can set the port with setPort)public org.bimserver.plugins.ResourceFetcher getResourceFetcher()
public void setResourceFetcher(org.bimserver.plugins.ResourceFetcher resourceFetcher)
resourceFetcher - A ResourceFetcher is an abstraction layer between BIMserver and (usually) the file system, but some implementations get resources from memory or other places as wellpublic Path getHomeDir()
public void setHomeDir(Path homeDir)
homeDir - The home directory is a directory used for: database, logging, tmp and configurationpublic String getClassPath()
public void setClassPath(String classPath)
classPath - When running BIMserver from your IDE, some plugins can be loaded from the default classpath, you can set it here (or another classpath if you want)public void setPort(int port)
port - The port on which the web server will listen (make sure it is started by calling setStartEmbeddedWebServer(true)public int getPort()
public boolean isStartCommandLine()
public void setStartCommandLine(boolean startCommandLine)
startCommandLine - Whether to start the command line (will read commands from stdin, most are for debugging)public boolean isLocalDev()
public void setEnvironment(Environment environment)
public Environment getEnvironment()
public void setLocalDev(boolean localDev)
localDev - Whether this is a local development environment, it's only used for a hack to attach the webdefault.xml to jettypublic boolean isAutoMigrate()
public void setAutoMigrate(boolean autoMigrate)
autoMigrate - When true, database migrations will be done automatically on BIMserver startup, otherwise will have to be done manuallypublic void setResourceBase(String resourceBase)
public String getResourcebase()
Copyright © 2019 OpenSource BIM. All rights reserved.