org.jdiameter.client.impl
Class MetaDataImpl

java.lang.Object
  extended by org.jdiameter.client.impl.MetaDataImpl
All Implemented Interfaces:
MetaData, Wrapper, IMetaData
Direct Known Subclasses:
MetaDataImpl

public class MetaDataImpl
extends java.lang.Object
implements IMetaData

Use stack extension point

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

Nested Class Summary
protected  class MetaDataImpl.ClientLocalPeer
           
 
Field Summary
protected  java.util.Set<ApplicationId> appIds
           
protected  java.util.List<java.lang.management.MemoryPoolMXBean> beans
           
protected  IPeer peer
           
protected  ISessionDatasource sessionDataSource
           
protected  IContainer stack
           
protected  long state
           
 
Constructor Summary
MetaDataImpl(IContainer s)
           
MetaDataImpl(IContainer s, IStatisticManager statisticFactory)
           
 
Method Summary
 Configuration getConfiguration()
           
 long getLocalHostStateId()
          Return host state value
 Peer getLocalPeer()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 StackType getStackType()
           
 boolean isWrapperFor(java.lang.Class<?> aClass)
           
protected  IPeer newLocalPeer(IStatisticManager statisticFactory)
           
<T> T
unwrap(java.lang.Class<T> aClass)
           
 void updateLocalHostStateId()
          Set new value of host state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beans

protected java.util.List<java.lang.management.MemoryPoolMXBean> beans

stack

protected IContainer stack

state

protected long state

peer

protected IPeer peer

appIds

protected java.util.Set<ApplicationId> appIds

sessionDataSource

protected final ISessionDatasource sessionDataSource
Constructor Detail

MetaDataImpl

public MetaDataImpl(IContainer s)

MetaDataImpl

public MetaDataImpl(IContainer s,
                    IStatisticManager statisticFactory)
Method Detail

newLocalPeer

protected IPeer newLocalPeer(IStatisticManager statisticFactory)

getLocalPeer

public Peer getLocalPeer()
Specified by:
getLocalPeer in interface MetaData

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface MetaData

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface MetaData

getStackType

public StackType getStackType()
Specified by:
getStackType in interface MetaData

getConfiguration

public Configuration getConfiguration()
Specified by:
getConfiguration in interface MetaData

updateLocalHostStateId

public void updateLocalHostStateId()
Description copied from interface: IMetaData
Set new value of host state

Specified by:
updateLocalHostStateId in interface IMetaData

getLocalHostStateId

public long getLocalHostStateId()
Description copied from interface: IMetaData
Return host state value

Specified by:
getLocalHostStateId in interface IMetaData
Returns:
host state value

isWrapperFor

public boolean isWrapperFor(java.lang.Class<?> aClass)
                     throws InternalException
Specified by:
isWrapperFor in interface Wrapper
Throws:
InternalException

unwrap

public <T> T unwrap(java.lang.Class<T> aClass)
         throws InternalException
Specified by:
unwrap in interface Wrapper
Throws:
InternalException


Copyright © 2014. All Rights Reserved.