org.jdiameter.api
Interface RealmTable

All Superinterfaces:
Wrapper

public interface RealmTable
extends Wrapper

This interface introduces a capability to work with a network. You can get instance of this interface over stack instance: if (stack.isWrapperFor(RealmTable.class)) { RealmTable realmTabke = stack.unwrap(RealmTable.class); ..... }

Author:
erick.svenson@yahoo.com, Bartosz Baranowski , Alexandre Mendonca

Method Summary
 Realm addRealm(java.lang.String realmName, ApplicationId applicationId, LocalAction action, java.lang.String agentConfiguration, boolean dynamic, long expirationTime, java.lang.String[] hosts)
          Add new realm to realm table
 Statistic getStatistic(java.lang.String realmName)
          Return different network statistics
 boolean realmExists(java.lang.String realmName)
          Checks if there is such realm entry.
 
Methods inherited from interface org.jdiameter.api.Wrapper
isWrapperFor, unwrap
 

Method Detail

getStatistic

Statistic getStatistic(java.lang.String realmName)
Return different network statistics

Parameters:
realmName - realmName
Returns:
network statistics

addRealm

Realm addRealm(java.lang.String realmName,
               ApplicationId applicationId,
               LocalAction action,
               java.lang.String agentConfiguration,
               boolean dynamic,
               long expirationTime,
               java.lang.String[] hosts)
               throws InternalException
Add new realm to realm table

Parameters:
realmName - name of realm
applicationId - application id of realm
action - action of realm
agentConfiguration - resource for configuration of action dependent agent, may be null.
dynamic - commCode of realm
expirationTime - expiration time of realm
extraConf - - additional configuration which may be used by implementation
Returns:
instance of created realm
Throws:
InternalException - - when realm definition under pKey and sKey exist

realmExists

boolean realmExists(java.lang.String realmName)
Checks if there is such realm entry.

Parameters:
realmName -
Returns:


Copyright © 2013. All Rights Reserved.