|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.ibm.di.api.remote.impl.TombstoneManagerImpl
public class TombstoneManagerImpl
Represents a TombstoneManager instance. Provides various methods to deal with Tombstones through remote session.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Method Summary | |
---|---|
static TombstoneManagerImpl |
createInstance(TombstoneManager aLocalTombstoneManager,
SessionImpl aSession)
Creates TombstoneManagerImpl instance. |
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 number of days. |
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. |
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 tombsones for a specified AssemblyLine. |
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. |
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.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Tombstone getTombstone(java.lang.String aGUID) throws DIException, java.rmi.RemoteException
getTombstone
in interface TombstoneManager
aGUID
- Tombstone GUID.
DIException
- if an error occurs while getting the Tombstone object.
java.rmi.RemoteException
- if a communication-related exception occurs.public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID) throws DIException, java.rmi.RemoteException
getAssemblyLineTombstones
in interface TombstoneManager
aAssemblyLineName
- The name of the AssemblyLine.aConfigID
- The name of the AssmeblyLine's configuration.
DIException
- if an error occurs while getting the Tombstone objects.
java.rmi.RemoteException
- if a communication-related exception occurs.public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aRecentNumberOfTombstones) throws DIException, java.rmi.RemoteException
getAssemblyLineTombstones
in interface TombstoneManager
aAssemblyLineName
- The name of the AssemblyLine.aConfigID
- The name of the AssmeblyLine's configuration.aRecentNumberOfTombstones
- The recent n number of tombsones to be returned.
DIException
- if an error occurs while getting the Tombstone objects.
java.rmi.RemoteException
- if a communication-related exception occurs.public Tombstone[] getAssemblyLineTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date aStartTime, java.util.Date aEndTime) throws DIException, java.rmi.RemoteException
getAssemblyLineTombstones
in interface TombstoneManager
aAssemblyLineName
- The name of the AssemblyLine.aConfigID
- The name of the AssmeblyLine's configuration.aStartTime
- peroid start time.aEndTime
- period end time.
DIException
- if an error occurs while getting the Tombstone objects for
the specified AssemblyLine.
java.rmi.RemoteException
- if a communication-related exception occurs.public Tombstone[] getConfigInstanceTombstones(java.lang.String aConfigID) throws DIException, java.rmi.RemoteException
getConfigInstanceTombstones
in interface TombstoneManager
aConfigID
- The configuration name.
DIException
- if an error occurs while getting the Tombstone objects for
the specified Config Instance.
java.rmi.RemoteException
- if a communication-related exception occurs.public Tombstone[] getConfigInstanceTombstones(java.lang.String aConfigID, java.util.Date aStartTime, java.util.Date aEndTime) throws DIException, java.rmi.RemoteException
getConfigInstanceTombstones
in interface TombstoneManager
aConfigID
- The configuration name.aStartTime
- peroid start time.aEndTime
- period end time.
DIException
- if an error occurs while getting the Tombstone objects for
the specified Config Instance.
java.rmi.RemoteException
- if a communication-related exception occurs.public Tombstone[] getTombstones(java.util.Date aStartTime, java.util.Date aEndTime) throws DIException, java.rmi.RemoteException
getTombstones
in interface TombstoneManager
aStartTime
- peroid start time.aEndTime
- period end time.
DIException
- if an error occurs while getting the Tombstone objects for
the specified interval.
java.rmi.RemoteException
- if a communication-related exception occurs.public int deleteTombstones(int aDays) throws DIException, java.rmi.RemoteException
deleteTombstones
in interface TombstoneManager
aDays
- Number of days.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int keepMostRecentTombstones(int aMostResentToKeep) throws DIException, java.rmi.RemoteException
keepMostRecentTombstones
in interface TombstoneManager
aMostResentToKeep
- number of most recent tombstones to keep.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID) throws DIException, java.rmi.RemoteException
deleteALTombstones
in interface TombstoneManager
aAssemblyLineName
- The AssemblyLine name.aConfigID
- The AssemblyLine's configuration name.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aDays) throws DIException, java.rmi.RemoteException
deleteALTombstones
in interface TombstoneManager
aAssemblyLineName
- The AssemblyLine name.aConfigID
- The AssemblyLine's configuration name.aDays
- Number of days.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date olderThan) throws DIException, java.rmi.RemoteException
deleteALTombstones
in interface TombstoneManager
aAssemblyLineName
- The AssemblyLine name.aConfigID
- The AssemblyLine's configuration name.olderThan
- Date.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int deleteALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, java.util.Date startDate, java.util.Date endDate) throws DIException, java.rmi.RemoteException
Date
range
deleteALTombstones
in interface TombstoneManager
aAssemblyLineName
- The AssemblyLine name.aConfigID
- The AssemblyLine's configuration name.startDate
- Date.endDate
- Date.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int keepMostRecentALTombstones(java.lang.String aAssemblyLineName, java.lang.String aConfigID, int aMostResentToKeep) throws DIException, java.rmi.RemoteException
keepMostRecentALTombstones
in interface TombstoneManager
aAssemblyLineName
- 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.
java.rmi.RemoteException
- if a communication-related exception occurs.public int deleteCITombstones(java.lang.String aConfigID) throws DIException, java.rmi.RemoteException
deleteCITombstones
in interface TombstoneManager
aConfigID
- Configuration name.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int deleteCITombstones(java.lang.String aConfigID, int aDays) throws DIException, java.rmi.RemoteException
deleteCITombstones
in interface TombstoneManager
aConfigID
- Configuration name.aDays
- Number of days.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public int keepMostRecentCITombstones(java.lang.String aConfigID, int aMostResentToKeep) throws DIException, java.rmi.RemoteException
keepMostRecentCITombstones
in interface TombstoneManager
aConfigID
- Configuration name.aMostResentToKeep
- Number of most recent tombstones to keep.
DIException
- if an error occurs while deleting Tombstone records.
java.rmi.RemoteException
- if a communication-related exception occurs.public boolean deleteTombstone(java.lang.String aGUID) throws DIException, java.rmi.RemoteException
deleteTombstone
in interface TombstoneManager
aGUID
- Tombstone GUID.
DIException
- if an error occurs while deleting Tombstone record.
java.rmi.RemoteException
- if a communication-related exception occurs.public static TombstoneManagerImpl createInstance(TombstoneManager aLocalTombstoneManager, SessionImpl aSession) throws DIException, java.rmi.RemoteException
aLocalTombstoneManager
- the local TombstoneManageraSession
- the session object
DIException
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |