|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.datapower.wamt.dataAPI.local.filesystem.StoredManagedSetImpl
public class StoredManagedSetImpl
The StoredMangedSet writes and reads all information that must be maintained for ManagedSet including its managed device members. Below is a sample ManagedSet element with a single member.
<managedSets xmi:id="DPManagedSet_1" name="set1" deviceMembers="DPDevice_0"/>
Note: The Local File System implementation adds an element for each ManagedSet that is created. All it device members are stored as attributes on the Managedset element. It does not contain other elements.
Field Summary |
---|
Fields inherited from interface com.ibm.datapower.wamt.dataAPI.StoredManagedSet |
---|
COPYRIGHT_2009_2010, SCM_REVISION |
Method Summary | |
---|---|
void |
add(StoredDevice device)
Adds the specified device to the specified managed set. |
void |
delete()
Note: The Local File System implementation deletes the ManagedSet element from the WAMT.repository.xml file but any device elements that are not contained inside it are retained and can be accessed by calling Manager.getAllDevices() and
Manager.getDmiLogger() |
StoredDevice[] |
getDeviceMembers()
Gets the array of devices which are members of this managed set. |
java.lang.String |
getName()
Note: The Local File System implementation uses the name as the unique identifier of this object in the repository. |
java.lang.String |
getPrimaryKey()
Note: The Local File System implementation uses the name of the ManagesSet as the unique identifier for this object. |
void |
remove(StoredDevice device)
Removes the specified device from this managed set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
Note: The Local File System implementation uses the name as the unique identifier of this object in the repository.
getName
in interface StoredManagedSet
public void add(StoredDevice device)
StoredManagedSet
ManagedSet.addDevice(com.ibm.datapower.wamt.clientAPI.Device)
add
in interface StoredManagedSet
device
- the device to addStoredManagedSet.remove(StoredDevice)
public StoredDevice[] getDeviceMembers()
StoredManagedSet
getDeviceMembers
in interface StoredManagedSet
This is invoked by
{@link com.ibm.datapower.wamt.clientAPI.ManagedSet#getDeviceMembers()}
,
StoredManagedSet.remove(StoredDevice)
public void remove(StoredDevice device)
StoredManagedSet
ManagedSet.removeDevice(com.ibm.datapower.wamt.clientAPI.Device)
The removed device is still persisted in the repository though it is no longer managed by this
managed set. You can reverse this by adding the device back to the managed set.
remove
in interface StoredManagedSet
device
- the device to removeStoredManagedSet.add(StoredDevice)
,
StoredManagedSet.getDeviceMembers()
public void delete() throws DatastoreException, NotEmptyInRepositoryException
Note: The Local File System implementation
deletes the ManagedSet element from the WAMT.repository.xml file but any device elements
that are not contained inside it are retained and can be accessed by calling
Manager.getAllDevices()
and
Manager.getDmiLogger()
delete
in interface StoredManagedSet
public java.lang.String getPrimaryKey()
Note: The Local File System implementation
uses the name of the ManagesSet as the unique identifier for this object. The name is immutable, so there is no
setName(String)
method.
getPrimaryKey
in interface Persistable
getPrimaryKey
in interface StoredManagedSet
StoredManagedSet.getName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |