public abstract class AbstractTaurusSystem extends Resource implements ITaurusSystem
ITaurusSystem interface, which
automatically registers itself in the ITaurusSystemDirectory on
creation and manages custom attributes.
Can be sub-classed by clients.
ID_PREFIX| Constructor and Description |
|---|
AbstractTaurusSystem(ISystemImage pImg,
java.lang.String pSystemName,
java.lang.String pID)
Creates a new abstract AWM system and registers it in the
TaurusSystemDirectory. |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Removes this resource and all its children resources from cache.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCustomAttribute(java.lang.String pName)
Gets the value of a custom system attribute by the given name.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomAttributes()
Gets all custom attributes that have been set for the system.
|
ISystemImage |
getSystemImage()
Gets the system image this AWM system belongs to.
|
int |
hashCode() |
addChildResource, addPropertyValue, addResourceChild, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, getValueOfLinkedProperty, removeProperty, removeResourceChild, setName, setPropertyValuesgetClass, notify, notifyAll, toString, wait, wait, waitgetApplications, getProviderID, refreshaddChildResource, addPropertyValue, addResourceChild, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setName, setPropertyValuespublic AbstractTaurusSystem(ISystemImage pImg, java.lang.String pSystemName, java.lang.String pID) throws TaurusCoreException
TaurusSystemDirectory.pImg - the system image for the TAURUS system.pSystemName - the unique name of the system.pID - the unique ID of the TAURUS system.TaurusCoreException - if the system already exists or cannot be added to the
TaurusSystemDirectory.TaurusSystemDirectory.addSystem(ITaurusSystem, boolean)public ISystemImage getSystemImage()
ITaurusSystemgetSystemImage in interface ITaurusSystemISystemImagepublic void delete()
throws TaurusCoreException
IResourcedelete in interface IResourcedelete in class ResourceTaurusCoreException - if the deletion of the resource failsIResource.getChildrenResources()public java.lang.String getCustomAttribute(java.lang.String pName)
ITaurusSystemgetCustomAttribute in interface ITaurusSystempName - the name of the desired attributenull if no attribute
with the given name was setpublic java.util.Map<java.lang.String,java.lang.String> getCustomAttributes()
ITaurusSystemgetCustomAttributes in interface ITaurusSystemCopyright © 2015 Micro Focus GmbH. All rights reserved.