|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.tools.cli.ServiceFinder.ServiceFilter
public class ServiceFinder.ServiceFilter
A ServiceItemFilter that filters on host names and attributes
| Constructor Summary | |
|---|---|
ServiceFinder.ServiceFilter(String[] hostNames,
Entry[] attrs)
Create an ServiceFilter |
|
| Method Summary | |
|---|---|
boolean |
check(ServiceItem item)
If the input ServiceItem has an ApplianceInfo and the hostname or address
matches an array element in the hostNames array, return
true |
boolean |
hostNameMatches(Entry[] attrs)
Determine if the attribute collecton contains an ApplianceInfo which matches an element in the hostNames array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceFinder.ServiceFilter(String[] hostNames,
Entry[] attrs)
hostNames - The names of hosts to matchattrs - Additional attributes to filter| Method Detail |
|---|
public boolean check(ServiceItem item)
ApplianceInfo and the hostname or address
matches an array element in the hostNames array, return
true
check in interface ServiceItemFilterServiceItemFilter.check(net.jini.core.lookup.ServiceItem)public boolean hostNameMatches(Entry[] attrs)
attrs - Array of Entry objects
hostNames array, return true, otherwise,
return false
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||