public class ServiceItem extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
Entry[] |
attributeSets
Attribute sets.
|
Object |
service
A service object.
|
ServiceID |
serviceID
A service ID, or null if registering for the first time.
|
Constructor and Description |
---|
ServiceItem(AtomicSerial.GetArg arg)
AtomicSerial constructor. |
ServiceItem(ServiceID serviceID,
Object service,
Entry[] attrSets)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
ServiceItem |
clone()
Clone has been implemented to allow utilities such as
net.jini.lookup.ServiceDiscoveryManager to avoid sharing
internally stored instances with client code. |
String |
toString()
Returns a
String representation of this
ServiceItem . |
public ServiceID serviceID
public Object service
public Entry[] attributeSets
public ServiceItem(AtomicSerial.GetArg arg) throws IOException
AtomicSerial
constructor. This object should be cloned
during de-serialization.arg
- atomic deserialization parameterIOException
- if there are I/O errors while reading from GetArg's
underlying InputStream
public String toString()
String
representation of this
ServiceItem
.public ServiceItem clone()
net.jini.lookup.ServiceDiscoveryManager
to avoid sharing
internally stored instances with client code.
A deep copy clone is madeCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.