Package org.jcsp.net.dynamic
Class NamedMigratableChannelEndFactoryImpl
java.lang.Object
org.jcsp.net.dynamic.NamedMigratableChannelEndFactoryImpl
- All Implemented Interfaces:
NamedMigratableChannelEndFactory
public class NamedMigratableChannelEndFactoryImpl
extends Object
implements NamedMigratableChannelEndFactory
Implementation of the factory for creating named migratable networked channel ends.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
CNS service name to use.private CNSUser
CNS user reference.private NetChannelEndFactory
Factory to create the underlying networked channel ends. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newNamedMigratableChannelEndFactoryImpl
using the default CNS service name.NamedMigratableChannelEndFactoryImpl
(String cnsServiceName) Constructs a newNamedMigratableChannelEndFactoryImpl
for use with the given CNS service name. -
Method Summary
Modifier and TypeMethodDescriptioncreateNet2One
(String name) Creates a named migratable networked channel input end that can be used as a guard in anAlternative
.createNet2One
(String name, NameAccessLevel nameAccessLevel) Creates a named migratable networked channel input end that can be used as a guard in anAlternative
.createOne2Net
(String name) Creates a networked migratable channel output end connected to the input end created with the given name.createOne2Net
(String name, NameAccessLevel accessLevel) Creates a networked migratable channel output end connected to the input end created with the given name.
-
Field Details
-
cnsServiceName
CNS service name to use. -
cnsUser
CNS user reference. -
factoryToUse
Factory to create the underlying networked channel ends.
-
-
Constructor Details
-
NamedMigratableChannelEndFactoryImpl
Constructs a newNamedMigratableChannelEndFactoryImpl
for use with the given CNS service name.- Parameters:
cnsServiceName
- the name of the CNS service to use.
-
NamedMigratableChannelEndFactoryImpl
public NamedMigratableChannelEndFactoryImpl()Constructs a newNamedMigratableChannelEndFactoryImpl
using the default CNS service name.
-
-
Method Details
-
createNet2One
Description copied from interface:NamedMigratableChannelEndFactory
Creates a named migratable networked channel input end that can be used as a guard in anAlternative
.- Specified by:
createNet2One
in interfaceNamedMigratableChannelEndFactory
- Parameters:
name
- the name to use.- Returns:
- the created channel end.
- See Also:
-
createNet2One
Description copied from interface:NamedMigratableChannelEndFactory
Creates a named migratable networked channel input end that can be used as a guard in anAlternative
.- Specified by:
createNet2One
in interfaceNamedMigratableChannelEndFactory
- Parameters:
name
- the name to use.nameAccessLevel
- the namespace to declare the name within.- Returns:
- the created channel end.
- See Also:
-
createOne2Net
Description copied from interface:NamedMigratableChannelEndFactory
Creates a networked migratable channel output end connected to the input end created with the given name.- Specified by:
createOne2Net
in interfaceNamedMigratableChannelEndFactory
- Parameters:
name
- the name the input end was created with.- Returns:
- the created channel end.
- See Also:
-
createOne2Net
Description copied from interface:NamedMigratableChannelEndFactory
Creates a networked migratable channel output end connected to the input end created with the given name.- Specified by:
createOne2Net
in interfaceNamedMigratableChannelEndFactory
- Parameters:
name
- the name the input end was created with.- Returns:
- the created channel end.
- See Also:
-