Save This Page
Home » » » [javadoc | source]
public class: MainDelegate [javadoc | source]

All Implemented Interfaces:

The Main class is a simple Java Application which interprests the command line and creates the Sling launcher class and thus starts the OSGi framework. In addition a shutdown thread is registered to ensure proper shutdown on VM termination.

The supported command line options are:

-l loglevel
Sets the initial loglevel as an integer in the range 0 to 4 or as one of the well known level strings FATAL, ERROR, WARN, INFO or DEBUG. This option overwrites the setting the file.
-f logfile
The log file, \"-\" for stdout (default logs/error.log). This option overwrites the setting the file.
-c slinghome
The directory in which Sling locates its initial configuration file and where files of Sling itself such as the Apache Felix bundle archive or the JCR repository files are stored (default sling).
-a address
The interfact to bind to (use for any). This option is not implemented yet.
-p port
The port to listen (default 8080) to handle HTTP requests. This option overwrites the org.osgi.service.http.port setting the file.
Prints a simple usage message listing all available command line options.
Method from Summary:
error,   info,   setCommandLine,   setNotifiable,   setSlingHome,   start,   stop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 static  void error(String message,
    Throwable t) 
 static  void info(String message,
    Throwable t) 
 public  void setCommandLine(Map<String, String> args) 
 public  void setNotifiable(Notifiable notifiable) 
 public  void setSlingHome(String slingHome) 
 public boolean start() 
 public  void stop()