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> T
addAttachment(Class<T> type, T attachment)
Add attachment<T> T
addAttchment(Class<T> type, T attachment)
Deprecated.void
addProperty(String key, String value)
<T> T
getAttachment(Class<T> type)
Get attachmentString
getHostName()
String
getName()
Get the name for this AdminObject, usually the last component of the identifier.Properties
getProperties()
Get the Configuration Properties that defines this processMap<String,String>
getPropertiesMap()
String
getPropertyValue(String key)
Searches for the property with the specified key in this Admin Object.String
getServerGroup()
String
getServerName()
<T> T
removeAttachment(Class<T> type)
Remove attachmentString
removeProperty(String key)
void
setHostName(String name)
void
setName(String name)
void
setProperties(Properties props)
void
setServerGroup(String group)
void
setServerName(String name)
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:AdminObject
Get the name for this AdminObject, usually the last component of the identifier.- Specified by:
getName
in 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:AdminObject
Get the Configuration Properties that defines this process- Specified by:
getProperties
in 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:AdminObject
Searches for the property with the specified key in this Admin Object. If the key is not found the method returnsnull
.- Specified by:
getPropertyValue
in 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
-
-