au.com.terabit.jproactor
Class OpConnect

java.lang.Object
  extended by au.com.terabit.jproactor.IOOperation
      extended by au.com.terabit.jproactor.OpConnect

public class OpConnect
extends IOOperation

The connect operation implementation.

Version:
$Revision$ $Date$
Author:
Yevgeny Libman

Field Summary
protected  java.net.SocketAddress m_remoteAddr
           
 
Fields inherited from class au.com.terabit.jproactor.IOOperation
m_asynchChannel, m_errorCause
 
Method Summary
protected  boolean execute()
           
 boolean isConnected()
          Tells whether connect operation on the channel has successfully completed or not.
 void onComplete()
          Dispatch completed IO operation.
 
Methods inherited from class au.com.terabit.jproactor.IOOperation
getChannel, getError, getState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_remoteAddr

protected java.net.SocketAddress m_remoteAddr
Method Detail

execute

protected boolean execute()
Specified by:
execute in class IOOperation

onComplete

public void onComplete()
Description copied from class: IOOperation
Dispatch completed IO operation.

Usually results of completed IO operation are passed up to the protocol m_asynchChannel.


isConnected

public boolean isConnected()
Tells whether connect operation on the channel has successfully completed or not.

Returns:
true if associated asynchronous chanel is connected, false otherwise