SSF.OS.BGP4.Comm
Class StartStopMessage

java.lang.Object
  |
  +--SSF.OS.ProtocolMessage
        |
        +--SSF.OS.BGP4.Comm.Message
              |
              +--SSF.OS.BGP4.Comm.StartStopMessage
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class StartStopMessage
extends Message

Message from the system or a system operator to either initiate or discontinue a BGP connection with a particular (potential) neighbor/peer.

See Also:
Serialized Form

Field Summary
 java.lang.String nh
          The NHI prefix of the neighbor/peer whose connection to whom this message applies.
 int ss_type
          Whether this is a start or stop message.
 
Fields inherited from class SSF.OS.BGP4.Comm.Message
KEEPALIVE, NOTICEUPDATE, NOTIFICATION, OCTETS_IN_HEADER, OPEN, RUN, STARTSTOP, TIMEOUT, TRANSPORT, typ, typeNames, UPDATE, version
 
Constructor Summary
StartStopMessage()
          Empty constructor.
StartStopMessage(int typ, java.lang.String nhipre)
          Initialize the message.
 
Method Summary
 void readExternal(java.io.ObjectInput in)
          Reads the contents of this object from a serialization stream.
 void writeExternal(java.io.ObjectOutput out)
          Writes the contents of this object to a serialization stream.
 
Methods inherited from class SSF.OS.BGP4.Comm.Message
body_bytecount, bytecount, header_bytecount, toString, type2str, version
 
Methods inherited from class SSF.OS.ProtocolMessage
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, payload, previous, size, tobytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ss_type

public int ss_type
Whether this is a start or stop message. (All possible message types and their values are listed in class BGPSession).


nh

public java.lang.String nh
The NHI prefix of the neighbor/peer whose connection to whom this message applies.

Constructor Detail

StartStopMessage

public StartStopMessage()
Empty constructor. Used to deserialize this object.


StartStopMessage

public StartStopMessage(int typ,
                        java.lang.String nhipre)
Initialize the message.

Parameters:
typ - The type of the message (start or stop).
nhipre - The NHI prefix of the neighbor/peer whose connection this message applies to.
Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Writes the contents of this object to a serialization stream.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class Message
Throws:
java.io.IOException - if there's an error writing the data

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Reads the contents of this object from a serialization stream.

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class Message
Throws:
java.io.IOException - if there's an error reading in the data
java.lang.ClassNotFoundException - if a class name is unrecognized