Package org.jcsp.net.dynamic
Class NamedMigratableChannelEndFactoryImpl
- java.lang.Object
-
- org.jcsp.net.dynamic.NamedMigratableChannelEndFactoryImpl
-
- All Implemented Interfaces:
NamedMigratableChannelEndFactory
public class NamedMigratableChannelEndFactoryImpl extends java.lang.Object implements NamedMigratableChannelEndFactory
Implementation of the factory for creating named migratable networked channel ends.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcnsServiceNameCNS service name to use.private CNSUsercnsUserCNS user reference.private NetChannelEndFactoryfactoryToUseFactory to create the underlying networked channel ends.
-
Constructor Summary
Constructors Constructor Description NamedMigratableChannelEndFactoryImpl()Constructs a newNamedMigratableChannelEndFactoryImplusing the default CNS service name.NamedMigratableChannelEndFactoryImpl(java.lang.String cnsServiceName)Constructs a newNamedMigratableChannelEndFactoryImplfor use with the given CNS service name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MigratableAltingChannelInputcreateNet2One(java.lang.String name)Creates a named migratable networked channel input end that can be used as a guard in anAlternative.MigratableAltingChannelInputcreateNet2One(java.lang.String name, NameAccessLevel nameAccessLevel)Creates a named migratable networked channel input end that can be used as a guard in anAlternative.MigratableChannelOutputcreateOne2Net(java.lang.String name)Creates a networked migratable channel output end connected to the input end created with the given name.MigratableChannelOutputcreateOne2Net(java.lang.String name, NameAccessLevel accessLevel)Creates a networked migratable channel output end connected to the input end created with the given name.
-
-
-
Field Detail
-
cnsServiceName
private java.lang.String cnsServiceName
CNS service name to use.
-
cnsUser
private CNSUser cnsUser
CNS user reference.
-
factoryToUse
private NetChannelEndFactory factoryToUse
Factory to create the underlying networked channel ends.
-
-
Constructor Detail
-
NamedMigratableChannelEndFactoryImpl
public NamedMigratableChannelEndFactoryImpl(java.lang.String cnsServiceName)
Constructs a newNamedMigratableChannelEndFactoryImplfor use with the given CNS service name.- Parameters:
cnsServiceName- the name of the CNS service to use.
-
NamedMigratableChannelEndFactoryImpl
public NamedMigratableChannelEndFactoryImpl()
Constructs a newNamedMigratableChannelEndFactoryImplusing the default CNS service name.
-
-
Method Detail
-
createNet2One
public MigratableAltingChannelInput createNet2One(java.lang.String name)
Description copied from interface:NamedMigratableChannelEndFactoryCreates a named migratable networked channel input end that can be used as a guard in anAlternative.- Specified by:
createNet2Onein interfaceNamedMigratableChannelEndFactory- Parameters:
name- the name to use.- Returns:
- the created channel end.
- See Also:
NamedMigratableChannelEndFactory.createNet2One(String)
-
createNet2One
public MigratableAltingChannelInput createNet2One(java.lang.String name, NameAccessLevel nameAccessLevel)
Description copied from interface:NamedMigratableChannelEndFactoryCreates a named migratable networked channel input end that can be used as a guard in anAlternative.- Specified by:
createNet2Onein interfaceNamedMigratableChannelEndFactory- Parameters:
name- the name to use.nameAccessLevel- the namespace to declare the name within.- Returns:
- the created channel end.
- See Also:
NamedMigratableChannelEndFactory.createNet2One(String, NameAccessLevel)
-
createOne2Net
public MigratableChannelOutput createOne2Net(java.lang.String name)
Description copied from interface:NamedMigratableChannelEndFactoryCreates a networked migratable channel output end connected to the input end created with the given name.- Specified by:
createOne2Netin interfaceNamedMigratableChannelEndFactory- Parameters:
name- the name the input end was created with.- Returns:
- the created channel end.
- See Also:
NamedMigratableChannelEndFactory.createOne2Net(String)
-
createOne2Net
public MigratableChannelOutput createOne2Net(java.lang.String name, NameAccessLevel accessLevel)
Description copied from interface:NamedMigratableChannelEndFactoryCreates a networked migratable channel output end connected to the input end created with the given name.- Specified by:
createOne2Netin interfaceNamedMigratableChannelEndFactory- Parameters:
name- the name the input end was created with.- Returns:
- the created channel end.
- See Also:
NamedMigratableChannelEndFactory.createOne2Net(String, NameAccessLevel)
-
-