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, 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
 
Constructor Summary
RouterImpl(IConcurrentFactory concurrentFactory, Configuration config, MetaData metaData)
           
 
Method Summary
 Realm addRealm(java.lang.String name, ApplicationId applicationId, LocalAction localAction, boolean dynamic, long expirationTime, java.lang.String... peers)
          Add real to realm table
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<Realm> getRealms()
          Return set of realms
protected  java.util.Set<java.lang.String> getRealmsName()
           
protected  void init()
           
protected  void loadConfiguration(Configuration config)
           
 Realm remRealm(java.lang.String name)
          Remove realm
 void setNetWork(INetwork network)
          Set network instance
 
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(IConcurrentFactory concurrentFactory,
                  Configuration config,
                  MetaData metaData)
Method Detail

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 realm
applicationId - applicationId of realm
localAction - local action of realm
dynamic - on/off dynamic
expirationTime - experation time of record
peers - 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.