Package com.ibm.di.api.jmx.mbeans
Class TombstoneManager
- java.lang.Object
-
- com.ibm.di.api.jmx.mbeans.BaseAdmin
-
- com.ibm.di.api.jmx.mbeans.TombstoneManager
-
- All Implemented Interfaces:
BaseAdminMBean,BaseMBean,TombstoneManagerMBean
public class TombstoneManager extends BaseAdmin implements TombstoneManagerMBean
Represents a TombstoneManager instance. Provides various methods to deal with Tombstones.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMBEAN_IDId of the MBean.static java.lang.StringMBEAN_TYPEType of the MBean.
-
Constructor Summary
Constructors Constructor Description TombstoneManager(TombstoneManager aTombstoneManager)Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdeleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID)Deletes all tombstones for specified AssemblyLine.intdeleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aDays)Deletes all tombstones for the specified AssemblyLine that are older than the specified number of days.intdeleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date olderThan)Deletes all tombstones for the specified AssemblyLine that are older than the specified date.intdeleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date startDate, java.util.Date endDate)Deletes all tombstones for the specified AssemblyLine that are in the specifiedDaterangeintdeleteCITombstones(java.lang.String aConfigID)Deletes all tombstones for specified Config Instance.intdeleteCITombstones(java.lang.String aConfigID, int aDays)Deletes all tombstones for the specified Config Instance that are older than the specified number of days.booleandeleteTombstone(java.lang.String aGUID)Deletes the tombstone with the specified GUID.intdeleteTombstones(int aDays)Deletes all tombstones that are older than the specified number of days.Tombstone[]getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID)Returns all available tombstones for the specified AssemblyLine.Tombstone[]getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aRecentNumberOfTombstones)Returns the recent n number of tombstones for a specified AssemblyLine.Tombstone[]getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date aStartTime, java.util.Date aEndTime)Returns all available tombstones for the specified AssemblyLine with timestamps in the interval specified by aStartTime and aEndTime.Tombstone[]getConfigInstanceTombstones(java.lang.String aConfigID)Returns all available tombstones for the specified Config Instance.Tombstone[]getConfigInstanceTombstones(java.lang.String aConfigID, java.util.Date aStartTime, java.util.Date aEndTime)Returns all available tombstones for the specified Config Instance with timestamps in the interval specified by aStartTime and aEndTime.java.lang.StringgetId()Reads attribute "Id".TombstonegetTombstone(java.lang.String aGUID)Returns a single tombstone object uniquely identified by the specified GUID.Tombstone[]getTombstones(java.util.Date aStartTime, java.util.Date aEndTime)Returns all available tombstones with timestamps in the interval specified by aStartTime and aEndTime.java.lang.StringgetType()Reads attribute "Type".intkeepMostRecentALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aMostResentToKeep)After this method is executed only the aMostRecentToKeep most recent tombstone records for the specified AssemblyLine are kept and all other are deleted.intkeepMostRecentCITombstones(java.lang.String aConfigID, int aMostResentToKeep)After this method is executed only the aMostRecentToKeep most recent tombstone records for the specified Config Instance are kept and all other are deleted.intkeepMostRecentTombstones(int aMostResentToKeep)After this method is executed only the aMostRecentToKeep most recent tombstone records are kept and all other are deleted.-
Methods inherited from class com.ibm.di.api.jmx.mbeans.BaseAdmin
getCurrentUserId, getKeyPropertyList
-
-
-
-
Field Detail
-
MBEAN_TYPE
public static final java.lang.String MBEAN_TYPE
Type of the MBean.- See Also:
- Constant Field Values
-
MBEAN_ID
public static final java.lang.String MBEAN_ID
Id of the MBean.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TombstoneManager
public TombstoneManager(TombstoneManager aTombstoneManager) throws DIException
Class constructor.- Parameters:
aTombstoneManager-TombstoneManagerinstance.- Throws:
DIException
-
-
Method Detail
-
getType
public java.lang.String getType()
Reads attribute "Type".getType()andgetId()are used in a common schema for object names for all MBeans in the management package. The key properties part of the object name of each MBean is defined as"type=" + getType() + ",id=" + getId(), for example "type=AssemblyLine,id=Hello".
-
getId
public java.lang.String getId()
Reads attribute "Id". The "Id" value should be different for different MBeans of the same type.getType()andgetId()are used in a common schema for object names for all MBeans in the management package. The key properties part of the object name of each MBean is defined as"type=" + getType() + ",id=" + getId(), for example "type=AssemblyLine,id=Hello".
-
getTombstone
public Tombstone getTombstone(java.lang.String aGUID) throws DIException
Returns a single tombstone object uniquely identified by the specified GUID.- Specified by:
getTombstonein interfaceTombstoneManagerMBean- Parameters:
aGUID- Tombstone GUID.- Returns:
- the Tombstone object.
- Throws:
DIException- if an error occurs while getting the Tombstone object.
-
getAssemblyLineTombstones
public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID) throws DIException
Returns all available tombstones for the specified AssemblyLine.- Specified by:
getAssemblyLineTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The name of the AssemblyLine.aConfigID- The name of the AssmeblyLine's configuration.- Returns:
- an array of Tombstone objects.
- Throws:
DIException- if an error occurs while getting the Tombstone objects.
-
getAssemblyLineTombstones
public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aRecentNumberOfTombstones) throws DIException
Returns the recent n number of tombstones for a specified AssemblyLine.- Specified by:
getAssemblyLineTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The name of the AssemblyLine.aConfigID- The name of the AssmeblyLine's configuration.aRecentNumberOfTombstones- The recent n number of tombstones to be fetched.- Returns:
- an array of Tombstone objects.
- Throws:
DIException
-
getAssemblyLineTombstones
public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date aStartTime, java.util.Date aEndTime) throws DIException
Returns all available tombstones for the specified AssemblyLine with timestamps in the interval specified by aStartTime and aEndTime.- Specified by:
getAssemblyLineTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The name of the AssemblyLine.aConfigID- The name of the AssmeblyLine's configuration.aStartTime- period start time.aEndTime- period end time.- Returns:
- an array of Tombstone objects.
- Throws:
DIException- if an error occurs while getting the Tombstone objects for the specified AssemblyLine.
-
getConfigInstanceTombstones
public Tombstone[] getConfigInstanceTombstones(java.lang.String aConfigID) throws DIException
Returns all available tombstones for the specified Config Instance.- Specified by:
getConfigInstanceTombstonesin interfaceTombstoneManagerMBean- Parameters:
aConfigID- The configuration name.- Returns:
- an array of Tombstone objects.
- Throws:
DIException- if an error occurs while getting the Tombstone objects for the specified Config Instance.
-
getConfigInstanceTombstones
public Tombstone[] getConfigInstanceTombstones(java.lang.String aConfigID, java.util.Date aStartTime, java.util.Date aEndTime) throws DIException
Returns all available tombstones for the specified Config Instance with timestamps in the interval specified by aStartTime and aEndTime.- Specified by:
getConfigInstanceTombstonesin interfaceTombstoneManagerMBean- Parameters:
aConfigID- The configuration name.aStartTime- period start time.aEndTime- period end time.- Returns:
- an array of Tombstone objects.
- Throws:
DIException- if an error occurs while getting the Tombstone objects for the specified Config Instance.
-
getTombstones
public Tombstone[] getTombstones(java.util.Date aStartTime, java.util.Date aEndTime) throws DIException
Returns all available tombstones with timestamps in the interval specified by aStartTime and aEndTime.- Specified by:
getTombstonesin interfaceTombstoneManagerMBean- Parameters:
aStartTime- period start time.aEndTime- period end time.- Returns:
- an array of Tombstone objects.
- Throws:
DIException- if an error occurs while getting the Tombstone objects for the specified interval.
-
deleteTombstones
public int deleteTombstones(int aDays) throws DIExceptionDeletes all tombstones that are older than the specified number of days.- Specified by:
deleteTombstonesin interfaceTombstoneManagerMBean- Parameters:
aDays- Number of days.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
keepMostRecentTombstones
public int keepMostRecentTombstones(int aMostResentToKeep) throws DIExceptionAfter this method is executed only the aMostRecentToKeep most recent tombstone records are kept and all other are deleted.- Specified by:
keepMostRecentTombstonesin interfaceTombstoneManagerMBean- Parameters:
aMostResentToKeep- number of most recent tombstones to keep.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
deleteALTombstones
public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID) throws DIExceptionDeletes all tombstones for specified AssemblyLine.- Specified by:
deleteALTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The AssemblyLine name.aConfigID- The AssemblyLine's configuration name.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
deleteALTombstones
public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aDays) throws DIExceptionDeletes all tombstones for the specified AssemblyLine that are older than the specified number of days.- Specified by:
deleteALTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The AssemblyLine name.aConfigID- The AssemblyLine's configuration name.aDays- Number of days.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
deleteALTombstones
public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date olderThan) throws DIExceptionDeletes all tombstones for the specified AssemblyLine that are older than the specified date.- Specified by:
deleteALTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The AssemblyLine name.aConfigID- The AssemblyLine's configuration name.olderThan- Date- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
deleteALTombstones
public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date startDate, java.util.Date endDate) throws DIExceptionDeletes all tombstones for the specified AssemblyLine that are in the specifiedDaterange- Specified by:
deleteALTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The AssemblyLine name.aConfigID- The AssemblyLine's configuration name.startDate- DateendDate- Date- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
keepMostRecentALTombstones
public int keepMostRecentALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aMostResentToKeep) throws DIExceptionAfter this method is executed only the aMostRecentToKeep most recent tombstone records for the specified AssemblyLine are kept and all other are deleted.- Specified by:
keepMostRecentALTombstonesin interfaceTombstoneManagerMBean- Parameters:
aAssemblyLineName- The AssemblyLine name.aConfigID- The AssemblyLine's configuration name.aMostResentToKeep- Number of most recent tombstones to keep.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
deleteCITombstones
public int deleteCITombstones(java.lang.String aConfigID) throws DIExceptionDeletes all tombstones for specified Config Instance.- Specified by:
deleteCITombstonesin interfaceTombstoneManagerMBean- Parameters:
aConfigID- Configuration name.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
deleteCITombstones
public int deleteCITombstones(java.lang.String aConfigID, int aDays) throws DIExceptionDeletes all tombstones for the specified Config Instance that are older than the specified number of days.- Specified by:
deleteCITombstonesin interfaceTombstoneManagerMBean- Parameters:
aConfigID- Configuration name.aDays- Number of days.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
keepMostRecentCITombstones
public int keepMostRecentCITombstones(java.lang.String aConfigID, int aMostResentToKeep) throws DIExceptionAfter this method is executed only the aMostRecentToKeep most recent tombstone records for the specified Config Instance are kept and all other are deleted.- Specified by:
keepMostRecentCITombstonesin interfaceTombstoneManagerMBean- Parameters:
aConfigID- Configuration name.aMostResentToKeep- Number of most recent tombstones to keep.- Returns:
- The number of deleted tombstone records.
- Throws:
DIException- if an error occurs while deleting Tombstone records.
-
deleteTombstone
public boolean deleteTombstone(java.lang.String aGUID) throws DIExceptionDeletes the tombstone with the specified GUID.- Specified by:
deleteTombstonein interfaceTombstoneManagerMBean- Parameters:
aGUID- Tombstone GUID.- Returns:
- true only when the tombstone object with the specified GUID is found and deleted.
- Throws:
DIException- if an error occurs while deleting Tombstone record.
-
-