org.cougaar.core.wp.bootstrap |
|
Java Source File Name | Type | Comment |
AdvertiseBase.java | Class | This component is a base class for (server) bootstrap advertisers.
Per-protocol subclasses call
AdvertiseBase.addAdvertiser to create
an inner Advertiser class per bootstrap location (e.g. |
AdvertiseManager.java | Class | This component runs in white pages servers to advertise
locally-bound
Bundle s from the
org.cougaar.core.wp.resolver.LeaseManager through the
advertisers (rmi, http, multicast, etc). |
AdvertiseService.java | Interface | This service is used by advertisers to listen for local agent
bind/unbind changes. |
BootstrapService.java | Interface | This service is used by the client's server selection to
start/stop the discovery components. |
Bundle.java | Class | Bootstrap data for a single agent, including its
org.cougaar.core.service.wp.AddressEntry s.
The
UID is an optional tag to track version changes. |
BundleDecoder.java | Class | Decode
Bundle s and
Cert s from encoded text. |
BundleEncoder.java | Class | Encode
Bundle s and
Cert s to encoded text. |
BundleService.java | Interface | This service provides
Bundle s for local agents bound
in the
org.cougaar.core.wp.resolver.LeaseManager . |
ConfigManager.java | Class | This component provides the
ConfigService that loads the
static
ConfigReader contents.
The ConfigService supports changes and removals, but for now
we don't use these methods. |
ConfigReader.java | Class | This utility class reads "-Dorg.cougaar.name.server" system
properties and the "alpreg.ini" for bootstrap
Bundle s
provided by the
ConfigService . |
ConfigService.java | Interface | This service provides the initial
Bundle configuration. |
DiscoveryBase.java | Class | This component is a base class for (client) bootstrap discoverers.
Per-protocol subclasses call
DiscoveryBase.addPoller to create
an inner Poller class per bootstrap location (e.g. |
DiscoveryManager.java | Class | This component advertises the
BootstrapService , which
starts/stops the discovery pollers to find bootstrap
Bundle s and copy them into the
org.cougaar.core.wp.resolver.CacheManager 's
HintService . |
DiscoveryService.java | Interface | This service is used by discovery pollers to listen for
start/stop requests and pass their findings to the cache. |
EnsureIsFoundManager.java | Class | This component advertises the
EnsureIsFoundService , which
allows servers to ensures that their peers are reachable.
This implementation maintains the
Set of ensured names
and, if non-empty, continually polls (non-blocking) the
local
WhitePagesService to make sure the
WhitePagesService.getAll(Stringlong) s return non-empty data,
otherwise it starts the
BootstrapService until the
data is found.
This is slightly inefficient for a couple reasons:
-
We're polling our cache even if the names are not necessary at all
times (e.g.
|
EnsureIsFoundService.java | Interface | This service is used by the peer manager to ensure that server
peers are found by the discovery bootstrapper.
Unlike the usual discovery mechanism, which is stopped once
it finds a suitable server, a node containing a server must
discover all its peers for replication to work. |
HintService.java | Interface | This service is provided by the
org.cougaar.core.wp.resolver.CacheManager to bootstrap discovered
Bundle s into the local cache. |
PeersManager.java | Class | This component provides the
PeersService , to tell the
server about their peer servers.
This is a very simple implementation that is based on the
ConfigService. |
PeersService.java | Interface | This service is used by servers to locate theirs peers, which is
required for replication. |
ServersService.java | Interface | This service is used by the
org.cougaar.core.wp.resolver.SelectManager to list potental
servers.
Currently these servers are found through the bootstrap, but
this could be enhanced to allow server-side control. |
ServiceFinder.java | Class | A utility class to hide late-binding
Service lookups. |
Util.java | Class | Bootstrap utility methods. |