one.toys
Class RemoteReceiver

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

public final class RemoteReceiver
extends Component

Receives and logs remote events.

Usage:

     RemoteReceiver [name] [local]
 

The name is the name to receive remote events as; the default is "receiver". If the optional local flag is "true", the handler will be exported as a localized event handler rather than through the discovery service.

Imported and Exported Event Handlers

Exported event handlers:

main
Handles environment events.

Imported event handlers:

request
The environment request handler.

Version:
$Revision: 1.4 $
See Also:
RemoteSender, one.world.rep, Serialized Form

Inner classes inherited from class one.world.core.Component
Component.HandlerReference, Component.Importer
 
Constructor Summary
RemoteReceiver(Environment env, Tuple descriptor)
          Create a new instance of RemoteReceiver.
 
Method Summary
 ComponentDescriptor getDescriptor()
          Get the component descriptor.
static void init(Environment env, Object closure)
          Initialize the event receiver.
 
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

RemoteReceiver

public RemoteReceiver(Environment env,
                      Tuple descriptor)
Create a new instance of RemoteReceiver.
Parameters:
env - The environment for the new instance.
descriptor - A descriptor for the exported logging handler.
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.

init

public static void init(Environment env,
                        Object closure)
Initialize the event receiver.
Parameters:
env - The environment to run in.
closure - The closure should be an array of strings. The The optional first argument is the name for the exported event handler. The optional second argument should be "true" if the handler is to be exported as a localized resource.


(C) Copyright 2001 UW CSE