Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
org.ros.internal.node.topic.SubscriberHandshakeHandler< T > Class Reference
Inheritance diagram for org.ros.internal.node.topic.SubscriberHandshakeHandler< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

String getName ()
 SubscriberHandshakeHandler (ConnectionHeader outgoingConnectionHeader, final IncomingMessageQueue< T > incomingMessageQueue, ExecutorService executorService)

Protected Member Functions

void onFailure (String errorMessage, ChannelHandlerContext ctx, MessageEvent e)
void onSuccess (ConnectionHeader incomingConnectionHeader, ChannelHandlerContext ctx, MessageEvent e)

Private Attributes

final IncomingMessageQueue< T > incomingMessageQueue

Static Private Attributes

static final Log log = LogFactory.getLog(SubscriberHandshakeHandler.class)

Detailed Description

Performs a handshake with the connected Publisher and connects the Publisher to the IncomingMessageQueue on success.

Author:
damonkohler@google.com (Damon Kohler)
Parameters:
<T>the Subscriber may only subscribe to messages of this type

Definition at line 43 of file SubscriberHandshakeHandler.java.


Constructor & Destructor Documentation

org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.SubscriberHandshakeHandler ( ConnectionHeader  outgoingConnectionHeader,
final IncomingMessageQueue< T >  incomingMessageQueue,
ExecutorService  executorService 
) [inline]

Definition at line 49 of file SubscriberHandshakeHandler.java.


Member Function Documentation

String org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.getName ( ) [inline]
Returns:
the name of this ChannelHandler

Implements org.ros.internal.transport.tcp.NamedChannelHandler.

Definition at line 75 of file SubscriberHandshakeHandler.java.

void org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.onFailure ( String  errorMessage,
ChannelHandlerContext  ctx,
MessageEvent  e 
) [inline, protected, virtual]
void org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.onSuccess ( ConnectionHeader  incommingConnectionHeader,
ChannelHandlerContext  ctx,
MessageEvent  e 
) [inline, protected, virtual]

Called when the ClientHandshake succeeds and will block the network thread until it returns.

This must block in order to allow changes to the pipeline to be made before further messages arrive.

Parameters:
incommingConnectionHeader
ctx
e

Implements org.ros.internal.transport.BaseClientHandshakeHandler.

Definition at line 56 of file SubscriberHandshakeHandler.java.


Member Data Documentation

final IncomingMessageQueue<T> org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.incomingMessageQueue [private]

Definition at line 47 of file SubscriberHandshakeHandler.java.

final Log org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.log = LogFactory.getLog(SubscriberHandshakeHandler.class) [static, private]

Definition at line 45 of file SubscriberHandshakeHandler.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51