org.jdiameter.api
Interface OverloadManager


public interface OverloadManager

This interface allows to control the stack at overload moment

Version:
1.5.1 Final
Author:
erick.svenson@yahoo.com

Method Summary
 void addOverloadListener(OverloadListener listener, double lowThreshold, double highThreshold, int qIndex)
          Append overload listener
 void parentAppOverloadCeased(ApplicationId id, int type)
          Notifies stack that parent application has overload cased
 void parentAppOverloadDetected(ApplicationId id, int type, double value)
          Notify stack that parent application has overload
 void removeOverloadListener(OverloadListener listener, int qIndex)
          Remove overload listener
 

Method Detail

parentAppOverloadDetected

void parentAppOverloadDetected(ApplicationId id,
                               int type,
                               double value)
Notify stack that parent application has overload

Parameters:
id - Overloaded application id (null for stack owner)
type - type of overload (CPU, Memory..)
value - value of overload

parentAppOverloadCeased

void parentAppOverloadCeased(ApplicationId id,
                             int type)
Notifies stack that parent application has overload cased

Parameters:
id - Overloaded application id (null for stack owner)
type - type of overload (CPU, Memory..)

addOverloadListener

void addOverloadListener(OverloadListener listener,
                         double lowThreshold,
                         double highThreshold,
                         int qIndex)
Append overload listener

Parameters:
listener - overload listener instance
lowThreshold - low value of overload threshold (for example 0.8 - 1.0 is overload Range)
highThreshold - high value of overload threshold (for example 0.8 - 1.0 is overload Range)
qIndex - overload element index

removeOverloadListener

void removeOverloadListener(OverloadListener listener,
                            int qIndex)
Remove overload listener

Parameters:
listener - overload listener instance
qIndex - overload element index


Copyright © 2013. All Rights Reserved.