p2ps.pipe
Class PipeConnectedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byp2ps.pipe.PipeConnectedEvent
All Implemented Interfaces:
java.io.Serializable

public class PipeConnectedEvent
extends java.util.EventObject

The event that is generated when a outpipe is successfully connected. Note that a pipe connection might have multiple failures before it succeeds.

Version:
$Revision: 295 $
Author:
Ian Wang
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PipeConnectedEvent(java.lang.Object source, OutputPipe pipe, PipeAdvertisement pipead)
          Constructs a successful pipe connection event
 
Method Summary
 OutputPipe getOutputPipe()
           
 PipeAdvertisement getPipeAdvertisement()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PipeConnectedEvent

public PipeConnectedEvent(java.lang.Object source,
                          OutputPipe pipe,
                          PipeAdvertisement pipead)
Constructs a successful pipe connection event

Method Detail

getOutputPipe

public OutputPipe getOutputPipe()
Returns:
the successfully connected output pipe

getPipeAdvertisement

public PipeAdvertisement getPipeAdvertisement()
Returns:
the advertisement the output pipe was connected using