Package net.jini.lookup.entry
Class ServiceInfo
java.lang.Object
net.jini.entry.AbstractEntry
net.jini.lookup.entry.ServiceInfo
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Entry,ServiceControlled
Generic information about a service. This includes the name of the manufacturer, the product,
and the vendor.
- Author:
- Sun Microsystems, Inc.
- See Also:
-
ServiceInfoBean- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe name of the manufacturer or author of this service.The model name or number of this service, if any.The name of the product or package of which this service is an instance.The serial number of this instance of the service, if any.The name of the vendor of this service.The version of this service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidMethods inherited from class net.jini.entry.AbstractEntry
equals, equals, hashCode, hashCode, toString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
name
The name of the product or package of which this service is an instance. This field should not include the name of the manufacturer or vendor. -
manufacturer
The name of the manufacturer or author of this service. For example, "Sun Microsystems". -
vendor
The name of the vendor of this service. This may have the same value as the manufacturer field, or it may be different. -
version
The version of this service. This is a free-form field, but should follow accepted version-naming conventions to make visual identification easier. -
model
The model name or number of this service, if any. -
serialNumber
The serial number of this instance of the service, if any.
-
-
Constructor Details
-
ServiceInfo
public ServiceInfo()Construct an empty instance of this class. -
ServiceInfo
public ServiceInfo(String name, String manufacturer, String vendor, String version, String model, String serialNumber) Construct an instance of this class, with all fields initialized appropriately.- Parameters:
name- aStringrepresenting the name valuemanufacturer- aStringrepresenting the manufacturer valuevendor- aStringrepresenting the vendor valueversion- aStringrepresenting the version valuemodel- aStringrepresenting the model valueserialNumber- aStringrepresenting the serial number value
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-