Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.host
Interface RuntimeInfo


public interface RuntimeInfo

Interface that provides information on the runtime environment.

Version:
$Rev: 463855 $ $Date: 2006-10-13 15:24:12 -0700 (Fri, 13 Oct 2006) $

Field Summary
static String COMPONENT_NAME
          The default name that the runtime should assign to the component providing this service.
 
Method Summary
 File getApplicationRootDirectory()
          Return the root directory used to resolve application file paths.
 URL getBaseURL()
          Gets the base URL for the runtime.
 File getInstallDirectory()
          Return the directory where the running runtime was installed.
 boolean isOnline()
          Returns whether the runtime considers itself "online" or connected to the internet.
 

Field Detail

COMPONENT_NAME

static final String COMPONENT_NAME
The default name that the runtime should assign to the component providing this service.

See Also:
Constant Field Values
Method Detail

getInstallDirectory

File getInstallDirectory()
Return the directory where the running runtime was installed.

Returns:
the directory where the runtime was installed

getApplicationRootDirectory

File getApplicationRootDirectory()
Return the root directory used to resolve application file paths.

Returns:
the directory used to resolve application file paths.

getBaseURL

URL getBaseURL()
Gets the base URL for the runtime.

Returns:
The base URL for the runtime.

isOnline

boolean isOnline()
Returns whether the runtime considers itself "online" or connected to the internet. This can be used by services to enable access to remote resources.

Returns:
true if the runtime is online.

Apache Tuscany SCA Kernel Sub-Project

-