public abstract class AbstractChannelFactory extends java.lang.Object implements ManageableServant, Disposable
Modifier and Type | Field and Description |
---|---|
protected org.jacorb.config.Configuration |
config_ |
protected MutablePicoContainer |
container_ |
protected org.slf4j.Logger |
logger_ |
protected Object |
thisRef_ |
Modifier | Constructor and Description |
---|---|
protected |
AbstractChannelFactory(MutablePicoContainer container,
ORB orb) |
Modifier and Type | Method and Description |
---|---|
POA |
_default_POA() |
Object |
activate() |
protected void |
addToChannels(int id,
AbstractEventChannel channel) |
protected void |
channelCreated(AbstractEventChannel channel) |
protected abstract Object |
create_abstract_channel(Property[] admin,
Property[] qos,
IntHolder id) |
protected AbstractEventChannel |
create_channel_servant(IntHolder id,
Property[] qosProps,
Property[] adminProps) |
void |
deactivate() |
void |
destroy() |
void |
dispose() |
protected AbstractEventChannel |
get_event_channel_servant(int id) |
protected int[] |
getAllChannels() |
protected java.util.Iterator |
getChannelIterator() |
protected org.jacorb.config.Configuration |
getConfiguration() |
java.lang.String |
getCorbaLoc() |
java.lang.String |
getIOR() |
protected java.lang.String |
getLocalAddress() |
protected int |
getLocalPort() |
protected abstract java.lang.String |
getObjectName() |
protected ORB |
getORB() |
protected abstract Servant |
getServant() |
protected abstract java.lang.String |
getShortcut() |
protected MutablePicoContainer |
newContainerForChannel() |
protected abstract AbstractEventChannel |
newEventChannel() |
static AbstractChannelFactory |
newFactory(ORB optionalORB,
MutablePicoContainer optionalContainer,
java.util.Properties props) |
static AbstractChannelFactory |
newFactory(java.util.Properties props) |
void |
registerName(java.util.Properties props) |
void |
registerName(java.lang.String nameId,
java.lang.String nameKind) |
void |
setDestroyMethod(java.lang.Runnable destroyMethod) |
void |
shutdown(org.jacorb.notification.AbstractChannelFactory.ShutdownCallback cb)
shutdown is called by the Java Wrapper
|
void |
unregisterName() |
void |
writeIOR(java.lang.String fileName) |
protected final MutablePicoContainer container_
protected final org.jacorb.config.Configuration config_
protected final Object thisRef_
protected final org.slf4j.Logger logger_
protected AbstractChannelFactory(MutablePicoContainer container, ORB orb) throws UserException
UserException
protected abstract AbstractEventChannel newEventChannel() throws org.jacorb.config.ConfigurationException
org.jacorb.config.ConfigurationException
protected abstract Object create_abstract_channel(Property[] admin, Property[] qos, IntHolder id) throws UnsupportedAdmin, UnsupportedQoS
UnsupportedAdmin
UnsupportedQoS
protected abstract java.lang.String getObjectName()
protected abstract java.lang.String getShortcut()
protected abstract Servant getServant()
protected int getLocalPort()
protected java.lang.String getLocalAddress()
public Object activate()
activate
in interface ManageableServant
public void setDestroyMethod(java.lang.Runnable destroyMethod)
protected ORB getORB()
public final void deactivate()
deactivate
in interface ManageableServant
protected org.jacorb.config.Configuration getConfiguration()
public void dispose()
protected void addToChannels(int id, AbstractEventChannel channel)
protected int[] getAllChannels()
protected AbstractEventChannel get_event_channel_servant(int id) throws ChannelNotFound
ChannelNotFound
protected java.util.Iterator getChannelIterator()
protected AbstractEventChannel create_channel_servant(IntHolder id, Property[] qosProps, Property[] adminProps) throws UnsupportedAdmin, UnsupportedQoS, org.jacorb.config.ConfigurationException
UnsupportedAdmin
UnsupportedQoS
org.jacorb.config.ConfigurationException
protected void channelCreated(AbstractEventChannel channel)
public void destroy()
public void shutdown(org.jacorb.notification.AbstractChannelFactory.ShutdownCallback cb)
public java.lang.String getIOR()
public java.lang.String getCorbaLoc()
public static AbstractChannelFactory newFactory(ORB optionalORB, MutablePicoContainer optionalContainer, java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public static AbstractChannelFactory newFactory(java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public void registerName(java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public void registerName(java.lang.String nameId, java.lang.String nameKind) throws NotFound, CannotProceed, InvalidName, InvalidName
NotFound
CannotProceed
InvalidName
public void unregisterName() throws NotFound, CannotProceed, InvalidName
NotFound
CannotProceed
InvalidName
public void writeIOR(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public POA _default_POA()
protected MutablePicoContainer newContainerForChannel()