org.jdiameter.client.impl.controller
Class RealmTableImpl
java.lang.Object
org.jdiameter.client.impl.controller.RealmTableImpl
- All Implemented Interfaces:
- RealmTable, Wrapper, IRealmTable
public class RealmTableImpl
- extends java.lang.Object
- implements IRealmTable
- Author:
- Alexandre Mendonca , Bartosz Baranowski
|
Method Summary |
void |
addLocalApplicationId(ApplicationId appId)
|
void |
addLocalRealm(java.lang.String localRealm,
java.lang.String fqdn)
|
protected void |
addRealm(Realm realm)
|
Realm |
addRealm(java.lang.String realmName,
ApplicationId applicationId,
LocalAction action,
IAgentConfiguration agentConf,
boolean dynamic,
long expirationTime,
java.lang.String[] hosts)
Method which accepts IAgentConfiguration to avoid decode, encode, decode sequences |
Realm |
addRealm(java.lang.String realmName,
ApplicationId applicationId,
LocalAction action,
java.lang.String agentConfiguration,
boolean dynamic,
long expirationTime,
java.lang.String[] hosts)
|
Realm |
getRealm(java.lang.String realmName,
ApplicationId applicationId)
|
java.lang.String |
getRealmForPeer(java.lang.String fqdn)
|
java.util.Collection<Realm> |
getRealms()
|
java.util.Collection<Realm> |
getRealms(java.lang.String realmName)
|
protected org.jdiameter.client.impl.controller.RealmTableImpl.RealmSet |
getRealmSet(java.lang.String pKey,
boolean create)
|
Statistic |
getStatistic(java.lang.String realmName)
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
|
Realm |
matchRealm(IAnswer message,
java.lang.String destRealm)
|
protected Realm |
matchRealm(IMessage message,
java.lang.String realm)
|
Realm |
matchRealm(IRequest request)
|
boolean |
realmExists(java.lang.String realmName)
|
void |
removeLocalApplicationId(ApplicationId appId)
|
java.util.Collection<Realm> |
removeRealm(java.lang.String realmName)
|
Realm |
removeRealmApplicationId(java.lang.String realmName,
ApplicationId appId)
|
|
unwrap(java.lang.Class<T> iface)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
realmNameToRealmSet
protected java.util.Map<java.lang.String,org.jdiameter.client.impl.controller.RealmTableImpl.RealmSet> realmNameToRealmSet
allRealmsSet
protected java.util.List<java.lang.String> allRealmsSet
localRealmName
protected java.lang.String localRealmName
localHost
protected java.lang.String localHost
assembler
protected IAssembler assembler
RealmTableImpl
public RealmTableImpl(IContainer con)
realmExists
public boolean realmExists(java.lang.String realmName)
- Specified by:
realmExists in interface RealmTable
addRealm
public Realm addRealm(java.lang.String realmName,
ApplicationId applicationId,
LocalAction action,
java.lang.String agentConfiguration,
boolean dynamic,
long expirationTime,
java.lang.String[] hosts)
throws InternalException
- Specified by:
addRealm in interface RealmTable
- Throws:
InternalException
addRealm
public Realm addRealm(java.lang.String realmName,
ApplicationId applicationId,
LocalAction action,
IAgentConfiguration agentConf,
boolean dynamic,
long expirationTime,
java.lang.String[] hosts)
throws InternalException
- Description copied from interface:
IRealmTable
- Method which accepts IAgentConfiguration to avoid decode, encode, decode sequences
- Specified by:
addRealm in interface IRealmTable
- Returns:
-
- Throws:
InternalException
getRealm
public Realm getRealm(java.lang.String realmName,
ApplicationId applicationId)
- Specified by:
getRealm in interface IRealmTable
removeRealmApplicationId
public Realm removeRealmApplicationId(java.lang.String realmName,
ApplicationId appId)
- Specified by:
removeRealmApplicationId in interface IRealmTable
removeRealm
public java.util.Collection<Realm> removeRealm(java.lang.String realmName)
- Specified by:
removeRealm in interface IRealmTable
getRealms
public java.util.Collection<Realm> getRealms(java.lang.String realmName)
- Specified by:
getRealms in interface IRealmTable
getRealms
public java.util.Collection<Realm> getRealms()
- Specified by:
getRealms in interface IRealmTable
matchRealm
public Realm matchRealm(IRequest request)
- Specified by:
matchRealm in interface IRealmTable
matchRealm
public Realm matchRealm(IAnswer message,
java.lang.String destRealm)
- Specified by:
matchRealm in interface IRealmTable
getRealmForPeer
public java.lang.String getRealmForPeer(java.lang.String fqdn)
- Specified by:
getRealmForPeer in interface IRealmTable
addLocalApplicationId
public void addLocalApplicationId(ApplicationId appId)
- Specified by:
addLocalApplicationId in interface IRealmTable
- Parameters:
appId -
removeLocalApplicationId
public void removeLocalApplicationId(ApplicationId appId)
- Specified by:
removeLocalApplicationId in interface IRealmTable
- Parameters:
appId -
addLocalRealm
public void addLocalRealm(java.lang.String localRealm,
java.lang.String fqdn)
- Specified by:
addLocalRealm in interface IRealmTable
- Parameters:
localRealm - fqdn -
matchRealm
protected Realm matchRealm(IMessage message,
java.lang.String realm)
addRealm
protected void addRealm(Realm realm)
throws InternalException
- Throws:
InternalException
getRealmSet
protected org.jdiameter.client.impl.controller.RealmTableImpl.RealmSet getRealmSet(java.lang.String pKey,
boolean create)
getStatistic
public Statistic getStatistic(java.lang.String realmName)
- Specified by:
getStatistic in interface RealmTable
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
throws InternalException
- Specified by:
isWrapperFor in interface Wrapper
- Throws:
InternalException
unwrap
public <T> T unwrap(java.lang.Class<T> iface)
throws InternalException
- Specified by:
unwrap in interface Wrapper
- Throws:
InternalException
Copyright © 2014. All Rights Reserved.