ArrayList noWaits = new ArrayList();
if ( lac.getTransmissionType() == lac.UDP )
{
LateralCacheManager lcm = LateralCacheManager.getInstance( lac );
ICache ic = lcm.getCache( lac.getCacheName() );
if ( ic != null )
{
noWaits.add( ic );
}
} else
if ( lac.getTransmissionType() == lac.JAVAGROUPS )
{
LateralCacheManager lcm = LateralCacheManager.getInstance( lac );
ICache ic = lcm.getCache( lac.getCacheName() );
if ( ic != null )
{
noWaits.add( ic );
}
}
else
if ( lac.getTransmissionType() == lac.TCP )
{
//pars up the tcp servers and set the tcpServer value and
// get the manager and then get the cache
//Iterator it = lac.tcpServers.iterator();
//while( it.hasNext() ) {
StringTokenizer it = new StringTokenizer( lac.tcpServers, "," );
while ( it.hasMoreElements() )
{
//String server = (String)it.next();
String server = ( String ) it.nextElement();
//p( "tcp server = " + server );
lac.setTcpServer( server );
LateralCacheManager lcm = LateralCacheManager.getInstance( lac );
ICache ic = lcm.getCache( lac.getCacheName() );
if ( ic != null )
{
noWaits.add( ic );
}
else
{
//p( "noWait is null" );
}
}
}
else
if ( lac.getTransmissionType() == lac.XMLRPC )
{
//pars up the tcp servers and set the tcpServer value and
// get the manager and then get the cache
//Iterator it = lac.tcpServers.iterator();
//while( it.hasNext() ) {
StringTokenizer it = new StringTokenizer( lac.getHttpServers(), "," );
while ( it.hasMoreElements() )
{
//String server = (String)it.next();
String server = ( String ) it.nextElement();
//p( "tcp server = " + server );
lac.setHttpServer( server );
LateralCacheManager lcm = LateralCacheManager.getInstance( lac );
ICache ic = lcm.getCache( lac.getCacheName() );
if ( ic != null )
{
noWaits.add( ic );
}
else
{
log.warn( "noWait is null" );
}
}
}
else
if ( lac.getTransmissionType() == lac.HTTP )
{
StringTokenizer it = new StringTokenizer( lac.getHttpServers(), "," );
while ( it.hasMoreElements() )
{
String server = ( String ) it.nextElement();
lac.setHttpServer( server );
LateralCacheManager lcm = LateralCacheManager.getInstance( lac );
ICache ic = lcm.getCache( lac.getCacheName() );
if ( ic != null )
{
noWaits.add( ic );
}
}