com.metamatrix.common.config.model
Class BasicHost
java.lang.Object
com.metamatrix.common.namedobject.BasicObject
com.metamatrix.common.config.model.BasicComponentObject
com.metamatrix.common.config.model.BasicComponentDefn
com.metamatrix.common.config.model.BasicHost
- All Implemented Interfaces:
- ComponentDefn, ComponentObject, Host, BaseObject, PropertiedObject, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class BasicHost
- extends BasicComponentDefn
- implements Host, java.io.Serializable
- See Also:
- Serialized Form
Fields inherited from interface com.metamatrix.common.config.api.ComponentDefn |
AUTHPROVIDER_COMPONENT_CODE, CONFIGURATION_COMPONENT_CODE, CONNECTOR_COMPONENT_CODE, DEPLOYED_COMPONENT_CODE, HOST_COMPONENT_CODE, PRODUCT_COMPONENT_CODE, PSC_COMPONENT_CODE, RESOURCE_DESCRIPTOR_COMPONENT_CODE, SERVICE_COMPONENT_CODE, SHARED_RESOURCE_COMPONENT_CODE, VM_COMPONENT_CODE |
Method Summary |
java.lang.Object |
clone()
Return a deep cloned instance of this object. |
java.lang.String |
getBindAddress()
Return the address that should be used to bind to the host |
java.lang.String |
getDataDirectory()
Returns the directory where data files created on this
host machine should be located. |
java.lang.String |
getHostAddress()
Return the physical host address. |
java.lang.String |
getLogDirectory()
Returns the directory where log files created on this
host machine should be located. |
java.lang.String |
getTempDirectory()
Returns the temp directory that is used when setting
the java.io.tmpdir envornment variable |
void |
setProperties(java.util.Properties props)
Set the properties for this object. |
Methods inherited from class com.metamatrix.common.config.model.BasicComponentObject |
accept, getComponentTypeID, getCreatedBy, getCreatedDate, getCreatedDateString, getDescription, getLastChangedBy, getLastChangedDate, getLastChangedDateString, getProperties, getProperty, setCreatedBy, setCreatedDate, setDescription, setLastChangedBy, setLastChangedDate, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.common.config.api.ComponentObject |
accept, getComponentTypeID, getCreatedBy, getCreatedDate, getDescription, getLastChangedBy, getLastChangedDate, getName, getProperties, getProperty, isDependentUpon |
Methods inherited from interface java.lang.Comparable |
compareTo |
BasicHost
public BasicHost(ConfigurationID configID,
HostID hostID,
ComponentTypeID typeID)
BasicHost
protected BasicHost(BasicHost component)
getDataDirectory
public java.lang.String getDataDirectory()
- Description copied from interface:
Host
- Returns the directory where data files created on this
host machine should be located.
This maybe null, therfore, the data files will goto the
current directory.
- Specified by:
getDataDirectory
in interface Host
- Returns:
- Since:
- 4.3
- See Also:
Host.getDataDirectory()
getLogDirectory
public java.lang.String getLogDirectory()
- Description copied from interface:
Host
- Returns the directory where log files created on this
host machine should be located.
This maybe null, therfore, the logfile will goto the
current directory.
- Specified by:
getLogDirectory
in interface Host
- Returns:
- Since:
- 4.3
- See Also:
Host.getLogDirectory()
getTempDirectory
public java.lang.String getTempDirectory()
- Description copied from interface:
Host
- Returns the temp directory that is used when setting
the java.io.tmpdir envornment variable
- Specified by:
getTempDirectory
in interface Host
- Returns:
- Since:
- 4.3
- See Also:
Host.getTempDirectory()
clone
public java.lang.Object clone()
- Return a deep cloned instance of this object. Subclasses must override
this method.
- Specified by:
clone
in interface BaseObject
- Overrides:
clone
in class BasicObject
- Returns:
- the object that is the clone of this instance.
getBindAddress
public java.lang.String getBindAddress()
- Return the address that should be used to bind to the host
- Specified by:
getBindAddress
in interface Host
- Returns:
- Since:
- 4.3
getHostAddress
public java.lang.String getHostAddress()
- Return the physical host address. The physical may or may not
be the same as the logical host name (@see #getID().getFullName())
- Specified by:
getHostAddress
in interface Host
- Returns:
- Since:
- 4.3
setProperties
public void setProperties(java.util.Properties props)
- Description copied from class:
BasicComponentObject
- Set the properties for this object. If the argument is null, an empty Properties
object is created.
- Parameters:
props
- the set of properties for this service; a reference to
this Properties instance should not be maintained by the caller
Copyright © 2009. All Rights Reserved.