* @see org.apache.jcs.auxiliary.AuxiliaryCacheFactory#createCache(org.apache.jcs.auxiliary.AuxiliaryCacheAttributes,
* org.apache.jcs.engine.behavior.ICompositeCacheManager)
*/
public AuxiliaryCache createCache( AuxiliaryCacheAttributes iaca, ICompositeCacheManager cacheMgr )
{
ITCPLateralCacheAttributes lac = (ITCPLateralCacheAttributes) iaca;
ArrayList noWaits = new ArrayList();
// pars up the tcp servers and set the tcpServer value and
// get the manager and then get the cache
// no servers are required.
if ( lac.getTcpServers() != null )
{
StringTokenizer it = new StringTokenizer( lac.getTcpServers(), "," );
if ( log.isDebugEnabled() )
{
log.debug( "Configured for [" + it.countTokens() + "] servers." );
}
while ( it.hasMoreElements() )
{
String server = (String) it.nextElement();
if ( log.isDebugEnabled() )
{
log.debug( "tcp server = " + server );
}
ITCPLateralCacheAttributes lacC = (ITCPLateralCacheAttributes) lac.copy();
lacC.setTcpServer( server );
LateralTCPCacheManager lcm = LateralTCPCacheManager.getInstance( lacC, cacheMgr );
ICache ic = lcm.getCache( lacC.getCacheName() );
if ( ic != null )
{
noWaits.add( ic );
}
else