Package org.teiid.adminapi.impl
Class AdminObjectImpl
- java.lang.Object
-
- org.teiid.adminapi.impl.AdminObjectImpl
-
- All Implemented Interfaces:
Serializable,AdminObject
- Direct Known Subclasses:
CacheStatisticsMetadata,EngineStatisticsMetadata,EntryMetaData,ModelMetaData,PropertyDefinitionMetadata,RequestMetadata,SessionMetadata,TransactionMetadata,VDBImportMetadata,VDBMetaData,VDBTranslatorMetaData,WorkerPoolStatisticsMetadata
public abstract class AdminObjectImpl extends Object implements AdminObject, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Class<?>,Object>attachments-
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description AdminObjectImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> TaddAttachment(Class<T> type, T attachment)Add attachment<T> TaddAttchment(Class<T> type, T attachment)Deprecated.voidaddProperty(String key, String value)<T> TgetAttachment(Class<T> type)Get attachmentStringgetHostName()StringgetName()Get the name for this AdminObject, usually the last component of the identifier.PropertiesgetProperties()Get the Configuration Properties that defines this processMap<String,String>getPropertiesMap()StringgetPropertyValue(String key)Searches for the property with the specified key in this Admin Object.StringgetServerGroup()StringgetServerName()<T> TremoveAttachment(Class<T> type)Remove attachmentStringremoveProperty(String key)voidsetHostName(String name)voidsetName(String name)voidsetProperties(Properties props)voidsetServerGroup(String group)voidsetServerName(String name)
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:AdminObjectGet the name for this AdminObject, usually the last component of the identifier.- Specified by:
getNamein interfaceAdminObject- Returns:
- String Name
-
setName
public void setName(String name)
-
getServerGroup
public String getServerGroup()
-
getServerName
public String getServerName()
-
getHostName
public String getHostName()
-
setServerGroup
public void setServerGroup(String group)
-
setServerName
public void setServerName(String name)
-
setHostName
public void setHostName(String name)
-
getProperties
public Properties getProperties()
Description copied from interface:AdminObjectGet the Configuration Properties that defines this process- Specified by:
getPropertiesin interfaceAdminObject- Returns:
- Properties
-
setProperties
public void setProperties(Properties props)
-
getPropertiesMap
public Map<String,String> getPropertiesMap()
- Returns:
- a Map that is directly modifiable
-
getPropertyValue
public String getPropertyValue(String key)
Description copied from interface:AdminObjectSearches for the property with the specified key in this Admin Object. If the key is not found the method returnsnull.- Specified by:
getPropertyValuein interfaceAdminObject- Parameters:
key- the property key.- Returns:
- the value in this Admin Object with the specified key value.
-
addAttchment
@Deprecated public <T> T addAttchment(Class<T> type, T attachment)
Deprecated.
-
addAttachment
public <T> T addAttachment(Class<T> type, T attachment)
Add attachment- Type Parameters:
T- the expected type- Parameters:
attachment- the attachmenttype- the type- Returns:
- any previous attachment
- Throws:
IllegalArgumentException- for a null name, attachment or typeUnsupportedOperationException- when not supported by the implementation
-
removeAttachment
public <T> T removeAttachment(Class<T> type)
Remove attachment- Type Parameters:
T- the expected type- Parameters:
type- the type- Returns:
- the attachment or null if not present
- Throws:
IllegalArgumentException- for a null name or type
-
getAttachment
public <T> T getAttachment(Class<T> type)
Get attachment- Type Parameters:
T- the expected type- Parameters:
type- the type- Returns:
- the attachment or null if not present
- Throws:
IllegalArgumentException- for a null name or type
-
-