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 DegradedModeMBean

All Superinterfaces:
BaseCdrMBean

public interface DegradedModeMBean
extends BaseCdrMBean

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.
 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.

 

Methods inherited from interface oracle.ocsb.app.rcc.service.dmode.mbean.BaseCdrMBean
computeCdrReplayRatePerSecond, deleteCdrByStatus, dumpCdrByStatusToFile, dumpCdrByStatusToStdout, getCdrCountByStatus, incrementAddedCdrCount, incrementReplayedCdrCount, resetAddedCdrCount, resetReplayedCdrCount, showAddedCdrCount, showReplayedCdrCount, startManualReplay, stopManualReplay

 

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

getPendingCdrCountForUser

int getPendingCdrCountForUser(String userId)
Return the number of CDRs in the CDR store which are in PN status for the given user. The max value of the result is limited by the max-result-size configuration.
Parameters:
userId - user id
Returns:
coung of pending CDRs for the user.

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 Configuration and Runtime MBean Java API Referencee
6.1

E38079-01


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