Class CNSNetChannelLocation
java.lang.Object
org.jcsp.net.NetChannelLocation
org.jcsp.net.cns.CNSNetChannelLocation
- All Implemented Interfaces:
Serializable, Cloneable
Instances of this class are returned by the resolve methods
of . JCSP.NET users cannot create
the objects directly.
CNSService
The objects returned by the can be used
in place of normal CNSServiceNetChannelLocation objects.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NameAccessLevelprivate CNSUserprivate Stringprivate String -
Constructor Summary
ConstructorsConstructorDescriptionCNSNetChannelLocation(NetChannelLocation locToClone, String name, NameAccessLevel accessLevel, CNSService cnsService, String cnsServiceName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanrefresh()This method requests that the instance of this class refresh its information.Methods inherited from class NetChannelLocation
checkEqual, clone, equals, getChannelAddress, getChannelLabel, getChannelNodeID, getStringID, hashCode, refreshFrom
-
Field Details
-
name
-
accessLevel
-
cnsResolver
-
cnsServiceName
-
-
Constructor Details
-
CNSNetChannelLocation
CNSNetChannelLocation(NetChannelLocation locToClone, String name, NameAccessLevel accessLevel, CNSService cnsService, String cnsServiceName)
-
-
Method Details
-
refresh
public boolean refresh()This method requests that the instance of this class refresh its information. The method will re-resolve the location of theNetChannelInputfrom the channel name server.- Overrides:
refreshin classNetChannelLocation- Returns:
trueif any information has changed, otherwisefalse.
-