public final class yacy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
static java.lang.String |
hline |
static java.io.File |
htDocsPath |
private static Switchboard |
sb
a reference to the
Switchboard created by the
yacy#startup(String, long, long) method. |
static java.io.File |
shareDefaultPath |
static java.io.File |
shareDumpDefaultPath |
static java.util.concurrent.Semaphore |
shutdownSemaphore |
static java.lang.String |
vDATE |
static java.lang.String |
vString |
Constructor and Description |
---|
yacy() |
Modifier and Type | Method and Description |
---|---|
private static java.util.Properties |
configuration(java.lang.String mes,
java.io.File homePath)
Loads the configuration from the data-folder.
|
private static void |
delete(java.io.File f) |
static void |
main(java.lang.String[] args)
Main-method which is started by java.
|
private static void |
mkdirIfNeseccary(java.io.File path) |
static void |
mkdirsIfNeseccary(java.io.File path) |
private static void |
preReadSavedConfigandInit(java.io.File dataHome)
read saved config file and perform action which need to be done before main task starts
- like check on system alrady running etc.
|
static void |
shutdown(java.io.File homePath)
Call the shutdown-page of YaCy to tell it to shut down.
|
private static void |
startup(java.io.File dataHome,
java.io.File appHome,
long startupMemFree,
long startupMemTotal,
boolean gui)
Starts up the whole application.
|
private static void |
submitURL(java.io.File homePath,
java.lang.String path,
java.lang.String processdescription) |
static void |
update(java.io.File homePath) |
public static final java.lang.String vString
public static final java.lang.String vDATE
public static final java.lang.String copyright
public static final java.lang.String hline
public static final java.util.concurrent.Semaphore shutdownSemaphore
public static java.io.File htDocsPath
public static java.io.File shareDefaultPath
public static java.io.File shareDumpDefaultPath
private static Switchboard sb
Switchboard
created by the
yacy#startup(String, long, long)
method.private static void startup(java.io.File dataHome, java.io.File appHome, long startupMemFree, long startupMemTotal, boolean gui)
homePath
- Root-path where all information is to be found.startupFree
- free memory at startup time, to be used later for statisticsprivate static void delete(java.io.File f)
f
- private static void mkdirIfNeseccary(java.io.File path)
path
- File.mkdir()
public static void mkdirsIfNeseccary(java.io.File path)
path
- File.mkdirs()
private static java.util.Properties configuration(java.lang.String mes, java.io.File homePath)
mes
- Where are we called from, so that the errormessages can be
more descriptive.homePath
- Root-path where all the information is to be found.public static void shutdown(java.io.File homePath)
homePath
- Root-path where all the information is to be found.public static void update(java.io.File homePath)
private static void submitURL(java.io.File homePath, java.lang.String path, java.lang.String processdescription)
private static void preReadSavedConfigandInit(java.io.File dataHome)
dataHome
- data directorypublic static void main(java.lang.String[] args)
args
- Given arguments from the command line.