Skip navigation links

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

E38079-01


oracle.ocsb.app.rcc.service.dmode.mbean
Interface BaseCdrMBean

All Known Subinterfaces:
DegradedModeMBean, OffloadedModeMBean

public interface BaseCdrMBean

Gives access to statistics and replay control of CDRs.

Author:
Copyright (c) 2010 by Oracle Corp. All Rights Reserved.

Method Summary
 long computeCdrReplayRatePerSecond()
          Calculate the CDR replay rate per second.
 void deleteCdrByStatus(String status)
          Delete degraded CDRs from the CDR store based on the status.
 void dumpCdrByStatusToFile(String status, String fileName, boolean append)
          Dump the degraded CDRs with the given status in the store to file.
 void dumpCdrByStatusToStdout(String status)
          Dump the degraded CDRs with the given status in the store to stdout.
 int getCdrCountByStatus(String status)
          Return the number of CDRs in the CDR store which are in the specified status.
 void incrementAddedCdrCount()
          Increment the count of cdrs which were added to the store, since the server start.
 void incrementReplayedCdrCount()
          Increment the count of cdrs which were replayed, since the server start.
 void resetAddedCdrCount()
          Reset the added cdr count to zero.
 void resetReplayedCdrCount()
          Reset the replayed cdr count to zero.
 long showAddedCdrCount()
          getter for added cdr count.
 long showReplayedCdrCount()
          Getter for replayed cdr count.
 void startManualReplay()
          Triggers a manual replay of CDRs.
 void stopManualReplay()
          Stop replay of CDRs.

 

Method Detail

startManualReplay

void startManualReplay()
Triggers a manual replay of CDRs. If the replay is already in progress, this operation is a no-op If the configuration is set to automatic control of replay, this operation throws a DegradedModeRuntimeException

stopManualReplay

void stopManualReplay()
Stop replay of CDRs. If the replay is not in-progress, this operation is a no-op. If the configuration is set to automatic control of replay, this operation throws a DegradedModeRuntimeException

getCdrCountByStatus

int getCdrCountByStatus(String status)
Return the number of CDRs in the CDR store which are in the specified status. The max value of the result is limited by the max-result-size configuration. The valid values for status are PN, IP, RS, RF
Parameters:
status - A valid status value
Returns:
count of pending CDRs

dumpCdrByStatusToStdout

void dumpCdrByStatusToStdout(String status)
Dump the degraded CDRs with the given status in the store to stdout. This is for debug purpose.
Parameters:
status - cdr status

dumpCdrByStatusToFile

void dumpCdrByStatusToFile(String status,
                           String fileName,
                           boolean append)
                           throws IOException
Dump the degraded CDRs with the given status in the store to file.
Parameters:
status - cdr status
fileName - file name in the file system - relative path or complete path
append - should append if the file already exists
Throws:
IOException - e

deleteCdrByStatus

void deleteCdrByStatus(String status)
Delete degraded CDRs from the CDR store based on the status.
Parameters:
status - CDR status

incrementAddedCdrCount

void incrementAddedCdrCount()
Increment the count of cdrs which were added to the store, since the server start.

incrementReplayedCdrCount

void incrementReplayedCdrCount()
Increment the count of cdrs which were replayed, since the server start.

resetAddedCdrCount

void resetAddedCdrCount()
Reset the added cdr count to zero.

resetReplayedCdrCount

void resetReplayedCdrCount()
Reset the replayed cdr count to zero.

computeCdrReplayRatePerSecond

long computeCdrReplayRatePerSecond()
Calculate the CDR replay rate per second. The thread will wait for 10 seconds to get the count of replayed CDRs after 10 seconds and returns the average replay rate in that 10 seconds.
Returns:
replay rate

showAddedCdrCount

long showAddedCdrCount()
getter for added cdr count.
Returns:
added cdr count

showReplayedCdrCount

long showReplayedCdrCount()
Getter for replayed cdr count.
Returns:
replayed cdr count

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.