Skip navigation links

Oracle Communications Service Broker Policy and Charging MBean Java API Reference
6.0

E26225-01


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


public interface DegradedModeMBean

Degraded mode mbean - gives access to statistics and replay control.

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

Method Summary
 boolean checkIfSystemInDegradedMode()
          Is system in degraded mode.
 void deleteCdrByStatus(String status)
          Delete CDRs from the CDR store based on the status.
 void dumpCdrByStatusToFile(String status, String fileName, boolean append)
          Dump the CDRs with the given status in the store to file.
 void dumpCdrByStatusToStdout(String status)
          Dump the 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.
 Long getDegradedModeEntryTimeForUser(String userId)
          Return the time since the user has pending CDRs.
 int getPendingCdrCountForUser(String userId)
          Return the number of CDRs in the CDR store which are in PN status for the given user.
 boolean isUserInDegradedMode(String userId)
          Is user in degraded mode.
 void markSystemStatusAsDegraded(boolean shouldDegrade)
          This operation will take the system in to degraded mode or out of degraded made.
 void startManualReplay()
          Triggers a manual replay of CDRs.

 

Method Detail

markSystemStatusAsDegraded

void markSystemStatusAsDegraded(boolean shouldDegrade)
This operation will take the system in to degraded mode or out of degraded made. Throws a runtime exception if the configuration is set to dm-manual-control=false (dm-manual-control=false means, the system state is controlled by the agent which monitors the charging system)
Parameters:
shouldDegrade - if true, take the system to degraded mode. If false, take the system out of degraded mode

startManualReplay

void startManualReplay()
Triggers a manual replay of CDRs. 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 valid values for status are PN, RS, RF
Parameters:
status - A valid status value
Returns:
count of pending CDRs

getPendingCdrCountForUser

int getPendingCdrCountForUser(String userId)
Return the number of CDRs in the CDR store which are in PN status for the given user.
Parameters:
userId - user id
Returns:
coung of pending CDRs for the user.

dumpCdrByStatusToStdout

void dumpCdrByStatusToStdout(String status)
Dump the 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 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 CDRs from the CDR store based on the status.
Parameters:
status - CDR status

checkIfSystemInDegradedMode

boolean checkIfSystemInDegradedMode()
Is system in degraded mode.
Returns:
true or false

isUserInDegradedMode

boolean isUserInDegradedMode(String userId)
Is user in degraded mode. The result of this depends on the system state, is-replay-inorder and is there pending CDRs for this user If the system is in degraded mode, this return true. If the system is in online mode, if in-order-replay is disabled, this return false If the system is in online mode, if in-order-replay is enabled, and, if there are peding CDRs for this user this return true
Parameters:
userId - user id
Returns:
true or false

getDegradedModeEntryTimeForUser

Long getDegradedModeEntryTimeForUser(String userId)
Return the time since the user has pending CDRs.
Parameters:
userId - user id
Returns:
time in msecs

Skip navigation links

Oracle Communications Service Broker Policy and Charging MBean Java API Reference
6.0

E26225-01


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