org.apache.geronimo.system.serverinfo
Interface ServerInfo

All Known Implementing Classes:
BasicServerInfo

public interface ServerInfo

Contains information about the server and functions for resolving pathnames.

Version:
$Rev: 476049 $ $Date: 2006-11-17 12:35:17 +0800 (Fri, 17 Nov 2006) $

Method Summary
 java.lang.String getBaseDirectory()
          A config.xml setting for the base directory.
 java.lang.String getBuildDate()
           
 java.lang.String getBuildTime()
           
 java.lang.String getCopyright()
           
 java.lang.String getCurrentBaseDirectory()
          The base directory that this ServerInfo is actually using.
 java.lang.String getVersion()
           
 java.io.File resolve(java.lang.String filename)
          Resolves a relative pathname to a File, relative to the server installation directory (e.g.
 java.net.URI resolve(java.net.URI uri)
           
 java.lang.String resolvePath(java.lang.String filename)
           
 java.io.File resolveServer(java.lang.String filename)
          Resolves a relative pathname to a File, relative to the server configuration directory.
 java.net.URI resolveServer(java.net.URI uri)
           
 java.lang.String resolveServerPath(java.lang.String filename)
           
 

Method Detail

resolvePath

java.lang.String resolvePath(java.lang.String filename)

resolveServerPath

java.lang.String resolveServerPath(java.lang.String filename)

resolve

java.io.File resolve(java.lang.String filename)
Resolves a relative pathname to a File, relative to the server installation directory (e.g. "foo" becomes .../geronimo/foo)

Parameters:
filename - a String containing a pathname, which will be resolved by resolvePath(String filename).
Returns:
a File value

resolveServer

java.io.File resolveServer(java.lang.String filename)
Resolves a relative pathname to a File, relative to the server configuration directory. Normally, this is the same as the Geronimo installation directory (e.g. "foo" becomes .../geronimo/foo). However, you can pass command-line arguments to the server to relocate this to a server-instance-specific directory (e.g. "var/foo" might become .../geronimo/instance1/var/foo if the server was started with the flag indicating that the server instance dir was "instance1").


resolve

java.net.URI resolve(java.net.URI uri)

resolveServer

java.net.URI resolveServer(java.net.URI uri)

getBaseDirectory

java.lang.String getBaseDirectory()
A config.xml setting for the base directory. This is normally left null, which means the ServerInfo will use the Geronimo install directory.


getCurrentBaseDirectory

java.lang.String getCurrentBaseDirectory()
The base directory that this ServerInfo is actually using.


getVersion

java.lang.String getVersion()

getBuildDate

java.lang.String getBuildDate()

getBuildTime

java.lang.String getBuildTime()

getCopyright

java.lang.String getCopyright()


Copyright © 2003-2012 The Apache Geronimo development community. All Rights Reserved.