Skip navigation links

Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee
6.1

E38079-01


oracle.axia.apps.common.statistic.management
Class AbstractCPSAuditLogMBean

java.lang.Object
  extended by oracle.axia.apps.common.statistic.management.AbstractCPSAuditLogMBean


public abstract class AbstractCPSAuditLogMBean
extends Object

AbstractCPSAuditLogMBean, should be extend by concrete application MBean. Used to create CPS audit log file.

Author:
Copyright (c) 2009 by Oracle corp. All Rights Reserved.

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

AbstractCPSAuditLogMBean

public AbstractCPSAuditLogMBean()
AbstractCPSAuditLogMBean .

Method Detail

generateLog

public final 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. Creation message is returned.
Parameters:
fileName - file name.
groupName - group name.
startDate - start date,format is 'yyyy-MM-dd'.
endDate - end date, format is 'yyyy-MM-dd'.
Returns:
creation message.

isDateFormatNnn

protected final boolean isDateFormatNnn(String dateStr)
Use regex to check format, only number and - is allowed.
Parameters:
dateStr - to check.
Returns:
true, if dateStr is number-number-number.

isEmpty

protected final boolean isEmpty(String param)
check if param is null or is empty .
Parameters:
param - a string input
Returns:
true if param is null or empty.

createLogFile

protected final 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.
Parameters:
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.
Returns:
creation message.

caculateChecksum

protected final String caculateChecksum(String content)
                                 throws NoSuchAlgorithmException
caculate checksum of given content str whith MD5 mtd.
Parameters:
content - to create checksum.
Returns:
checksum result string.
Throws:
NoSuchAlgorithmException - exception during creation

generateFile

protected final File generateFile(String fileName)
generate a file with given name.
Parameters:
fileName - file name.
Returns:
file.

Skip navigation links

Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee
6.1

E38079-01


Copyright © 2013, Oracle and/or its affiliates. All rights reserved.