|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.test.DebugChannelFactory
public class DebugChannelFactory
This is a helper class for debugging/logging purposes. It is a wrapper to a factory. The channels returned by this wrapper are also wrapped into a class which prints the communication with the registry to the console.
Nested Class Summary | |
---|---|
private static class |
DebugChannelFactory.DebugChannel
wrapper class for a connection. |
Field Summary | |
---|---|
private int |
counter
a counter to allow the identification of the created channels |
private ChannelFactory |
factory
the actual factory |
Constructor Summary | |
---|---|
DebugChannelFactory(ChannelFactory theFactory)
constructor |
Method Summary | |
---|---|
RegistryChannel |
createChannel()
create a new channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ChannelFactory factory
private int counter
Constructor Detail |
---|
public DebugChannelFactory(ChannelFactory theFactory)
theFactory
- the actual factoryMethod Detail |
---|
public RegistryChannel createChannel() throws java.io.IOException
null
is returned. If a channel could not be created for
a different reason, an IOException
is thrown. Channels that
are no longer used by the caller should be closed
createChannel
in interface ChannelFactory
null
if no more
channels are available
java.io.IOException
- if the channel could not be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |