org.jdiameter.server.impl
Class OverloadManagerImpl

java.lang.Object
  extended by org.jdiameter.server.impl.OverloadManagerImpl
All Implemented Interfaces:
org.jdiameter.api.OverloadManager, IOverloadManager

public class OverloadManagerImpl
extends java.lang.Object
implements IOverloadManager


Nested Class Summary
static class OverloadManagerImpl.AppOverloadInfo
           
static class OverloadManagerImpl.AppOverloadInfoEntry
           
static class OverloadManagerImpl.OverloadInfo
           
 
Constructor Summary
OverloadManagerImpl(org.jdiameter.api.Configuration config)
           
 
Method Summary
 void addOverloadListener(org.jdiameter.api.OverloadListener overloadListener, double lowThreshold, double highThreshold, int qIndex)
           
 void changeNotification(int index, org.jdiameter.api.URI uri, double value)
          Notification about overload
 boolean isParenAppOverload(org.jdiameter.api.ApplicationId appId)
          Return true if application has overload
 boolean isParenAppOverload(org.jdiameter.api.ApplicationId appId, int type)
          eturn true if application has overload by predefined type
 void parentAppOverloadCeased(org.jdiameter.api.ApplicationId applicationId, int type)
           
 void parentAppOverloadDetected(org.jdiameter.api.ApplicationId applicationId, int type, double value)
           
 void removeOverloadListener(org.jdiameter.api.OverloadListener overloadListener, int qIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverloadManagerImpl

public OverloadManagerImpl(org.jdiameter.api.Configuration config)
Method Detail

parentAppOverloadDetected

public void parentAppOverloadDetected(org.jdiameter.api.ApplicationId applicationId,
                                      int type,
                                      double value)
Specified by:
parentAppOverloadDetected in interface org.jdiameter.api.OverloadManager

parentAppOverloadCeased

public void parentAppOverloadCeased(org.jdiameter.api.ApplicationId applicationId,
                                    int type)
Specified by:
parentAppOverloadCeased in interface org.jdiameter.api.OverloadManager

isParenAppOverload

public boolean isParenAppOverload(org.jdiameter.api.ApplicationId appId)
Description copied from interface: IOverloadManager
Return true if application has overload

Specified by:
isParenAppOverload in interface IOverloadManager
Parameters:
appId - application id
Returns:
true if application has overload

isParenAppOverload

public boolean isParenAppOverload(org.jdiameter.api.ApplicationId appId,
                                  int type)
Description copied from interface: IOverloadManager
eturn true if application has overload by predefined type

Specified by:
isParenAppOverload in interface IOverloadManager
Parameters:
appId - application id
type - type of overload (CPU, Memory... )
Returns:
true if application has overload

addOverloadListener

public void addOverloadListener(org.jdiameter.api.OverloadListener overloadListener,
                                double lowThreshold,
                                double highThreshold,
                                int qIndex)
Specified by:
addOverloadListener in interface org.jdiameter.api.OverloadManager

removeOverloadListener

public void removeOverloadListener(org.jdiameter.api.OverloadListener overloadListener,
                                   int qIndex)
Specified by:
removeOverloadListener in interface org.jdiameter.api.OverloadManager

changeNotification

public void changeNotification(int index,
                               org.jdiameter.api.URI uri,
                               double value)
Description copied from interface: IOverloadManager
Notification about overload

Specified by:
changeNotification in interface IOverloadManager
Parameters:
index - overload entry index
uri - peer uri
value - overload value


Copyright © 2008. All Rights Reserved.