org.jdiameter.server.impl
Class RouterImpl
java.lang.Object
org.jdiameter.client.impl.router.RouterImpl
org.jdiameter.server.impl.RouterImpl
- All Implemented Interfaces:
- IRouter
public class RouterImpl
- extends RouterImpl
- implements IRouter
| Fields inherited from class org.jdiameter.client.impl.router.RouterImpl |
ALL_APPLICATION, ALL_HOST, ALL_REALM, ALL_SESSION, ALL_USER, concurrentFactory, DONT_CACHE, isStopped, metaData, REALM_AND_APPLICATION, REDIRECT_TABLE_SIZE, redirectEntryHandler, redirectScheduler, redirectTable, redirectTask, REQUEST_TABLE_CLEAR_SIZE, REQUEST_TABLE_SIZE, requestEntryTable, requestLock, requestSortedEntryTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
net
protected INetwork net
RouterImpl
public RouterImpl(IConcurrentFactory concurrentFactory,
Configuration config,
MetaData metaData)
init
protected void init()
- Overrides:
init in class RouterImpl
loadConfiguration
protected void loadConfiguration(Configuration config)
- Overrides:
loadConfiguration in class RouterImpl
getPeerPredProcessing
protected IPeer getPeerPredProcessing(IMessage message,
java.lang.String destRealm,
java.lang.String destHost)
- Overrides:
getPeerPredProcessing in class RouterImpl
addRealm
public Realm addRealm(java.lang.String name,
ApplicationId applicationId,
LocalAction localAction,
boolean dynamic,
long expirationTime,
java.lang.String... peers)
- Description copied from interface:
IRouter
- Add real to realm table
- Parameters:
name - name of realmapplicationId - applicationId of realmlocalAction - local action of realmdynamic - on/off dynamicexpirationTime - experation time of recordpeers - array of host names
- Returns:
- Realm instance
remRealm
public Realm remRealm(java.lang.String name)
- Description copied from interface:
IRouter
- Remove realm
- Parameters:
name - name of realm
- Returns:
- removed realm
getRealms
public java.util.Set<Realm> getRealms()
- Description copied from interface:
IRouter
- Return set of realms
- Returns:
setNetWork
public void setNetWork(INetwork network)
- Description copied from interface:
IRouter
- Set network instance
- Parameters:
network - network instance
checkRealm
protected boolean checkRealm(java.lang.String name)
- Overrides:
checkRealm in class RouterImpl
getRealmsName
protected java.util.Set<java.lang.String> getRealmsName()
- Overrides:
getRealmsName in class RouterImpl
getRealmPeers
protected java.lang.String[] getRealmPeers(java.lang.String key)
- Overrides:
getRealmPeers in class RouterImpl
Copyright © 2010. All Rights Reserved.