|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.api.jmx.mbeans.BaseAdmin
com.ibm.di.api.jmx.mbeans.SystemLog
public class SystemLog
| Field Summary | |
|---|---|
static String |
MBEAN_ID
|
static String |
MBEAN_TYPE
|
| Constructor Summary | |
|---|---|
SystemLog(SystemLog aSystemLog)
|
|
| Method Summary | |
|---|---|
void |
cleanAllOldALLogs(Date aMinDate)
Deletes all AssemblyLines' log files older than the specified date. |
void |
cleanAllOldALLogs(Integer 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(Integer 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(Integer 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,
Integer 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,
Integer aKeepNum)
Deletes all log files of the specified EventHandler except those generated on the " aKeepNum" latest EventHandler runs. |
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,
Integer 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,
Integer aKilobytes)
Retrieves the last chunk from a specified EventHandler's log file. |
String |
getId()
Reads attribute "Id". |
String |
getType()
Reads attribute "Type". |
| Methods inherited from class com.ibm.di.api.jmx.mbeans.BaseAdmin |
|---|
getCurrentUserId, getKeyPropertyList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MBEAN_TYPE
public static final String MBEAN_ID
| Constructor Detail |
|---|
public SystemLog(SystemLog aSystemLog)
| Method Detail |
|---|
public String getType()
BaseMBean
getType() and getId() 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".
getType in interface BaseMBeanpublic String getId()
BaseMBean
getType() and getId() 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 in interface BaseMBean
public String[] getALLogFileNames(String aConfigId,
String aALName)
throws DIException
SystemLogMBean
getALLogFileNames in interface SystemLogMBeanaConfigId - 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 String getALLastLogFileName(String aConfigId,
String aALName)
throws DIException
SystemLogMBean
getALLastLogFileName in interface SystemLogMBeanaConfigId - 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 String getALLog(String aConfigId,
String aALName,
String aLogFileName)
throws DIException
SystemLogMBean
getALLog in interface SystemLogMBeanaConfigId - 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 String getALLogLastChunk(String aConfigId,
String aALName,
String aLogFileName,
Integer aKilobytes)
throws DIException
SystemLogMBean
getALLogLastChunk in interface SystemLogMBeanaConfigId - 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 String[] getEHLogFileNames(String aConfigId,
String aEHName)
throws DIException
SystemLogMBean
getEHLogFileNames in interface SystemLogMBeanaConfigId - 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.
public String getEHLastLogFileName(String aConfigId,
String aEHName)
throws DIException
SystemLogMBean
getEHLastLogFileName in interface SystemLogMBeanaConfigId - identification of the EventHandelr's Config Instance.aEHName - the name of the EventHandler.
DIException - if an error occurs while obtaining the log file name.
public String getEHLog(String aConfigId,
String aEHName,
String aLogFileName)
throws DIException
SystemLogMBean
getEHLog in interface SystemLogMBeanaConfigId - 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.
public String getEHLogLastChunk(String aConfigId,
String aEHName,
String aLogFileName,
Integer aKilobytes)
throws DIException
SystemLogMBean
getEHLogLastChunk in interface SystemLogMBeanaConfigId - 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.
public void cleanAllOldLogs(Date aMinDate)
throws DIException
SystemLogMBean
cleanAllOldLogs in interface SystemLogMBeanaMinDate - 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(Integer aKeepNum)
throws DIException
SystemLogMBeanaKeepNum"
latest runs of all components.
cleanAllOldLogs in interface SystemLogMBeanaKeepNum - 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(Date aMinDate)
throws DIException
SystemLogMBean
cleanAllOldALLogs in interface SystemLogMBeanaMinDate - 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(Integer aKeepNum)
throws DIException
SystemLogMBeanaKeepNum" latest runs of all AssemblyLines.
cleanAllOldALLogs in interface SystemLogMBeanaKeepNum - 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 void cleanAllOldEHLogs(Date aMinDate)
throws DIException
SystemLogMBean
cleanAllOldEHLogs in interface SystemLogMBeanaMinDate - only log files that were last modified before this date will be deleted.
DIException - if an error occurs while deleting log files.
public void cleanAllOldEHLogs(Integer aKeepNum)
throws DIException
SystemLogMBeanaKeepNum" latest runs of all EventHandlers.
cleanAllOldEHLogs in interface SystemLogMBeanaKeepNum - 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.
public Boolean cleanOldALLogs(String aConfigId,
String aALName,
Date aMinDate)
throws DIException
SystemLogMBean
cleanOldALLogs in interface SystemLogMBeanaConfigId - 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 Boolean cleanOldALLogs(String aConfigId,
String aALName,
Integer aKeepNum)
throws DIException
SystemLogMBeanaKeepNum" latest AssemblyLine runs.
cleanOldALLogs in interface SystemLogMBeanaConfigId - 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 Boolean cleanOldEHLogs(String aConfigId,
String aEHName,
Date aMinDate)
throws DIException
SystemLogMBean
cleanOldEHLogs in interface SystemLogMBeanaConfigId - 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.
public Boolean cleanOldEHLogs(String aConfigId,
String aEHName,
Integer aKeepNum)
throws DIException
SystemLogMBeanaKeepNum" latest EventHandler runs.
cleanOldEHLogs in interface SystemLogMBeanaConfigId - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||