org.activeio
Class ChannelFactory

java.lang.Object
  extended byorg.activeio.ChannelFactory
All Implemented Interfaces:
AsyncChannelFactory, SyncChannelFactory

public class ChannelFactory
extends Object
implements SyncChannelFactory, AsyncChannelFactory

A ChannelFactoryuses the requested URI's scheme to determine the actual org.activeio.SynchChannelFactoryor AsyncChannelFactoryimplementation to use to create it's Channels and ChannelServers. Each URI scheme that ChannelFactoryobject handles will have a properties file located at: "META-INF/org.activeio.ChannelFactory/{scheme}".


Field Summary
static Executor DEFAULT_EXECUTOR
           
 
Constructor Summary
ChannelFactory()
           
 
Method Summary
 AsyncChannelServer bindAsyncChannel(URI location)
          Binds a server at the URI location.
 SyncChannelServer bindSyncChannel(URI location)
          Binds a server at the URI location.
 AsyncChannel openAsyncChannel(URI location)
          Opens a connection to server.
 SyncChannel openSyncChannel(URI location)
          Opens a connection to server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EXECUTOR

public static final Executor DEFAULT_EXECUTOR
Constructor Detail

ChannelFactory

public ChannelFactory()
Method Detail

openSyncChannel

public SyncChannel openSyncChannel(URI location)
                            throws IOException
Description copied from interface: SyncChannelFactory
Opens a connection to server.

Specified by:
openSyncChannel in interface SyncChannelFactory
Parameters:
location -
Returns:
Throws:
IOException

bindSyncChannel

public SyncChannelServer bindSyncChannel(URI location)
                                  throws IOException
Description copied from interface: SyncChannelFactory
Binds a server at the URI location.

Specified by:
bindSyncChannel in interface SyncChannelFactory
Parameters:
location -
Returns:
Throws:
IOException

openAsyncChannel

public AsyncChannel openAsyncChannel(URI location)
                              throws IOException
Description copied from interface: AsyncChannelFactory
Opens a connection to server.

Specified by:
openAsyncChannel in interface AsyncChannelFactory
Parameters:
location -
Returns:
Throws:
IOException

bindAsyncChannel

public AsyncChannelServer bindAsyncChannel(URI location)
                                    throws IOException
Description copied from interface: AsyncChannelFactory
Binds a server at the URI location.

Specified by:
bindAsyncChannel in interface AsyncChannelFactory
Parameters:
location -
Returns:
Throws:
IOException


Copyright © -2007 The ActiveIO Project. All Rights Reserved.