public class CNSChannelEndManager
This class implements the NamedChannelEndManager
interface;
providing methods for both constructing and destroying channels.
This implementation uses the standard Channel Name Server. Instances
interact with a local CNSService
through the use of a
CNSUser
object. The default constructor assumes the use
of the default CNS service and obtains the reference itself. The
constructor which takes a CNSUser
object allows the use of
an alternative CNS service. A CNSUser
object can be
obtained by calling a CNSService
object's
getUserObject()
method
(CNSService.getUserObject).
For further information see
NamedChannelEndFactory.
Constructor and description |
---|
CNSChannelEndManager
() Constructor for CNSChannelEndManager. |
CNSChannelEndManager
(CNSUser cnsUser) |
Type | Name and description |
---|---|
NetSharedChannelOutput |
createAny2Net(String name) Constructs a NetSharedChannelOutput object connected
to a NetChannelInput located at a location
resolved from the specified channel name. |
NetSharedChannelOutput |
createAny2Net(String name, NameAccessLevel accessLevel) Constructs a NetSharedChannelOutput object connected
to a NetChannelInput located at a location
resolved from the specified channel name that exists in the supplied
namespace. |
NetSharedChannelInput |
createNet2Any(String name) Constructs a NetSharedChannelInput object and
registers its location with the supplied name in the global namespace
of a channel naming service. |
NetSharedChannelInput |
createNet2Any(String name, NameAccessLevel nameAccessLevel) Constructs a NetSharedChannelInput object and
registers its location with the supplied name in specified
namespace of a channel naming service. |
NetAltingChannelInput |
createNet2One(String name) Constructs a NetAltingChannelInput object and
registers its location with the supplied name in the global namespace
of a channel naming service. |
NetAltingChannelInput |
createNet2One(String name, NameAccessLevel nameAccessLevel) Constructs a NetAltingChannelInput object and
registers its location with the supplied name in specified
namespace of a channel naming service. |
NetChannelOutput |
createOne2Net(String name) Constructs a NetChannelOutput object connected
to a NetChannelInput located at a location
resolved from the specified channel name. |
NetChannelOutput |
createOne2Net(String name, NameAccessLevel accessLevel) Constructs a NetChannelOutput object connected
to a NetChannelInput located at a location
resolved from the specified channel name that exists in the supplied
namespace. |
void |
destroyAllChannelEnds() Destroys all channel ends constructed with this instance of the factory. |
void |
destroyChannelEnd(NetChannelInput chanInEnd) Destroys an individual NetChannelInput object
that was constructed with this instance. |
void |
destroyChannelEnd(NetChannelOutput chanOutEnd) Destroys an individual NetChannelOutput object
that was constructed with this instance. |
Constructor for CNSChannelEndManager.
Constructs a NetSharedChannelOutput
object connected
to a NetChannelInput
located at a location
resolved from the specified channel name.
NetChannelOutput
object.name
- the name of the channel from which to resolve the location. Constructs a NetSharedChannelOutput
object connected
to a NetChannelInput
located at a location
resolved from the specified channel name that exists in the supplied
namespace.
NetChannelOutput
object.name
- the name of the channel from which to resolve the location.accessLevel
- the namespace in which the channel name exists. Constructs a NetSharedChannelInput
object and
registers its location with the supplied name in the global namespace
of a channel naming service.
NetSharedChannelInput
object.name
- the name against which to register the channel. Constructs a NetSharedChannelInput
object and
registers its location with the supplied name in specified
namespace of a channel naming service.
NetSharedChannelInput
object.name
- the name against which to register the channel.nameAccessLevel
- the namespace in which to register the name. Constructs a NetAltingChannelInput
object and
registers its location with the supplied name in the global namespace
of a channel naming service.
NetAltingChannelInput
object.name
- the name against which to register the channel. Constructs a NetAltingChannelInput
object and
registers its location with the supplied name in specified
namespace of a channel naming service.
NetAltingChannelInput
object.name
- the name against which to register the channel.nameAccessLevel
- the namespace in which to register the name. Constructs a NetChannelOutput
object connected
to a NetChannelInput
located at a location
resolved from the specified channel name.
NetChannelOutput
object.name
- the name of the channel from which to resolve the location. Constructs a NetChannelOutput
object connected
to a NetChannelInput
located at a location
resolved from the specified channel name that exists in the supplied
namespace.
NetChannelOutput
object.name
- the name of the channel from which to resolve the location.accessLevel
- the namespace in which the channel name exists.Destroys all channel ends constructed with this instance of the factory.
Destroys an individual NetChannelInput
object
that was constructed with this instance. This will deregister
the channel name and destroy the channel end.
chanInEnd
- the channel end to destroy. Destroys an individual NetChannelOutput
object
that was constructed with this instance. This will simply
destroy the channel end.
chanInEnd
- the channel end to destroy.JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk