one.world.rep
Class DiscoveryServer

java.lang.Object
  |
  +--one.world.core.Component
        |
        +--one.world.rep.DiscoveryServer
All Implemented Interfaces:
Serializable

public final class DiscoveryServer
extends Component

A service discovery server. Accepts service registrations and issues leases for storing these registrations in a registry. Answers client requests for service lookups and routes events to services using a late binding approach. None of the server event handlers should be directly used by application code. Interaction with the server is performed by the DiscoveryClient component.

Imported and Exported Event Handlers

Exported event handlers:

main
Handles environment events.

Imported event handlers:

request
The environment request handler.

Other event handlers:

server
Handles RemoteEvents from DiscoveryClients

Version:
$Revision: 1.41 $
See Also:
DiscoveryClient, Serialized Form

Inner classes inherited from class one.world.core.Component
Component.HandlerReference, Component.Importer
 
Constructor Summary
DiscoveryServer(Environment env)
          Create a new instance of DiscoveryServer.
 
Method Summary
 ComponentDescriptor getDescriptor()
          Get the component descriptor.
 
Methods inherited from class one.world.core.Component
declareExported, declareImported, equals, eventHandlers, getDescriptor, getEnvironment, getLinkedHandlers, getLinkedNumber, getTimer, hasEventHandler, hashCode, isFullyLinked, isLinked, isSealed, link, link, run, seal, unbox, undeclare, unlink, wrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryServer

public DiscoveryServer(Environment env)
Create a new instance of DiscoveryServer.
Parameters:
env - The environment for the new instance.
Method Detail

getDescriptor

public ComponentDescriptor getDescriptor()
Get the component descriptor.
Overrides:
getDescriptor in class Component
Following copied from class: one.world.core.Component
Returns:
The component descriptor for this component.


(C) Copyright 2001 UW CSE