org.sca4j.host.runtime
Interface HostInfo

All Known Implementing Classes:
AbstractHostInfo

public interface HostInfo

Interface that provides information on the host environment. This allows the runtime to access information about the environment in which it is running. The implementation of this interface is provided to the runtime by the host during initialization. Hosts will generally extend this interface to provide additional information.

Version:
$Rev: 5139 $ $Date: 2008-08-02 17:18:18 +0100 (Sat, 02 Aug 2008) $

Field Summary
static java.lang.String HOST_CONFIG_DIR
           
 
Method Summary
 void addProperty(java.lang.String name, java.lang.String value)
          Adds a new property.
 java.net.URI getDomain()
          Returns the SCA domain associated with this runtime.
 java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
          Return the value of the named property.
 

Field Detail

HOST_CONFIG_DIR

static final java.lang.String HOST_CONFIG_DIR
See Also:
Constant Field Values
Method Detail

getDomain

java.net.URI getDomain()
Returns the SCA domain associated with this runtime. A null domain indicates that this is a standalone runtime with a self-contained domain.

Returns:
the SCA domain associated with this runtime; may be null

addProperty

void addProperty(java.lang.String name,
                 java.lang.String value)
Adds a new property.

Parameters:
name - the name of the property
value - the value of the property

getProperty

java.lang.String getProperty(java.lang.String name,
                             java.lang.String defaultValue)
Return the value of the named property.

Parameters:
name - the name of the property
defaultValue - default value to return if the property is not defined
Returns:
the value of the named property


Copyright © 2008-2010 Service Symphony. All Rights Reserved.