|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ServiceItem | |
---|---|
com.sun.jini.example.browser | A visualization tool for exploring Jini Network Technology communities (djinns) with support for ServiceUI. |
com.sun.jini.reggie | Provides implementations of ServiceRegistrar . |
net.jini.core.lookup | These are the lookup service interfaces and classes. |
net.jini.lookup | Standard utility classes for managing the join state of a service and the service discovery duties of a client or service. |
Uses of ServiceItem in com.sun.jini.example.browser |
---|
Fields in com.sun.jini.example.browser declared as ServiceItem | |
---|---|
private ServiceItem |
Browser.ServiceListItem.item
|
protected ServiceItem |
Browser.ServiceListPopup.item
|
private ServiceItem |
ServiceBrowser.AttributePanel.item
|
private ServiceItem |
ServiceEditor.item
|
protected ServiceItem |
ServiceBrowser.UIDescriptorPopup.serviceItem
|
private ServiceItem |
ServiceBrowser.MouseReceiver.serviceItem
|
protected ServiceItem |
ServiceEditor.UIDescriptorPopup.serviceItem
|
private ServiceItem |
ServiceEditor.MouseReceiver.serviceItem
|
Methods in com.sun.jini.example.browser that return ServiceItem | |
---|---|
ServiceItem |
Browser.ServiceListItem.getServiceItem()
|
Methods in com.sun.jini.example.browser with parameters of type ServiceItem | |
---|---|
void |
ServiceBrowser.UIDescriptorPopup.setServiceItem(ServiceItem anItem)
|
void |
ServiceEditor.UIDescriptorPopup.setServiceItem(ServiceItem anItem)
|
Constructors in com.sun.jini.example.browser with parameters of type ServiceItem | |
---|---|
Browser.ServiceListItem(ServiceItem item)
|
|
ServiceBrowser.AttributePanel(ServiceItem item,
ServiceRegistrar registrar)
|
|
ServiceBrowser.MouseReceiver(ServiceItem aServiceItem,
ServiceBrowser.UIDescriptorPopup popup)
|
|
ServiceBrowser(ServiceItem item,
ServiceRegistrar registrar,
Browser browser)
|
|
ServiceEditor.MouseReceiver(ServiceItem aServiceItem,
ServiceEditor.UIDescriptorPopup popup)
|
|
ServiceEditor(ServiceItem item,
Object admin,
ServiceRegistrar registrar,
Browser browser)
|
Uses of ServiceItem in com.sun.jini.reggie |
---|
Methods in com.sun.jini.reggie that return ServiceItem | |
---|---|
ServiceItem |
Item.get()
Convert back to a ServiceItem. |
ServiceItem |
RegistrarEvent.getServiceItem()
Returns the new state of the item, or null if the item was deleted from the lookup service. |
static ServiceItem[] |
Item.toServiceItem(ArrayList reps)
Converts an ArrayList of Item to an array of ServiceItem. |
Methods in com.sun.jini.reggie with parameters of type ServiceItem | |
---|---|
ServiceRegistration |
RegistrarProxy.register(ServiceItem srvItem,
long leaseDuration)
|
Constructors in com.sun.jini.reggie with parameters of type ServiceItem | |
---|---|
Item(ServiceItem item)
Converts a ServiceItem to an Item. |
Uses of ServiceItem in net.jini.core.lookup |
---|
Fields in net.jini.core.lookup declared as ServiceItem | |
---|---|
ServiceItem[] |
ServiceMatches.items
Matching items (up to maxMatches from lookup method). |
Methods in net.jini.core.lookup that return ServiceItem | |
---|---|
abstract ServiceItem |
ServiceEvent.getServiceItem()
Returns the new state of the item, or null if the item was deleted from the lookup service. |
Methods in net.jini.core.lookup with parameters of type ServiceItem | |
---|---|
ServiceRegistration |
ServiceRegistrar.register(ServiceItem item,
long leaseDuration)
Register a new service or re-register an existing service. |
Constructors in net.jini.core.lookup with parameters of type ServiceItem | |
---|---|
ServiceMatches(ServiceItem[] items,
int totalMatches)
Simple constructor. |
Uses of ServiceItem in net.jini.lookup |
---|
Fields in net.jini.lookup declared as ServiceItem | |
---|---|
ServiceItem |
ServiceDiscoveryManager.ServiceItemReg.filteredItem
|
ServiceItem |
ServiceDiscoveryManager.ServiceItemReg.item
|
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.DiscardServiceTask.item
|
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.NotifyEventTask.item
|
private ServiceItem |
ServiceDiscoveryEvent.postEventItem
Represents the state of the service after the event. |
private ServiceItem |
ServiceDiscoveryEvent.preEventItem
Represents the state of the service prior to the event. |
private ServiceItem |
JoinManager.serviceItem
Contains the reference to the service that is to be registered with all of the desired lookup services referenced by discMgr . |
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.NewOldServiceTask.srvcItem
|
Methods in net.jini.lookup that return ServiceItem | |
---|---|
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.filterMaybeDiscard(ServiceItem item,
ServiceRegistrar proxy,
boolean sendEvent)
Applies the first-stage filter associated with
the current instance of LookupCache to the given
item and returns the resulting filtered item if
the filter is passed (or is null );
otherwise, returns null and sends a service removed
event if the sendEvent parameter is true . |
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.findItem(ServiceID sid,
ServiceItem[] items)
Returns the element in the given items array having the given ServiceID. |
private ServiceItem |
ServiceDiscoveryManager.getMatchedServiceItem(ServiceMatches sm,
ServiceItemFilter filter)
From the given set of ServiceMatches, randomly selects and returns a ServiceItem that matches the given filter (if applicable). |
ServiceItem |
ServiceDiscoveryEvent.getPostEventServiceItem()
Returns an instance of a ServiceItem containing the
service reference corresponding to the given event. |
ServiceItem |
ServiceDiscoveryEvent.getPreEventServiceItem()
Returns an instance of a ServiceItem containing the
service reference corresponding to the given event. |
ServiceItem[] |
ServiceDiscoveryManager.ServiceDiscoveryListenerImpl.getServiceItem()
|
private ServiceItem[] |
ServiceDiscoveryManager.LookupCacheImpl.getServiceItems(ServiceItemFilter filter2)
This method returns a ServiceItem array containing
elements that satisfy the following conditions:
- is referenced by one of the itemReg elements
contained in the serviceIdMap
- is not currently discarded
- satisfies the given ServiceItemFilter
Note that the filter parameter is a "2nd stage"
filter. |
ServiceItem |
LookupCache.lookup(ServiceItemFilter filter)
Finds a ServiceItem object that satisfies the given
filter parameter. |
ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.lookup(ServiceItemFilter myFilter)
|
ServiceItem[] |
LookupCache.lookup(ServiceItemFilter filter,
int maxMatches)
Finds an array of instances of ServiceItem that each
satisfy the given filter parameter. |
ServiceItem[] |
ServiceDiscoveryManager.LookupCacheImpl.lookup(ServiceItemFilter myFilter,
int maxMatches)
|
ServiceItem[] |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
int minMatches,
int maxMatches,
ServiceItemFilter filter,
long waitDur)
Queries each available lookup service in the managed set for service(s) that match the input criteria. |
ServiceItem[] |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
int maxMatches,
ServiceItemFilter filter)
Queries each available lookup service in the managed set for service(s) that match the input criteria. |
ServiceItem |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
ServiceItemFilter filter)
Queries each available lookup service in the set of lookup services managed by the ServiceDiscoveryManager (the managed
set) for a service reference that matches criteria defined by the
entity that invokes this method. |
ServiceItem |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
ServiceItemFilter filter,
long waitDur)
Queries each available lookup service in the managed set for a service that matches the input criteria. |
ServiceItem |
ServiceDiscoveryManager.ServiceItemReg.removeProxy(ServiceRegistrar proxy)
|
Methods in net.jini.lookup with parameters of type ServiceItem | |
---|---|
private void |
ServiceDiscoveryManager.LookupCacheImpl.addFilteredItemToMap(ServiceItem item,
ServiceItem filteredItem)
Convenience method called by filterMaybeDiscard
and ServiceDiscardTimerTask.run that finds
the ServiceItemReg element in the
serviceIdMap that corresponds to the given
ServiceItem and, if such an element is found,
replaces the item field of that element with
the given item parameter; and sets the
filteredItem field of that element to the value
contained in the filteredItem parameter. |
boolean |
ServiceDiscoveryManager.ServiceItemReg.addProxy(ServiceRegistrar proxy,
ServiceItem item)
|
private void |
ServiceDiscoveryManager.LookupCacheImpl.addServiceNotify(ServiceItem item)
Sends a notification to all listeners when a ServiceItem has been added. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.addServiceNotify(ServiceItem item,
ServiceDiscoveryListener srvcListener)
Sends a notification to the given listener when a ServiceItem has been added. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.changeServiceNotify(ServiceItem newItem,
ServiceItem oldItem)
Sends a notification when a ServiceItem has been changed, but still matches. |
boolean |
ServiceItemFilter.check(ServiceItem item)
This method defines the implementation of the additional selection criteria (additional matching and/or proxy preparation) to apply to a ServiceItem object found
through standard template matching. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.discardRetryLater(ServiceItem item,
ServiceRegistrar proxy,
boolean sendEvent)
Convenience method called by filterMaybeDiscard
that finds in the serviceIdMap , the
ServiceItemReg element corresponding to the
given ServiceItem , sets a service removed event,
and queues a ServiceDiscardTimerTask to retry the
filter at a later time. |
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.filterMaybeDiscard(ServiceItem item,
ServiceRegistrar proxy,
boolean sendEvent)
Applies the first-stage filter associated with
the current instance of LookupCache to the given
item and returns the resulting filtered item if
the filter is passed (or is null );
otherwise, returns null and sends a service removed
event if the sendEvent parameter is true . |
private boolean |
ServiceDiscoveryManager.filterPassFail(ServiceItem item,
ServiceItemFilter filter)
Applies the given filter to the given item ,
and returns true if the filter returns a
pass value; otherwise, returns false . |
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.findItem(ServiceID sid,
ServiceItem[] items)
Returns the element in the given items array having the given ServiceID. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.handleMatchNoMatch(ServiceRegistrar proxy,
ServiceID srvcID,
ServiceItem item)
Convenience method called by NotifyEventTask.run (only
when a TRANSITION_MATCH_NOMATCH event is received) that removes
the given item from the serviceIdMap
and wakes up the ServiceDiscardTimerTask if the given
item is discarded; otherwise, sends a removed event. |
private static boolean |
ServiceDiscoveryManager.isArrayContainsServiceItem(ArrayList a,
ServiceItem s)
Determines if the given ServiceItem is an element of the given array. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.itemMatchMatchChange(ServiceRegistrar proxy,
ServiceItem newItem,
ServiceDiscoveryManager.ServiceItemReg itemReg,
boolean matchMatchEvent)
With respect to a given service (referenced by both the parameter newItem and the parameter itemReg), if either an event has been received from the given lookup service (referenced by the proxy parameter), or a snapshot of the given lookup service's state has been retrieved, this method determines whether the service's attributes have changed, or whether a new version of the service has been registered. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.notifyServiceMap(Object eventSource,
long eventID,
long seqNo,
ServiceID sid,
ServiceItem item,
int transition)
Called by the lookupListener's notify() method. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.removeServiceIdMap(ServiceID sid,
ServiceItem item)
Removes an entry from the serviceIdMap, and sends a notification. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.removeServiceNotify(ServiceItem item)
Sends a notification when a ServiceItem has been removed. |
private boolean |
ServiceDiscoveryManager.LookupCacheImpl.sameVersion(ServiceItem item0,
ServiceItem item1)
Convenience method that performs a byte-wise comparison, including codebases, of the services referenced by the given service items, and returns the result. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.serviceNotifyDo(ServiceItem oldItem,
ServiceItem item,
int action)
Common code for performing service notification to all listeners. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.serviceNotifyDo(ServiceItem oldItem,
ServiceItem item,
int action,
ServiceDiscoveryListener sl)
Common code for performing service notification to one listener. |
Constructors in net.jini.lookup with parameters of type ServiceItem | |
---|---|
ServiceDiscoveryEvent(Object source,
ServiceItem preEventItem,
ServiceItem postEventItem)
The constructor of ServiceDiscoveryEvent takes
three arguments:
An instance of Object corresponding to the
instance of LookupCache from which the given event
originated
A ServiceItem reference representing the state
of the service (associated with the given event) prior to the
occurrence of the event
A ServiceItem reference representing the state
of the service after the occurrence of the event
If null is passed as the source parameter for the
constructor, a NullPointerException will be thrown. |
|
ServiceDiscoveryManager.LookupCacheImpl.DiscardServiceTask(ServiceItem item)
|
|
ServiceDiscoveryManager.LookupCacheImpl.NewOldServiceTask(ServiceDiscoveryManager.ProxyReg reg,
ServiceItem item,
boolean matchMatchEvent,
long seqN)
|
|
ServiceDiscoveryManager.LookupCacheImpl.NotifyEventTask(ServiceDiscoveryManager.ProxyReg reg,
ServiceID sid,
ServiceItem item,
int transition,
long seqN)
|
|
ServiceDiscoveryManager.ServiceItemReg(ServiceRegistrar proxy,
ServiceItem item)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |