|
Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee 6.1 E38079-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.axia.apps.common.statistic.management.AbstractCPSAuditLogMBean
public abstract class AbstractCPSAuditLogMBean
AbstractCPSAuditLogMBean, should be extend by concrete application MBean. Used to create CPS audit log file.
Constructor Summary | |
---|---|
AbstractCPSAuditLogMBean() AbstractCPSAuditLogMBean . |
Method Summary | |
---|---|
protected String |
caculateChecksum(String content) caculate checksum of given content str whith MD5 mtd. |
protected String |
createLogFile(String fileName, String groupName, String startDate, String endDate, List<oracle.axia.apps.common.statistic.store.CPSLogEntry> entries) generate log file in xml format, write it to local file system. |
protected File |
generateFile(String fileName) generate a file with given name. |
String |
generateLog(String fileName, String groupName, String startDate, String endDate) Generate CPS log of given params, create log file in xml format, write it to local file system. |
protected boolean |
isDateFormatNnn(String dateStr) Use regex to check format, only number and - is allowed. |
protected boolean |
isEmpty(String param) check if param is null or is empty . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCPSAuditLogMBean()
Method Detail |
---|
public final String generateLog(String fileName, String groupName, String startDate, String endDate)
fileName
- file name.groupName
- group name.startDate
- start date,format is 'yyyy-MM-dd'.endDate
- end date, format is 'yyyy-MM-dd'.protected final boolean isDateFormatNnn(String dateStr)
dateStr
- to check.protected final boolean isEmpty(String param)
param
- a string inputprotected final String createLogFile(String fileName, String groupName, String startDate, String endDate, List<oracle.axia.apps.common.statistic.store.CPSLogEntry> entries)
fileName
- file name.groupName
- group name.startDate
- start date,format is 'yyyy-MM-dd'.endDate
- end date, format is 'yyyy-MM-dd'.entries
- list of CPSLogEntry.protected final String caculateChecksum(String content) throws NoSuchAlgorithmException
content
- to create checksum.NoSuchAlgorithmException
- exception during creationprotected final File generateFile(String fileName)
fileName
- file name.
|
Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee 6.1 E38079-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |