|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--one.world.core.Tuple
|
+--one.world.rep.RemoteDescriptor
Implementation of a remote export descriptor. This descriptor, used in a
BindingRequest, includes an event handler to
export and the descriptor tuple under which it is to be exported.
The type of the descriptor tuple determines how the event handler will be exported.
null, the event handler will be
exported anonymously. It will be accessible only via a generated
unique ID.Name, the event handler
will be exported with the given name at the local host and
port.Query, the event handler
is registered for reverse discovery: Events passing
through the discovery service will be compared to the query, and
delivered to the event handler if it matches. If the
snoop flag is true, then this resource
will not be considered when counting matches for the purpose of
anycast or sending UnknownResourceExceptions.
| Field Summary | |
Tuple |
descriptor
The tuple to use for the event handler's descriptor. |
EventHandler |
handler
The event handler to export to REP. |
boolean |
snoop
If this flag is true, exports for reverse disovery will not consume events. |
| Fields inherited from class one.world.core.Tuple |
CLOSURE, id, ID, META_DATA, metaData, SOURCE |
| Constructor Summary | |
RemoteDescriptor()
Constructs a new, empty remote export descriptor. |
|
RemoteDescriptor(EventHandler handler)
Constructs a new anonymous event handler descriptor. |
|
RemoteDescriptor(EventHandler handler,
Query query,
boolean snoop)
Constructs a new event handler descriptor with the specified event handler, query, and snoop flag. |
|
RemoteDescriptor(EventHandler handler,
String name)
Constructs a new named event handler descriptor with the specified event handler and name. |
|
RemoteDescriptor(EventHandler handler,
Tuple descriptor)
Constructs a new event handler descriptor with the specified event handler and tuple descriptor. |
|
| Method Summary | |
String |
toString()
Returns a string representing this remote descriptor. |
void |
validate()
Validates this remote export descriptor. |
| Methods inherited from class one.world.core.Tuple |
clone, containsNonSymbolicHandler, equals, fields, get, getMetaData, getType, hasField, hashCode, hasMetaData, remove, set, setMetaData, wrap |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public EventHandler handler
public Tuple descriptor
public boolean snoop
| Constructor Detail |
public RemoteDescriptor()
public RemoteDescriptor(EventHandler handler)
null.handler - The handler to export.
public RemoteDescriptor(EventHandler handler,
String name)
Name
tuple.handler - The handler to export to REP.name - The name to assign to the event handler.
public RemoteDescriptor(EventHandler handler,
Tuple descriptor)
handler - The handler to export to REP.descriptor - The descriptor to assign to the event handler.
public RemoteDescriptor(EventHandler handler,
Query query,
boolean snoop)
handler - The handler to export to REP.query - The query to use for reverse discovery.snoop - true if this should not consume
events.| Method Detail |
public void validate()
throws TupleException
validate in class Tupleone.world.core.TupleTupleException - 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).MalformedTupleException,
InvalidTupleException,
Type.validate(Class)public String toString()
toString in class Tupleone.world.core.Tuple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||