org.edg.data.reptor.info
Class ComputingElementInfo

java.lang.Object
  |
  +--org.edg.data.reptor.info.ComputingElementInfo

public class ComputingElementInfo
extends java.lang.Object

The ComputingElement class represents an EDG CE as stored in the Information Services - using only the information needed by the replica management services. This class is constructed by the InfoService interface. Currently it contains information about its close storage elements and the virtual organizations that may access it.

Version:
$Id: ComputingElementInfo.java,v 1.12 2003/06/24 17:54:08 pkunszt Exp $
Author:
Peter Kunszt, Heinz Stockinger
See Also:
InfoService

Nested Class Summary
 class ComputingElementInfo.StringComparator
           
 
Constructor Summary
ComputingElementInfo()
           
 
Method Summary
 java.lang.String[] getCloseSEs()
          Returns the close SE host names
 java.lang.String getID()
          Get the ID of the CE.
 java.lang.String getName()
          Get the string identifyer (name) of the CE.
 java.lang.String[] getVOs()
           
 boolean isCloseSE(java.lang.String seHost)
          Checks whether the given host is a close SE
 void setCloseSEs(java.lang.String[] se)
          Set the close SE host names.
 void setID(java.lang.String ce)
          Set the CE ID.
 void setName(java.lang.String name)
          Set the CE Name.
 void setVOs(java.lang.String[] vos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputingElementInfo

public ComputingElementInfo()
Method Detail

getCloseSEs

public java.lang.String[] getCloseSEs()
Returns the close SE host names

Returns:
the hosts of the SEs that are 'close' to the CE. (or null if the object was not constructed by the InfoServices yet.

isCloseSE

public boolean isCloseSE(java.lang.String seHost)
Checks whether the given host is a close SE

Returns:
true or false

getName

public java.lang.String getName()
Get the string identifyer (name) of the CE.

Returns:
the name or null if the StorageElement has not been initialized

getID

public java.lang.String getID()
Get the ID of the CE.

Returns:
the ID or null if the ComputingElement has not been initialized (i.e. was not constructed by the Info Services.)

getVOs

public java.lang.String[] getVOs()

setID

public void setID(java.lang.String ce)
Set the CE ID. This method is used by the Information Services that construct a Computing Element.

Parameters:
ce - The String identifyer of the CE.

setCloseSEs

public void setCloseSEs(java.lang.String[] se)
Set the close SE host names. This method is used by the Information Services that construct a Computing Element.

Parameters:
se - The list of SE hosts that are 'close' to the CE.

setName

public void setName(java.lang.String name)
Set the CE Name.

Parameters:
name - The Name of the CE.

setVOs

public void setVOs(java.lang.String[] vos)