Package org.jcsp.net.cns
Class CNSNetChannelLocation
- java.lang.Object
-
- org.jcsp.net.NetChannelLocation
-
- org.jcsp.net.cns.CNSNetChannelLocation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class CNSNetChannelLocation extends NetChannelLocation
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 normalCNSService
NetChannelLocation
objects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private NameAccessLevel
accessLevel
private CNSUser
cnsResolver
private java.lang.String
cnsServiceName
private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description CNSNetChannelLocation(NetChannelLocation locToClone, java.lang.String name, NameAccessLevel accessLevel, CNSService cnsService, java.lang.String cnsServiceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
refresh()
This method requests that the instance of this class refresh its information.-
Methods inherited from class org.jcsp.net.NetChannelLocation
checkEqual, clone, equals, getChannelAddress, getChannelLabel, getChannelNodeID, getStringID, hashCode, refreshFrom
-
-
-
-
Field Detail
-
name
private java.lang.String name
-
accessLevel
private NameAccessLevel accessLevel
-
cnsResolver
private transient CNSUser cnsResolver
-
cnsServiceName
private java.lang.String cnsServiceName
-
-
Constructor Detail
-
CNSNetChannelLocation
CNSNetChannelLocation(NetChannelLocation locToClone, java.lang.String name, NameAccessLevel accessLevel, CNSService cnsService, java.lang.String cnsServiceName)
-
-
Method Detail
-
refresh
public boolean refresh()
This method requests that the instance of this class refresh its information. The method will re-resolve the location of theNetChannelInput
from the channel name server.- Overrides:
refresh
in classNetChannelLocation
- Returns:
true
if any information has changed, otherwisefalse
.
-
-