tapestry.ptr.api
Class RegisterHostAppReq

java.lang.Object
  |
  +--tapestry.ptr.api.RegisterHostAppReq
All Implemented Interfaces:
QueueElementIF

public class RegisterHostAppReq
extends Object
implements QueueElementIF

RegisterHostAppReq registers the name of an application that the local host is exporting to the rest of the system.

The application is added to a filter of all applications that the local host is exporting. The filter is exported to other nodes in the system through the use of host_heartbeats

Version:
$Id: RegisterHostAppReq.java,v 1.1.1.1 2004/03/26 19:57:10 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
HostInfo, HostHbStage

Field Summary
 String _name
          String representation of application that local node is exporting to the rest of the system.
 SinkIF sink
          Requestor sink to use to return the response.
 Object userData
          Requestor defined object to be returned in the response.
 
Constructor Summary
RegisterHostAppReq(String name, Object userData, SinkIF sink)
          Constructor: Creates a new RegisterHostAppReq.
 
Method Summary
 String getName()
          getName returns the name of the application that the local host is exporting.
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

public String _name
String representation of application that local node is exporting to the rest of the system. For example "storageserver". Note: case does not matter, but space, underscore, etc does.


userData

public Object userData
Requestor defined object to be returned in the response.


sink

public SinkIF sink
Requestor sink to use to return the response.

Constructor Detail

RegisterHostAppReq

public RegisterHostAppReq(String name,
                          Object userData,
                          SinkIF sink)
Constructor: Creates a new RegisterHostAppReq.

Method Detail

getName

public String getName()
getName returns the name of the application that the local host is exporting.

Returns:
name of application that local host is exporting.

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object