|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.api.local.impl.TombstoneManagerImpl
public class TombstoneManagerImpl
Represents a TombstoneManager instance. Provides various methods to deal with Tombstones.
| Constructor Summary | |
|---|---|
TombstoneManagerImpl(SessionImpl aSession)
|
|
| Method Summary | |
|---|---|
int |
deleteALTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID)
Deletes all tombstones for specified AssemblyLine. |
int |
deleteALTombstones(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. |
int |
deleteALTombstones(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 specified Date range. |
int |
deleteALTombstones(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. |
int |
deleteCITombstones(java.lang.String aConfigID)
Deletes all tombstones for specified Config Instance. |
int |
deleteCITombstones(java.lang.String aConfigID,
int aDays)
Deletes all tombstones for the specified Config Instance that are older than the specified number of days. |
boolean |
deleteTombstone(java.lang.String aGUID)
Deletes the tombstone with the specified GUID. |
int |
deleteTombstones(int aDays)
Deletes all tombstones that are older than the specified number of days. |
java.util.List<java.lang.String> |
getAssemblyLineNames(java.lang.String configInstanceId)
Obtains a list of AssemblyLine Names of the AssemblyLines for which a tombstone has been created. |
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,
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[] |
getAssemblyLineTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID,
int aRecentNumberOfTombstones)
Returns the recent n number of tombstones for a specified AssemblyLine. |
java.util.List<java.lang.String> |
getConfigInstanceIDs()
Obtains a list of IDs of configInstances for which a tombstone has been created. |
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. |
Tombstone |
getTombstone(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. |
boolean |
hasTombstones(java.lang.String configInstanceId)
Checks whether there are tombstone records for a configInstance with the specified ID. |
boolean |
hasTombstones(java.lang.String configInstanceId,
java.lang.String alName)
Checks whether there are tombstone records for an AssemblyLine with the specified name. |
int |
keepMostRecentALTombstones(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. |
int |
keepMostRecentCITombstones(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. |
int |
keepMostRecentTombstones(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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TombstoneManagerImpl(SessionImpl aSession)
aSession - | Method Detail |
|---|
public Tombstone getTombstone(java.lang.String aGUID)
throws DIException
getTombstone in interface TombstoneManageraGUID - Tombstone GUID.
DIException - if an error occurs while getting the Tombstone object.
public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID)
throws DIException
getAssemblyLineTombstones in interface TombstoneManageraAssemblyLineName - The name of the AssemblyLine.aConfigID - The name of the AssmeblyLine's configuration.
DIException - if an error occurs while getting the Tombstone objects.
public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID,
int aRecentNumberOfTombstones)
throws DIException
getAssemblyLineTombstones in interface TombstoneManageraAssemblyLineName - The name of the AssemblyLine.aConfigID - The name of the AssmeblyLine's configuration.aRecentNumberOfTombstones - The recent n number of tombstones to be returned.
DIException
public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID,
java.util.Date aStartTime,
java.util.Date aEndTime)
throws DIException
getAssemblyLineTombstones in interface TombstoneManageraAssemblyLineName - The name of the AssemblyLine.aConfigID - The name of the AssmeblyLine's configuration.aStartTime - period start time.aEndTime - period end time.
DIException - if an error occurs while getting the Tombstone objects for
the specified AssemblyLine.
public Tombstone[] getConfigInstanceTombstones(java.lang.String aConfigID)
throws DIException
getConfigInstanceTombstones in interface TombstoneManageraConfigID - The configuration name.
DIException - if an error occurs while getting the Tombstone objects for
the specified Config Instance.
public Tombstone[] getConfigInstanceTombstones(java.lang.String aConfigID,
java.util.Date aStartTime,
java.util.Date aEndTime)
throws DIException
getConfigInstanceTombstones in interface TombstoneManageraConfigID - The configuration name.aStartTime - period start time.aEndTime - period end time.
DIException - if an error occurs while getting the Tombstone objects for
the specified Config Instance.
public Tombstone[] getTombstones(java.util.Date aStartTime,
java.util.Date aEndTime)
throws DIException
getTombstones in interface TombstoneManageraStartTime - period start time.aEndTime - period end time.
DIException - if an error occurs while getting the Tombstone objects for
the specified interval.
public int deleteTombstones(int aDays)
throws DIException
deleteTombstones in interface TombstoneManageraDays - Number of days.
DIException - if an error occurs while deleting Tombstone records.
public int keepMostRecentTombstones(int aMostResentToKeep)
throws DIException
keepMostRecentTombstones in interface TombstoneManageraMostResentToKeep - number of most recent tombstones to keep.
DIException - if an error occurs while deleting Tombstone records.
public int deleteALTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID)
throws DIException
deleteALTombstones in interface TombstoneManageraAssemblyLineName - The AssemblyLine name.aConfigID - The AssemblyLine's configuration name.
DIException - if an error occurs while deleting Tombstone records.
public int deleteALTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID,
int aDays)
throws DIException
deleteALTombstones in interface TombstoneManageraAssemblyLineName - The AssemblyLine name.aConfigID - The AssemblyLine's configuration name.aDays - Number of days.
DIException - if an error occurs while deleting Tombstone records.
public int deleteALTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID,
java.util.Date olderThan)
throws DIException
deleteALTombstones in interface TombstoneManageraAssemblyLineName - The AssemblyLine name.aConfigID - The AssemblyLine's configuration name.olderThan - Date.
DIException - if an error occurs while deleting Tombstone records.
public int deleteALTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID,
java.util.Date startDate,
java.util.Date endDate)
throws DIException
Date range.
deleteALTombstones in interface TombstoneManageraAssemblyLineName - The AssemblyLine name.aConfigID - The AssemblyLine's configuration name.startDate - Date.endDate - Date.
DIException - if an error occurs while deleting Tombstone records.
public int keepMostRecentALTombstones(java.lang.String aAssemblyLineName,
java.lang.String aConfigID,
int aMostResentToKeep)
throws DIException
keepMostRecentALTombstones in interface TombstoneManageraAssemblyLineName - The AssemblyLine name.aConfigID - The AssemblyLine's configuration name.aMostResentToKeep - Number of most recent tombstones to keep.
DIException - if an error occurs while deleting Tombstone records.
public int deleteCITombstones(java.lang.String aConfigID)
throws DIException
deleteCITombstones in interface TombstoneManageraConfigID - Configuration name.
DIException - if an error occurs while deleting Tombstone records.
public int deleteCITombstones(java.lang.String aConfigID,
int aDays)
throws DIException
deleteCITombstones in interface TombstoneManageraConfigID - Configuration name.aDays - Number of days.
DIException - if an error occurs while deleting Tombstone records.
public int keepMostRecentCITombstones(java.lang.String aConfigID,
int aMostResentToKeep)
throws DIException
keepMostRecentCITombstones in interface TombstoneManageraConfigID - Configuration name.aMostResentToKeep - Number of most recent tombstones to keep.
DIException - if an error occurs while deleting Tombstone records.
public boolean deleteTombstone(java.lang.String aGUID)
throws DIException
deleteTombstone in interface TombstoneManageraGUID - Tombstone GUID.
DIException - if an error occurs while deleting Tombstone record.
public java.util.List<java.lang.String> getConfigInstanceIDs()
throws DIException
TombstoneManager
getConfigInstanceIDs in interface TombstoneManagerDIException - if error occurs while obtaining the Config IDs
public java.util.List<java.lang.String> getAssemblyLineNames(java.lang.String configInstanceId)
throws DIException
TombstoneManager
getAssemblyLineNames in interface TombstoneManagerDIException - if error occurs while obtaining the AL names
public boolean hasTombstones(java.lang.String configInstanceId)
throws DIException
TombstoneManager
hasTombstones in interface TombstoneManagerDIException - if error occurs while obtaining the Config IDs
public boolean hasTombstones(java.lang.String configInstanceId,
java.lang.String alName)
throws DIException
TombstoneManager
hasTombstones in interface TombstoneManagerDIException - if error occurs while obtaining the Config IDs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||