org.jdiameter.server.impl
Class OverloadManagerImpl
java.lang.Object
org.jdiameter.server.impl.OverloadManagerImpl
- All Implemented Interfaces:
- OverloadManager, IOverloadManager
public class OverloadManagerImpl
- extends java.lang.Object
- implements IOverloadManager
- Author:
- erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski
|
Method Summary |
void |
addOverloadListener(OverloadListener overloadListener,
double lowThreshold,
double highThreshold,
int qIndex)
|
void |
changeNotification(int index,
URI uri,
double value)
Notification about overload |
boolean |
isParenAppOverload(ApplicationId appId)
Return true if application has overload |
boolean |
isParenAppOverload(ApplicationId appId,
int type)
eturn true if application has overload by predefined type |
void |
parentAppOverloadCeased(ApplicationId applicationId,
int type)
|
void |
parentAppOverloadDetected(ApplicationId applicationId,
int type,
double value)
|
void |
removeOverloadListener(OverloadListener overloadListener,
int qIndex)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverloadManagerImpl
public OverloadManagerImpl(Configuration config)
parentAppOverloadDetected
public void parentAppOverloadDetected(ApplicationId applicationId,
int type,
double value)
- Specified by:
parentAppOverloadDetected in interface OverloadManager
parentAppOverloadCeased
public void parentAppOverloadCeased(ApplicationId applicationId,
int type)
- Specified by:
parentAppOverloadCeased in interface OverloadManager
isParenAppOverload
public boolean isParenAppOverload(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(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 idtype - type of overload (CPU, Memory... )
- Returns:
- true if application has overload
addOverloadListener
public void addOverloadListener(OverloadListener overloadListener,
double lowThreshold,
double highThreshold,
int qIndex)
- Specified by:
addOverloadListener in interface OverloadManager
removeOverloadListener
public void removeOverloadListener(OverloadListener overloadListener,
int qIndex)
- Specified by:
removeOverloadListener in interface OverloadManager
changeNotification
public void changeNotification(int index,
URI uri,
double value)
- Description copied from interface:
IOverloadManager
- Notification about overload
- Specified by:
changeNotification in interface IOverloadManager
- Parameters:
index - overload entry indexuri - peer urivalue - overload value
Copyright © 2014. All Rights Reserved.