|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Acme.Serve.Serve edu.isi.ontosaurus.acme.Ontosaurus
public class Ontosaurus
Ontosaurus main class. Based on the Acme.Serve class Takes serveral command line options, specified below:
-l Listener. Start up a PowerLoom listener loop for interaction with the PowerLoom code in the server. Useful for debugging and examining the KBs. -p port Port. TCP port for HTTP service. Defaults to 9090. -port port Port, alias for -p. -d directoryRoot Directory. Pathname to the directory containing the HTML documents. This will normally be the htdocs/ontosaurus subdirectory of the distribution. Defaults value is htdocs/ontosaurus in the current directory. -t throttlefile Throttles. See Acme.Serve documentation. -systeminit System initialization functions. These are the startup functions for Stella/PowerLoom systems. They must be fully qualified names. They should not have trailing (). These systems wll be initialized after the PowerLoom initialization but before loading any KBs. -kb kbFileName KB. Loads the specified kb file. May be repeated as often as desired. All such kb files will be loaded. -dot filepath File path to the dot program. Used for producing concept hierarchy graphs. -temp directory Temporary directory location. Defaults to the value of the "java.io.tmpdir" system property or "/tmp/". This is used only for producing graphs with dot.
Field Summary | |
---|---|
java.lang.String |
directoryRoot
|
static java.lang.String |
dotProgram
|
static java.lang.String |
tempDir
|
Fields inherited from class Acme.Serve.Serve |
---|
servlets |
Constructor Summary | |
---|---|
Ontosaurus()
Constructor, default port, directory and log stream. |
|
Ontosaurus(int port)
Constructor. |
|
Ontosaurus(int port,
java.lang.String directory)
Constructor. |
|
Ontosaurus(int port,
java.lang.String directory,
java.lang.String throttles)
Constructor. |
|
Ontosaurus(int port,
java.lang.String directory,
java.lang.String throttles,
java.io.PrintStream logStream)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getRealPath(java.lang.String path)
Applies alias rules to the specified virtual path and returns the corresponding real path. |
static void |
main(java.lang.String[] args)
|
void |
setup(java.lang.String directory,
java.lang.String throttles)
Does standard setup of an Ontosaurus server. |
Methods inherited from class Acme.Serve.Serve |
---|
addDefaultServlets, addDefaultServlets, addServlet, addServlet, destroyAllServlets, getAttribute, getMimeType, getServerInfo, getServlet, getServletNames, getServlets, log, log, serve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String directoryRoot
public static java.lang.String dotProgram
public static java.lang.String tempDir
Constructor Detail |
---|
public Ontosaurus(int port, java.lang.String directory, java.lang.String throttles, java.io.PrintStream logStream) throws java.io.IOException
port
- The port for the Ontosaurus serverdirectory
- The directory where the top-level ontosaurus HTML files are locatedthrottles
- Location of throttles file.logStream
- Stream for logging of Ontosaurus messages
java.io.IOException
public Ontosaurus(int port, java.lang.String directory, java.lang.String throttles) throws java.io.IOException
port
- The port for the Ontosaurus serverdirectory
- The directory where the top-level ontosaurus HTML files are locatedthrottles
- Location of throttles file.
java.io.IOException
public Ontosaurus(int port, java.lang.String directory) throws java.io.IOException
port
- The port for the Ontosaurus serverdirectory
- The directory where the top-level ontosaurus HTML files are located
java.io.IOException
public Ontosaurus(int port) throws java.io.IOException
port
- The port for the Ontosaurus server
java.io.IOException
public Ontosaurus() throws java.io.IOException
java.io.IOException
Method Detail |
---|
public static void main(java.lang.String[] args)
public void setup(java.lang.String directory, java.lang.String throttles) throws java.io.IOException
directory
- The root directory for Ontosaurus files.throttles
- File name of a throttles file.
java.io.IOException
public java.lang.String getRealPath(java.lang.String path)
getRealPath
in interface Acme.Serve.servlet.ServletContext
getRealPath
in class Acme.Serve.Serve
path
- the path to be translated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |