org.jdiameter.server.impl
Class RouterImpl

java.lang.Object
  extended by org.jdiameter.client.impl.router.RouterImpl
      extended by org.jdiameter.server.impl.RouterImpl
All Implemented Interfaces:
IRouter

public class RouterImpl
extends RouterImpl
implements IRouter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdiameter.client.impl.router.RouterImpl
RouterImpl.AnswerEntry, RouterImpl.RedirectEntry
 
Field Summary
protected  INetwork net
           
 
Fields inherited from class org.jdiameter.client.impl.router.RouterImpl
ALL_APPLICATION, ALL_HOST, ALL_REALM, ALL_SESSION, ALL_USER, DONT_CACHE, logger, metaData, REALM_AND_APPLICATION, REDIRECT_TABLE_SIZE, redirectEntryHandler, redirectScheduler, redirectTable, redirectTask, REQUEST_TABLE_CLEAR_SIZE, REQUEST_TABLE_SIZE, requestEntryTable, requestLock, requestSortedEntryTable
 
Constructor Summary
RouterImpl(org.jdiameter.api.Configuration config, org.jdiameter.api.MetaData metaData)
           
 
Method Summary
 org.jdiameter.api.Realm addRealm(java.lang.String name, org.jdiameter.api.ApplicationId applicationId, org.jdiameter.api.LocalAction localAction, boolean dynamic, long expirationTime, java.lang.String... peers)
           
protected  boolean checkRealm(java.lang.String name)
           
protected  IPeer getPeerPredProcessing(IMessage message, java.lang.String destRealm, java.lang.String destHost)
           
protected  java.lang.String[] getRealmPeers(java.lang.String key)
           
 java.util.Set<org.jdiameter.api.Realm> getRealms()
           
protected  java.util.Set<java.lang.String> getRealmsName()
           
protected  void init()
           
protected  void loadConfiguration(org.jdiameter.api.Configuration config)
           
 org.jdiameter.api.Realm remRealm(java.lang.String name)
           
 void setNetWork(INetwork network)
           
 
Methods inherited from class org.jdiameter.client.impl.router.RouterImpl
destroy, getPeer, getRealmForPeer, getRequestRouteInfo, redirectProcessing, registerRequestRouteInfo, selectPeer, start, stop, updateRedirectInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jdiameter.client.api.router.IRouter
destroy, getPeer, getRealmForPeer, getRequestRouteInfo, registerRequestRouteInfo, start, stop, updateRedirectInformation
 

Field Detail

net

protected INetwork net
Constructor Detail

RouterImpl

public RouterImpl(org.jdiameter.api.Configuration config,
                  org.jdiameter.api.MetaData metaData)
Method Detail

init

protected void init()
Overrides:
init in class RouterImpl

loadConfiguration

protected void loadConfiguration(org.jdiameter.api.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 org.jdiameter.api.Realm addRealm(java.lang.String name,
                                        org.jdiameter.api.ApplicationId applicationId,
                                        org.jdiameter.api.LocalAction localAction,
                                        boolean dynamic,
                                        long expirationTime,
                                        java.lang.String... peers)

remRealm

public org.jdiameter.api.Realm remRealm(java.lang.String name)

getRealms

public java.util.Set<org.jdiameter.api.Realm> getRealms()

setNetWork

public void setNetWork(INetwork network)

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 © 2008. All Rights Reserved.