|
||||||||||
| 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.SystemLogImpl
public class SystemLogImpl
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Method Summary | |
|---|---|
void |
cleanAllOldALLogs(Date aMinDate)
Deletes all AssemblyLines' log files older than the specified date. |
void |
cleanAllOldALLogs(int aKeepNum)
Deletes all AssemblyLines' log files except those generated on the " aKeepNum" latest runs of all AssemblyLines. |
void |
cleanAllOldEHLogs(Date aMinDate)
Deletes all EventHandlers' log files older than the specified date. |
void |
cleanAllOldEHLogs(int aKeepNum)
Deletes all EventHandlers' log files except those generated on the " aKeepNum" latest runs of all EventHandlers. |
void |
cleanAllOldLogs(Date aMinDate)
Deletes all log files older than the specified date. |
void |
cleanAllOldLogs(int aKeepNum)
Deletes all log files except those generated on the " aKeepNum"
latest runs of all components. |
Boolean |
cleanOldALLogs(String aConfigId,
String aALName,
Date aMinDate)
Deletes those log files of the specified AssemblyLine, that are older than the specified date. |
Boolean |
cleanOldALLogs(String aConfigId,
String aALName,
int aKeepNum)
Deletes all log files of the specified AssemblyLine except those generated on the " aKeepNum" latest AssemblyLine runs. |
Boolean |
cleanOldEHLogs(String aConfigId,
String aEHName,
Date aMinDate)
Deletes those log files of the specified EventHandler, that are older than the specified date. |
Boolean |
cleanOldEHLogs(String aConfigId,
String aEHName,
int aKeepNum)
Deletes all log files of the specified EventHandler except those generated on the " aKeepNum" latest EventHandler runs. |
static SystemLogImpl |
createInstance(SystemLog aLocalSystemLog,
SessionImpl aSession)
|
String |
getALLastLogFileName(String aConfigId,
String aALName)
Returns the name of the log file created on the last run of a given AssemblyLine. |
String |
getALLog(String aConfigId,
String aALName,
String aLogFileName)
Given an AssemblyLine identification, and a log file name, retrieves the log of this AssemblyLine, stored in the specified file. |
String[] |
getALLogFileNames(String aConfigId,
String aALName)
Returns the names of all available log files for a given AssemblyLine. |
String |
getALLogLastChunk(String aConfigId,
String aALName,
String aLogFileName,
int aKilobytes)
Retrieves the last chunk from a specified AssemblyLine's log file. |
String |
getEHLastLogFileName(String aConfigId,
String aEHName)
Returns the name of the log file created on the last run of a given EventHandler. |
String |
getEHLog(String aConfigId,
String aEHName,
String aLogFileName)
Given an EventHandler identification, and a log file name, retrieves the log of this EventHandler, stored in the specified file. |
String[] |
getEHLogFileNames(String aConfigId,
String aEHName)
Rreturns the names of all available log files for a given EventHandler. |
String |
getEHLogLastChunk(String aConfigId,
String aEHName,
String aLogFileName,
int aKilobytes)
Retrieves the last chunk from a specified EventHandler's log file. |
| 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 String[] getALLogFileNames(String aConfigId,
String aALName)
throws DIException,
RemoteException
SystemLog
getALLogFileNames in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine.
DIException - if an error occurs while obtaining AssemblyLine's log file names.
RemoteException - if a communication-related exception occurs.
public String getALLastLogFileName(String aConfigId,
String aALName)
throws DIException,
RemoteException
SystemLog
getALLastLogFileName in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine.
DIException - if an error occurs while obtaining the log file name.
RemoteException - if a communication-related exception occurs.
public String getALLog(String aConfigId,
String aALName,
String aLogFileName)
throws DIException,
RemoteException
SystemLog
getALLog in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine.aLogFileName - the name of the log file; no file path should be specified - just the file name.
DIException - if an error occurs while obtaining AssemblyLine's log.
RemoteException - if a communication-related exception occurs.
public String getALLogLastChunk(String aConfigId,
String aALName,
String aLogFileName,
int aKilobytes)
throws DIException,
RemoteException
SystemLog
getALLogLastChunk in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine.aLogFileName - the name of the log file; no file path should be specified - just the file name.aKilobytes - specifies in kilobytes the size of the log's last chunk that will be read.
DIException - if an error occurs while obtaining AssemblyLine's log.
RemoteException - if a communication-related exception occurs.
public String[] getEHLogFileNames(String aConfigId,
String aEHName)
throws DIException,
RemoteException
SystemLog
getEHLogFileNames in interface SystemLogaConfigId - identification of the EventHandelr's Config Instance.aEHName - the name of the EventHandler.
DIException - if an error occurs while obtaining EventHandler's log file names.
RemoteException - if a communication-related exception occurs.
public String getEHLastLogFileName(String aConfigId,
String aEHName)
throws DIException,
RemoteException
SystemLog
getEHLastLogFileName in interface SystemLogaConfigId - identification of the EventHandelr's Config Instance.aEHName - the name of the EventHandler.
DIException - if an error occurs while obtaining the log file name.
RemoteException - if a communication-related exception occurs.
public String getEHLog(String aConfigId,
String aEHName,
String aLogFileName)
throws DIException,
RemoteException
SystemLog
getEHLog in interface SystemLogaConfigId - identification of the EventHandelr's Config Instance.aEHName - the name of the EventHandler.aLogFileName - the name of the log file; no file path should be specified - just the file name.
DIException - if an error occurs while obtaining EventHandler's log.
RemoteException - if a communication-related exception occurs.
public String getEHLogLastChunk(String aConfigId,
String aEHName,
String aLogFileName,
int aKilobytes)
throws DIException,
RemoteException
SystemLog
getEHLogLastChunk in interface SystemLogaConfigId - identification of the EventHandelr's Config Instance.aEHName - the name of the EventHandler.aLogFileName - the name of the log file; no file path should be specified - just the file name.aKilobytes - specifies in kilobytes the size of the log's last chunk that will be read.
DIException - if an error occurs while obtaining EventHandler's log.
RemoteException - if a communication-related exception occurs.
public void cleanAllOldLogs(Date aMinDate)
throws DIException,
RemoteException
SystemLog
cleanAllOldLogs in interface SystemLogaMinDate - only log files that were last modified before this date will be deleted.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public void cleanAllOldLogs(int aKeepNum)
throws DIException,
RemoteException
SystemLogaKeepNum"
latest runs of all components.
cleanAllOldLogs in interface SystemLogaKeepNum - specifies the number of the latest log files that should not
be deleted; If for example, aKeepNum == 5, for each component
only the 5 latest log files will not be deleted.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public void cleanAllOldALLogs(Date aMinDate)
throws DIException,
RemoteException
SystemLog
cleanAllOldALLogs in interface SystemLogaMinDate - only log files that were last modified before this date will be deleted.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public void cleanAllOldALLogs(int aKeepNum)
throws DIException,
RemoteException
SystemLogaKeepNum" latest runs of all AssemblyLines.
cleanAllOldALLogs in interface SystemLogaKeepNum - specifies the number of the latest log files that should not
be deleted; If for example, aKeepNum == 5, for each AssemblyLine
only the 5 latest log files will not be deleted.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public void cleanAllOldEHLogs(Date aMinDate)
throws DIException,
RemoteException
SystemLog
cleanAllOldEHLogs in interface SystemLogaMinDate - only log files that were last modified before this date will be deleted.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public void cleanAllOldEHLogs(int aKeepNum)
throws DIException,
RemoteException
SystemLogaKeepNum" latest runs of all EventHandlers.
cleanAllOldEHLogs in interface SystemLogaKeepNum - specifies the number of the latest log files that should not
be deleted; If for example, aKeepNum == 5, for each EventHandler
only the 5 latest log files will not be deleted.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public Boolean cleanOldALLogs(String aConfigId,
String aALName,
Date aMinDate)
throws DIException,
RemoteException
SystemLog
cleanOldALLogs in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine whose logs will be cleaned up.aMinDate - only log files that were last modified before this date will be deleted.
Boolean that holds true if the log files
were deleted successfully; and null if there is no log folder for
the specified AssemblyLine.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public Boolean cleanOldALLogs(String aConfigId,
String aALName,
int aKeepNum)
throws DIException,
RemoteException
SystemLogaKeepNum" latest AssemblyLine runs.
cleanOldALLogs in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine whose logs will be cleaned up.aKeepNum - specifies the number of the latest log files that should not
be deleted; If for example, aKeepNum == 5 only the 5 latest
AssemblyLine's log files will not be deleted.
Boolean that holds true if the log files
were deleted successfully; and null if there is no log folder for
the specified AssemblyLine.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public Boolean cleanOldEHLogs(String aConfigId,
String aEHName,
Date aMinDate)
throws DIException,
RemoteException
SystemLog
cleanOldEHLogs in interface SystemLogaConfigId - identification of the EventHandler's Config Instance.aEHName - the name of the EventHandler whose logs will be cleaned up.aMinDate - only log files that were last modified before this date will be deleted.
Boolean that holds true if the log files
were deleted successfully; and null if there is no log folder for
the specified EventHandler.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public Boolean cleanOldEHLogs(String aConfigId,
String aEHName,
int aKeepNum)
throws DIException,
RemoteException
SystemLogaKeepNum" latest EventHandler runs.
cleanOldEHLogs in interface SystemLogaConfigId - identification of the EventHandler's Config Instance.aEHName - the name of the EventHandler whose logs will be cleaned up.aKeepNum - specifies the number of the latest log files that should not
be deleted; If for example, aKeepNum == 5 only the 5 latest
EventHandler's log files will not be deleted.
Boolean that holds true if the log files
were deleted successfully; and null if there is no log folder for
the specified EventHandler.
DIException - if an error occurs while deleting log files.
RemoteException - if a communication-related exception occurs.
public static SystemLogImpl createInstance(SystemLog aLocalSystemLog,
SessionImpl aSession)
throws DIException,
RemoteException
DIException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||