org.jacorb.notification
Class AbstractChannelFactory
java.lang.Object
org.jacorb.notification.AbstractChannelFactory
- All Implemented Interfaces:
- Disposable, ManageableServant
- Direct Known Subclasses:
- EventChannelFactoryImpl, TypedEventChannelFactoryImpl
public abstract class AbstractChannelFactory
- extends java.lang.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 org.apache.avalon.framework.configuration.Configuration |
config_
|
protected MutablePicoContainer |
container_
|
protected org.apache.avalon.framework.logger.Logger |
logger_
|
protected org.omg.CORBA.Object |
thisRef_
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container_
protected final MutablePicoContainer container_
config_
protected final org.apache.avalon.framework.configuration.Configuration config_
thisRef_
protected final org.omg.CORBA.Object thisRef_
logger_
protected final org.apache.avalon.framework.logger.Logger logger_
AbstractChannelFactory
protected AbstractChannelFactory(MutablePicoContainer container,
org.omg.CORBA.ORB orb)
throws org.omg.CORBA.UserException
- Throws:
org.omg.CORBA.UserException
newEventChannel
protected abstract AbstractEventChannel newEventChannel()
throws org.apache.avalon.framework.configuration.ConfigurationException
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
create_abstract_channel
protected abstract org.omg.CORBA.Object create_abstract_channel(Property[] admin,
Property[] qos,
org.omg.CORBA.IntHolder id)
throws UnsupportedAdmin,
UnsupportedQoS
- Throws:
UnsupportedAdmin
UnsupportedQoS
getObjectName
protected abstract java.lang.String getObjectName()
getShortcut
protected abstract java.lang.String getShortcut()
getServant
protected abstract org.omg.PortableServer.Servant getServant()
getLocalPort
protected int getLocalPort()
getLocalAddress
protected java.lang.String getLocalAddress()
activate
public org.omg.CORBA.Object activate()
- Specified by:
activate
in interface ManageableServant
setDestroyMethod
public void setDestroyMethod(java.lang.Runnable destroyMethod)
getORB
protected org.omg.CORBA.ORB getORB()
deactivate
public final void deactivate()
- Specified by:
deactivate
in interface ManageableServant
getConfiguration
protected org.apache.avalon.framework.configuration.Configuration getConfiguration()
dispose
public void dispose()
addToChannels
protected void addToChannels(int id,
AbstractEventChannel channel)
getAllChannels
protected int[] getAllChannels()
get_event_channel_servant
protected AbstractEventChannel get_event_channel_servant(int id)
throws ChannelNotFound
- Throws:
ChannelNotFound
getChannelIterator
protected java.util.Iterator getChannelIterator()
create_channel_servant
protected AbstractEventChannel create_channel_servant(org.omg.CORBA.IntHolder id,
Property[] qosProps,
Property[] adminProps)
throws UnsupportedAdmin,
UnsupportedQoS,
org.apache.avalon.framework.configuration.ConfigurationException
- Throws:
UnsupportedAdmin
UnsupportedQoS
org.apache.avalon.framework.configuration.ConfigurationException
channelCreated
protected void channelCreated(AbstractEventChannel channel)
destroy
public void destroy()
shutdown
public void shutdown(org.jacorb.notification.AbstractChannelFactory.ShutdownCallback cb)
- shutdown is called by the Java Wrapper
getIOR
public java.lang.String getIOR()
getCorbaLoc
public java.lang.String getCorbaLoc()
newFactory
public static AbstractChannelFactory newFactory(org.omg.CORBA.ORB optionalORB,
MutablePicoContainer optionalContainer,
java.util.Properties props)
throws java.lang.Exception
- Throws:
java.lang.Exception
newFactory
public static AbstractChannelFactory newFactory(java.util.Properties props)
throws java.lang.Exception
- Throws:
java.lang.Exception
registerName
public void registerName(java.util.Properties props)
throws java.lang.Exception
- Throws:
java.lang.Exception
registerName
public void registerName(java.lang.String nameId,
java.lang.String nameKind)
throws org.omg.CosNaming.NamingContextPackage.NotFound,
org.omg.CosNaming.NamingContextPackage.CannotProceed,
org.omg.CosNaming.NamingContextPackage.InvalidName,
org.omg.CORBA.ORBPackage.InvalidName
- Throws:
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName
unregisterName
public void unregisterName()
throws org.omg.CosNaming.NamingContextPackage.NotFound,
org.omg.CosNaming.NamingContextPackage.CannotProceed,
org.omg.CosNaming.NamingContextPackage.InvalidName
- Throws:
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName
writeIOR
public void writeIOR(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
_default_POA
public org.omg.PortableServer.POA _default_POA()
newContainerForChannel
protected MutablePicoContainer newContainerForChannel()