org.jacorb.notification

Class AbstractChannelFactory

public abstract class AbstractChannelFactory extends Object implements ManageableServant, Disposable

Version: $Id: AbstractChannelFactory.java,v 1.22 2006/06/22 09:51:04 alphonse.bendt Exp $

Author: Alphonse Bendt

Field Summary
protected Configurationconfig_
protected MutablePicoContainercontainer_
protected Loggerlogger_
protected ObjectthisRef_
Constructor Summary
protected AbstractChannelFactory(MutablePicoContainer container, ORB orb)
Method Summary
Objectactivate()
protected voidaddToChannels(int id, AbstractEventChannel channel)
protected voidchannelCreated(AbstractEventChannel channel)
protected abstract Objectcreate_abstract_channel(Property[] admin, Property[] qos, IntHolder id)
protected AbstractEventChannelcreate_channel_servant(IntHolder id, Property[] qosProps, Property[] adminProps)
voiddeactivate()
voiddestroy()
voiddispose()
protected int[]getAllChannels()
protected IteratorgetChannelIterator()
protected ConfigurationgetConfiguration()
StringgetCorbaLoc()
StringgetIOR()
protected StringgetLocalAddress()
protected intgetLocalPort()
protected abstract StringgetObjectName()
protected ORBgetORB()
protected abstract ServantgetServant()
protected abstract StringgetShortcut()
protected AbstractEventChannelget_event_channel_servant(int id)
protected MutablePicoContainernewContainerForChannel()
protected abstract AbstractEventChannelnewEventChannel()
static AbstractChannelFactorynewFactory(ORB optionalORB, MutablePicoContainer optionalContainer, Properties props)
static AbstractChannelFactorynewFactory(Properties props)
voidregisterName(Properties props)
voidregisterName(String nameId, String nameKind)
voidsetDestroyMethod(Runnable destroyMethod)
voidshutdown(AbstractChannelFactory.ShutdownCallback cb)
shutdown is called by the Java Wrapper
voidunregisterName()
voidwriteIOR(String fileName)
POA_default_POA()

Field Detail

config_

protected final Configuration config_

container_

protected final MutablePicoContainer container_

logger_

protected final Logger logger_

thisRef_

protected final Object thisRef_

Constructor Detail

AbstractChannelFactory

protected AbstractChannelFactory(MutablePicoContainer container, ORB orb)

Method Detail

activate

public Object activate()

addToChannels

protected void addToChannels(int id, AbstractEventChannel channel)

channelCreated

protected void channelCreated(AbstractEventChannel channel)

create_abstract_channel

protected abstract Object create_abstract_channel(Property[] admin, Property[] qos, IntHolder id)

create_channel_servant

protected AbstractEventChannel create_channel_servant(IntHolder id, Property[] qosProps, Property[] adminProps)

deactivate

public final void deactivate()

destroy

public void destroy()

dispose

public void dispose()

getAllChannels

protected int[] getAllChannels()

getChannelIterator

protected Iterator getChannelIterator()

getConfiguration

protected Configuration getConfiguration()

getCorbaLoc

public String getCorbaLoc()

getIOR

public String getIOR()

getLocalAddress

protected String getLocalAddress()

getLocalPort

protected int getLocalPort()

getObjectName

protected abstract String getObjectName()

getORB

protected ORB getORB()

getServant

protected abstract Servant getServant()

getShortcut

protected abstract String getShortcut()

get_event_channel_servant

protected AbstractEventChannel get_event_channel_servant(int id)

newContainerForChannel

protected MutablePicoContainer newContainerForChannel()

newEventChannel

protected abstract AbstractEventChannel newEventChannel()

newFactory

public static AbstractChannelFactory newFactory(ORB optionalORB, MutablePicoContainer optionalContainer, Properties props)

newFactory

public static AbstractChannelFactory newFactory(Properties props)

registerName

public void registerName(Properties props)

registerName

public void registerName(String nameId, String nameKind)

setDestroyMethod

public void setDestroyMethod(Runnable destroyMethod)

shutdown

public void shutdown(AbstractChannelFactory.ShutdownCallback cb)
shutdown is called by the Java Wrapper

unregisterName

public void unregisterName()

writeIOR

public void writeIOR(String fileName)

_default_POA

public POA _default_POA()