package org.gcube.dataanalysis.dataminer.poolmanager.datamodel;

public class Host ***REMOVED***

  private String name;
  
  private Domain domain;

  public Host(String hostname) ***REMOVED***
	  this.setName(hostname);
  ***REMOVED***

  public Host() ***REMOVED***
	***REMOVED*** TODO Auto-generated constructor stub
***REMOVED***

public String getFullyQualifiedName() ***REMOVED***
    if(this.domain!=null && this.domain.getName()!=null)
      return this.getName()+"."+this.getDomain().getName();
    else
      return this.getName();
  ***REMOVED***
  
  public String getName() ***REMOVED***
    return name;
  ***REMOVED***

  public void setName(String name) ***REMOVED***
    this.name = name;
  ***REMOVED***

  public Domain getDomain() ***REMOVED***
    return domain;
  ***REMOVED***

  public void setDomain(Domain domain) ***REMOVED***
    this.domain = domain;
  ***REMOVED***
  
***REMOVED***  public String toString() ***REMOVED***
***REMOVED***    return this.name + "@" + this.domain;
***REMOVED***  ***REMOVED***
  
public String toString() ***REMOVED***
return this.name;
***REMOVED***

***REMOVED***
