one.world.binding
Class BindingResponse

java.lang.Object
  |
  +--one.world.core.Tuple
        |
        +--one.world.core.Event
              |
              +--one.world.binding.BindingResponse
All Implemented Interfaces:
Cloneable, Serializable

public class BindingResponse
extends Event

Implementation of a binding response. Binding responses are used to return the bound resource and lease resulting from a successful binding request.

Version:
$Revision: 1.12 $
See Also:
BindingRequest, Serialized Form

Field Summary
 Tuple descriptor
          The descriptor for the resource that has been bound.
 long duration
          The initial lease duration for the lease controlling the binding.
 EventHandler lease
          The event handler for the lease that controls the binding.
 EventHandler resource
          The event handler for the bound resource.
 
Fields inherited from class one.world.core.Event
closure, source
 
Fields inherited from class one.world.core.Tuple
CLOSURE, id, ID, META_DATA, metaData, SOURCE
 
Constructor Summary
BindingResponse()
          Create a new, empty binding response.
BindingResponse(EventHandler source, Object closure, Tuple descriptor, EventHandler resource, EventHandler lease, long duration)
          Create a new binding response.
 
Method Summary
 void validate()
          Validate this binding response.
 
Methods inherited from class one.world.core.Tuple
clone, containsNonSymbolicHandler, equals, fields, get, getMetaData, getType, hasField, hashCode, hasMetaData, remove, set, setMetaData, toString, wrap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

descriptor

public Tuple descriptor
The descriptor for the resource that has been bound.

resource

public EventHandler resource
The event handler for the bound resource.

lease

public EventHandler lease
The event handler for the lease that controls the binding.

duration

public long duration
The initial lease duration for the lease controlling the binding.
See Also:
Duration
Constructor Detail

BindingResponse

public BindingResponse()
Create a new, empty binding response.

BindingResponse

public BindingResponse(EventHandler source,
                       Object closure,
                       Tuple descriptor,
                       EventHandler resource,
                       EventHandler lease,
                       long duration)
Create a new binding response.
Parameters:
source - The source for the new binding response.
closure - The closure for the new binding response.
descriptor - The descriptor for the new binding response.
resource - The resource's event handler for the new binding response.
lease - The lease's event handler for the new binding response.
duration - The duration of the lease for the new binding response.
Method Detail

validate

public void validate()
              throws TupleException
Validate this binding response.
Overrides:
validate in class Event
Following copied from class: one.world.core.Tuple
Throws:
TupleException - Signals that the tuple is either malformed (i.e., does not conform to the tuple specification) or invalid (i.e., does not conform to the semantic constraints of its type).
See Also:
MalformedTupleException, InvalidTupleException, Type.validate(Class)


(C) Copyright 2001 UW CSE