org.objectweb.mobilitools.smi
Class Finder
java.lang.Object
|
+--java.util.Observable
|
+--org.objectweb.mobilitools.smi.Finder
- public class Finder
- extends java.util.Observable
MobiliTools $Name: $, $Id: Finder.java,v 1.1.1.1 2003/03/28 14:48:05 dillense Exp $
Each instance launches a new implementation of the MAFFinder interface for a given region.
The class may also be directly run to launch a single MAFFinder.
In SMI, MAFFinder implementations rely on the CORBA naming service to publish their object
reference.
Only one MAFFinder can be launched for a given region.
- See Also:
Constants
,
MAFFinder_impl
,
FinderGUI
Constructor Summary |
Finder(java.lang.String region)
Launches a MAFFinder for the given region, and registers its object
reference in the default CORBA naming service. |
Finder(java.lang.String region,
org.omg.CORBA.ORB orb)
Launches a MAFFinder for the given region, and registers its object
reference in the default CORBA naming service. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Finder
public Finder(java.lang.String region)
- Launches a MAFFinder for the given region, and registers its object
reference in the default CORBA naming service.
- Parameters:
region
- the name of the region to manage.- See Also:
Constants
Finder
public Finder(java.lang.String region,
org.omg.CORBA.ORB orb)
- Launches a MAFFinder for the given region, and registers its object
reference in the default CORBA naming service.
- Parameters:
region
- the name of the region to manage.orb
- the ORB object to use.- See Also:
Constants
,
ORB.init()
main
public static void main(java.lang.String[] args)
- Launches a MAFFinder for the given region, and registers its object
reference in the default CORBA naming service.
- Parameters:
args
- the last argument must specify the region name- See Also:
Finder(String, ORB)
getRegion
public java.lang.String getRegion()
- Returns:
- the name of the region managed by current Finder.
exit
public int exit()
- Shuts the finder.
- Returns:
- 0 if the MAFFinder object reference could be canceled from the CORBA naming service,
-1 otherwise.
register
public void register(FinderEntry entry)
throws org.omg.CfMAF.NameInvalid
lookup_names
public org.omg.CfMAF.Name[] lookup_names(java.lang.Object profile)
lookup_locations
public java.lang.String[] lookup_locations(Name name,
java.lang.String location,
java.lang.Object profile)
throws org.omg.CfMAF.EntryNotFound
unregister
public void unregister(Name name)
throws org.omg.CfMAF.EntryNotFound
getAgentProfile
public org.omg.CfMAF.AgentProfile getAgentProfile(Name name)
throws org.omg.CfMAF.AgentNotFound
printEntries
public void printEntries()
getORB
public org.omg.CORBA.ORB getORB()