GigaSpaces XAP 9.5 API

net.jini.core.lookup
Class ServiceItem

java.lang.Object
  extended by net.jini.core.lookup.ServiceItem
All Implemented Interfaces:
Serializable

public class ServiceItem
extends Object
implements Serializable

Items are stored in and retrieved from the lookup service using instances of this class.

Since:
1.0
Author:
Sun Microsystems, Inc.
See Also:
Serialized Form

Field Summary
 Entry[] attributeSets
          Attribute sets.
 Object service
          A service object.
 ServiceID serviceID
          A service ID, or null if registering for the first time.
 
Constructor Summary
ServiceItem(ServiceID serviceID, Object service, Entry[] attrSets)
          Simple constructor.
 
Method Summary
 Object getService()
           
 String toString()
          Returns a String representation of this ServiceItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serviceID

public ServiceID serviceID
A service ID, or null if registering for the first time.


service

public Object service
A service object.


attributeSets

public Entry[] attributeSets
Attribute sets.

Constructor Detail

ServiceItem

public ServiceItem(ServiceID serviceID,
                   Object service,
                   Entry[] attrSets)
Simple constructor.

Parameters:
serviceID - service ID, or null if registering for the first time
service - service object
attrSets - attribute sets
Method Detail

getService

public Object getService()

toString

public String toString()
Returns a String representation of this ServiceItem.

Overrides:
toString in class Object
Returns:
String representation of this ServiceItem

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.