org.apache.jcs.auxiliary.lateral.javagroups.utils
Class JGSocketOpener

java.lang.Object
  extended byorg.apache.jcs.auxiliary.lateral.javagroups.utils.JGSocketOpener
All Implemented Interfaces:
java.lang.Runnable

public class JGSocketOpener
extends java.lang.Object
implements java.lang.Runnable

Socket openere that will timeout on the initial connect rather than block forever.

Version:
$Id: JGSocketOpener.java,v 1.7 2005/06/04 02:01:55 asmuts Exp $

Constructor Summary
JGSocketOpener(ILateralCacheAttributes lca, java.lang.String groupName)
          Constructor for the SocketOpener object
 
Method Summary
 org.jgroups.Channel getSocket()
          Gets the socket attribute of the SocketOpener object.
static org.jgroups.Channel openSocket(ILateralCacheAttributes lca, int timeOut, java.lang.String groupName)
          Constructor for the SocketOpener object.
 void run()
          Main processing method for the SocketOpener object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGSocketOpener

public JGSocketOpener(ILateralCacheAttributes lca,
                      java.lang.String groupName)
Constructor for the SocketOpener object

Method Detail

openSocket

public static org.jgroups.Channel openSocket(ILateralCacheAttributes lca,
                                             int timeOut,
                                             java.lang.String groupName)
Constructor for the SocketOpener object.


run

public void run()
Main processing method for the SocketOpener object.

Specified by:
run in interface java.lang.Runnable

getSocket

public org.jgroups.Channel getSocket()
Gets the socket attribute of the SocketOpener object.



Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.