org.jdiameter.common.impl.controller
Class AbstractPeer

java.lang.Object
  extended by org.jdiameter.common.impl.controller.AbstractPeer
All Implemented Interfaces:
java.lang.Comparable<Peer>
Direct Known Subclasses:
MetaDataImpl.ClientLocalPeer, PeerImpl

public class AbstractPeer
extends java.lang.Object
implements java.lang.Comparable<Peer>

Author:
Alexandre Mendonca , Bartosz Baranowski

Field Summary
static int INT_COMMON_APP_ID
           
protected  java.util.List<IStatisticRecord> perSecondRecords
           
protected  IStatistic statistic
           
protected  IStatisticManager statisticFactory
           
protected static UIDGenerator uid
           
protected  URI uri
           
 
Constructor Summary
AbstractPeer(URI uri, IStatisticManager statisticFactory)
           
 
Method Summary
 int compareTo(Peer o)
           
protected  void createPeerStatistics()
           
protected  void disconnect(int disconnectCause)
           
protected  void removePeerStatistics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT_COMMON_APP_ID

public static final int INT_COMMON_APP_ID
See Also:
Constant Field Values

uid

protected static UIDGenerator uid

statistic

protected IStatistic statistic

perSecondRecords

protected java.util.List<IStatisticRecord> perSecondRecords

uri

protected URI uri

statisticFactory

protected IStatisticManager statisticFactory
Constructor Detail

AbstractPeer

public AbstractPeer(URI uri,
                    IStatisticManager statisticFactory)
Method Detail

createPeerStatistics

protected void createPeerStatistics()

removePeerStatistics

protected void removePeerStatistics()

compareTo

public int compareTo(Peer o)
Specified by:
compareTo in interface java.lang.Comparable<Peer>

disconnect

protected void disconnect(int disconnectCause)
                   throws InternalException,
                          IllegalDiameterStateException
Throws:
IllegalDiameterStateException
InternalException


Copyright © 2014. All Rights Reserved.