|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.api.local.impl.SystemLogImpl
public class SystemLogImpl
This class implements various methods for getting system log information.
| Constructor Summary | |
|---|---|
SystemLogImpl(SessionImpl aSession)
|
|
| Method Summary | |
|---|---|
java.lang.String |
cleanALLogs(java.lang.String aConfigId,
java.lang.String aALName,
java.lang.String[] logsToBeDeleted)
Deletes all the logs which are specified in " logsToBeDeleted" array. |
void |
cleanAllOldALLogs(java.util.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 |
cleanAllOldLogs(java.util.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. |
java.lang.Boolean |
cleanOldALLogs(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date aMinDate)
Deletes those log files of the specified AssemblyLine, that are older than the specified date. |
java.lang.Boolean |
cleanOldALLogs(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date aMinDate,
java.util.Date aMaxDate)
Deletes those log files of the specified AssemblyLine, that are older than the specified date. |
java.lang.Boolean |
cleanOldALLogs(java.lang.String aConfigId,
java.lang.String aALName,
int aKeepNum)
Deletes all log files of the specified AssemblyLine except those generated on the " aKeepNum" latest AssemblyLine runs. |
java.lang.String |
getALLastLogFileName(java.lang.String aConfigId,
java.lang.String aALName)
Returns the name of the log file created on the last run of a given AssemblyLine. |
java.lang.String |
getALLog(java.lang.String aConfigId,
java.lang.String aALName,
java.lang.String aLogFileName)
Given an AssemblyLine identification, and a log file name, retrieves the log of this AssemblyLine, stored in the specified file. |
java.lang.String[] |
getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName)
Returns the names of all available log files for a given AssemblyLine. |
java.lang.String[] |
getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date dDate)
Returns the names of all available log files for a given AssemblyLine. |
java.lang.String[] |
getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date startDate,
java.util.Date endDate)
Returns the names of all available log files for a given AssemblyLine. |
java.lang.String[] |
getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName,
int iNumber)
Returns the names of all available log files for a given AssemblyLine. |
java.lang.String |
getALLogLastChunk(java.lang.String aConfigId,
java.lang.String aALName,
java.lang.String aLogFileName,
int aKilobytes)
Retrieves the last chunk from a specified AssemblyLine's log file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemLogImpl(SessionImpl aSession)
aSession - | Method Detail |
|---|
public java.lang.String[] getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName)
throws DIException
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.
public java.lang.String[] getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName,
int iNumber)
throws DIException
getALLogFileNames in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine.iNumber - the number of the logs
DIException - if an error occurs while obtaining AssemblyLine's log file
names.
public java.lang.String[] getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date dDate)
throws DIException
getALLogFileNames in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine.dDate - the date of the logs
DIException - if an error occurs while obtaining AssemblyLine's log file
names.
public java.lang.String[] getALLogFileNames(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date startDate,
java.util.Date endDate)
throws DIException
getALLogFileNames in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine.startDate - the start date of the logsendDate - the end date of the logs
DIException - if an error occurs while obtaining AssemblyLine's log file
names.
public java.lang.String getALLastLogFileName(java.lang.String aConfigId,
java.lang.String aALName)
throws DIException
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.
public java.lang.String getALLog(java.lang.String aConfigId,
java.lang.String aALName,
java.lang.String aLogFileName)
throws DIException
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.
public java.lang.String getALLogLastChunk(java.lang.String aConfigId,
java.lang.String aALName,
java.lang.String aLogFileName,
int aKilobytes)
throws DIException
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.
public void cleanAllOldLogs(java.util.Date aMinDate)
throws DIException
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.
public void cleanAllOldLogs(int aKeepNum)
throws DIException
aKeepNum" 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.
public void cleanAllOldALLogs(java.util.Date aMinDate)
throws DIException
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.
public void cleanAllOldALLogs(int aKeepNum)
throws DIException
aKeepNum" 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.
public java.lang.Boolean cleanOldALLogs(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date aMinDate)
throws DIException
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.
public java.lang.Boolean cleanOldALLogs(java.lang.String aConfigId,
java.lang.String aALName,
java.util.Date aMinDate,
java.util.Date aMaxDate)
throws DIException
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 after this date will be
deleted.aMaxDate - 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.
public java.lang.Boolean cleanOldALLogs(java.lang.String aConfigId,
java.lang.String aALName,
int aKeepNum)
throws DIException
aKeepNum" 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.
public java.lang.String cleanALLogs(java.lang.String aConfigId,
java.lang.String aALName,
java.lang.String[] logsToBeDeleted)
throws DIException
logsToBeDeleted" array.
cleanALLogs in interface SystemLogaConfigId - identification of the AssemblyLine's Config Instance.aALName - the name of the AssemblyLine whose logs will be cleaned up.logsToBeDeleted - name of the log files which are to be deleted.
String that holds null if the log
files are deleted successfully; else comma separated names of the
log files which are not deleted.
DIException - if an error occurs while deleting log files.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||