de.bsvrz.kex.tls.osi2osi3.osi2.api
Class AbstractDataLinkLayer.Link

java.lang.Object
  extended by de.bsvrz.kex.tls.osi2osi3.osi2.api.AbstractDataLinkLayer.Link
All Implemented Interfaces:
DataLinkLayer.Link
Direct Known Subclasses:
Client.Link, Primary.Link, Server.Link, Wiretapper.Link
Enclosing class:
AbstractDataLinkLayer

public abstract static class AbstractDataLinkLayer.Link
extends Object
implements DataLinkLayer.Link


Field Summary
protected  Object _linkLock
           
protected  LinkState _linkState
           
protected  int _remoteAddress
           
 
Constructor Summary
AbstractDataLinkLayer.Link(int remoteAddress)
           
 
Method Summary
 int getRemoteAddress()
          Bestimmt die OSI2-Adresse bzw.
 LinkState getState()
          Bestimmt den aktuellen Verbindungszustand der Verbindung.
protected  void notifyEvent(DataLinkLayerEvent.Type type, Object data)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.bsvrz.kex.tls.osi2osi3.osi2.api.DataLinkLayer.Link
abort, connect, getDataLinkLayer, getProperty, send, setProperties, shutdown
 

Field Detail

_remoteAddress

protected final int _remoteAddress

_linkLock

protected final Object _linkLock

_linkState

protected LinkState _linkState
Constructor Detail

AbstractDataLinkLayer.Link

public AbstractDataLinkLayer.Link(int remoteAddress)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getRemoteAddress

public int getRemoteAddress()
Description copied from interface: DataLinkLayer.Link
Bestimmt die OSI2-Adresse bzw. Portnummer des Kommunikationspartners dieser Verbindung.

Specified by:
getRemoteAddress in interface DataLinkLayer.Link
Returns:
OSI2-Adresse bzw. Portnummer des Kommunikationspartners.

getState

public LinkState getState()
Description copied from interface: DataLinkLayer.Link
Bestimmt den aktuellen Verbindungszustand der Verbindung.

Specified by:
getState in interface DataLinkLayer.Link
Returns:
Verbindungszustand der Verbindung.

notifyEvent

protected final void notifyEvent(DataLinkLayerEvent.Type type,
                                 Object data)