context.arch.discoverer
Class DiscovererDescription

java.lang.Object
  extended bycontext.arch.discoverer.DiscovererDescription

public class DiscovererDescription
extends java.lang.Object

This class keeps the information describing a discoverer

Author:
Agathe
See Also:
Discoverer

Field Summary
 boolean available
           
 
Constructor Summary
DiscovererDescription()
          Constructor for DiscovererDescription that takes no parameters
DiscovererDescription(java.lang.String dName, java.lang.String dHostname, int dPort)
          Generic constructor for DiscovererDescription that creates a new description with a name, port and hostname
 
Method Summary
 java.lang.String getHostname()
          Returns the discoverer hostname
 java.lang.String getName()
          Returns the discoverer name
 int getPort()
          Sets the discoverer port
 void isAvailable(long time)
           
 Error setDescription(DataObject data)
          Sets the discoverer description contained in a DataObject
 Error setHostname(DataObject data)
          Set the discoverer hostname contained in a DataObject
 void setHostname(java.lang.String discovererHostname)
          Sets the discoverer hostname
 Error setName(DataObject data)
          Set the discoverer name contained in a DataObject
 void setName(java.lang.String discovererName)
          Sets the discoverer name
 Error setPort(DataObject data)
          Set the discoverer port contained in a DataObject
 void setPort(int discovererPort)
          Sets the discoverer port
 java.lang.String toString()
          Returns a printable version of the discoverer description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

available

public boolean available
Constructor Detail

DiscovererDescription

public DiscovererDescription(java.lang.String dName,
                             java.lang.String dHostname,
                             int dPort)
Generic constructor for DiscovererDescription that creates a new description with a name, port and hostname

Parameters:
dName - The discoverer name
dHostname - The discoverer hostname
dPort - The discoverer port
See Also:
Discoverer

DiscovererDescription

public DiscovererDescription()
Constructor for DiscovererDescription that takes no parameters

Method Detail

setName

public void setName(java.lang.String discovererName)
Sets the discoverer name

Parameters:
discovererName - The discoverer name
See Also:
Discoverer

setName

public Error setName(DataObject data)
Set the discoverer name contained in a DataObject

Parameters:
data - The DataObject containing the name
Returns:
Error An error code
See Also:
Discoverer, DataObject

setHostname

public void setHostname(java.lang.String discovererHostname)
Sets the discoverer hostname

Parameters:
discovererHostname - The discoverer hostname
See Also:
Discoverer

setHostname

public Error setHostname(DataObject data)
Set the discoverer hostname contained in a DataObject

Parameters:
data - The DataObject containing the hostname
Returns:
Error An error code
See Also:
Discoverer, DataObject

setPort

public void setPort(int discovererPort)
Sets the discoverer port

See Also:
Discoverer

setPort

public Error setPort(DataObject data)
Set the discoverer port contained in a DataObject

Parameters:
data - The DataObject containing the port
Returns:
Error An error code
See Also:
Discoverer, DataObject

getName

public java.lang.String getName()
Returns the discoverer name

Returns:
String The discoverer name
See Also:
Discoverer

getHostname

public java.lang.String getHostname()
Returns the discoverer hostname

Returns:
String The discoverer hostname
See Also:
Discoverer

getPort

public int getPort()
Sets the discoverer port

Returns:
int The discoverer port
See Also:
Discoverer

toString

public java.lang.String toString()
Returns a printable version of the discoverer description

Returns:
String The string version of the discoverer description
See Also:
Discoverer

setDescription

public Error setDescription(DataObject data)
Sets the discoverer description contained in a DataObject

Parameters:
data - The DataObject containing the description
Returns:
Error The error code
See Also:
Discoverer

isAvailable

public void isAvailable(long time)