jaugment2.jini
Class LocalLoockup
java.lang.Object
|
+--jaugment2.jini.LocalLoockup
- public class LocalLoockup
- extends java.lang.Object
- implements net.jini.core.lookup.ServiceRegistrar
A Lookup-Sercice-Dummy. This class is FOR LOCAL USE ONLY. It is only ment to simulate a JINI-Infrastructure where local
ressources are very limited.
|
Field Summary |
(package private) boolean |
debugMe
|
private net.jini.core.discovery.LookupLocator |
locateme
|
private java.util.LinkedList |
notifyRegistrations
|
private java.util.LinkedList |
registrations
LinkedList of ServiceRegistrations keeping where we registred ourselves |
| Fields inherited from interface net.jini.core.lookup.ServiceRegistrar |
TRANSITION_MATCH_MATCH,
TRANSITION_MATCH_NOMATCH,
TRANSITION_NOMATCH_MATCH |
|
Method Summary |
java.lang.Class[] |
getEntryClasses(net.jini.core.lookup.ServiceTemplate tmpl)
|
java.lang.Object[] |
getFieldValues(net.jini.core.lookup.ServiceTemplate tmpl,
int setIndex,
java.lang.String field)
|
java.lang.String[] |
getGroups()
|
net.jini.core.discovery.LookupLocator |
getLocator()
|
private net.jini.core.lease.Lease |
getNewLease(net.jini.core.lookup.ServiceItem item)
|
net.jini.core.lookup.ServiceID |
getServiceID()
|
java.lang.Class[] |
getServiceTypes(net.jini.core.lookup.ServiceTemplate tmpl,
java.lang.String prefix)
|
java.lang.Object |
lookup(net.jini.core.lookup.ServiceTemplate tmpl)
|
net.jini.core.lookup.ServiceMatches |
lookup(net.jini.core.lookup.ServiceTemplate tmpl,
int maxMatches)
|
net.jini.core.event.EventRegistration |
notify(net.jini.core.lookup.ServiceTemplate tmpl,
int transitions,
net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
long leaseDuration)
|
net.jini.core.lookup.ServiceRegistration |
register(net.jini.core.lookup.ServiceItem item,
long leaseDuration)
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
debugMe
boolean debugMe
locateme
private net.jini.core.discovery.LookupLocator locateme
registrations
private java.util.LinkedList registrations
- LinkedList of ServiceRegistrations keeping where we registred ourselves
notifyRegistrations
private java.util.LinkedList notifyRegistrations
LocalLoockup
public LocalLoockup()
getNewLease
private net.jini.core.lease.Lease getNewLease(net.jini.core.lookup.ServiceItem item)
register
public net.jini.core.lookup.ServiceRegistration register(net.jini.core.lookup.ServiceItem item,
long leaseDuration)
throws java.rmi.RemoteException
- Specified by:
- register in interface net.jini.core.lookup.ServiceRegistrar
lookup
public java.lang.Object lookup(net.jini.core.lookup.ServiceTemplate tmpl)
throws java.rmi.RemoteException
- Specified by:
- lookup in interface net.jini.core.lookup.ServiceRegistrar
lookup
public net.jini.core.lookup.ServiceMatches lookup(net.jini.core.lookup.ServiceTemplate tmpl,
int maxMatches)
throws java.rmi.RemoteException
- Specified by:
- lookup in interface net.jini.core.lookup.ServiceRegistrar
notify
public net.jini.core.event.EventRegistration notify(net.jini.core.lookup.ServiceTemplate tmpl,
int transitions,
net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
long leaseDuration)
throws java.rmi.RemoteException
- Specified by:
- notify in interface net.jini.core.lookup.ServiceRegistrar
getEntryClasses
public java.lang.Class[] getEntryClasses(net.jini.core.lookup.ServiceTemplate tmpl)
throws java.rmi.RemoteException
- Specified by:
- getEntryClasses in interface net.jini.core.lookup.ServiceRegistrar
getFieldValues
public java.lang.Object[] getFieldValues(net.jini.core.lookup.ServiceTemplate tmpl,
int setIndex,
java.lang.String field)
throws java.lang.NoSuchFieldException,
java.rmi.RemoteException
- Specified by:
- getFieldValues in interface net.jini.core.lookup.ServiceRegistrar
getServiceTypes
public java.lang.Class[] getServiceTypes(net.jini.core.lookup.ServiceTemplate tmpl,
java.lang.String prefix)
throws java.rmi.RemoteException
- Specified by:
- getServiceTypes in interface net.jini.core.lookup.ServiceRegistrar
getServiceID
public net.jini.core.lookup.ServiceID getServiceID()
- Specified by:
- getServiceID in interface net.jini.core.lookup.ServiceRegistrar
getLocator
public net.jini.core.discovery.LookupLocator getLocator()
throws java.rmi.RemoteException
- Specified by:
- getLocator in interface net.jini.core.lookup.ServiceRegistrar
getGroups
public java.lang.String[] getGroups()
throws java.rmi.RemoteException
- Specified by:
- getGroups in interface net.jini.core.lookup.ServiceRegistrar