org.edg.data.reptor.info
Class StorageElementInfo

java.lang.Object
  extended byorg.edg.data.reptor.info.StorageElementInfo

public class StorageElementInfo
extends java.lang.Object

The StorageElement class represents an EDG SE as stored in the Information Service. This class is constructed by the InfoService interface. It contains information about its local replica catalog, the virtual organizations that may write into it and the storage directories.

Version:
$Id: StorageElementInfo.java,v 1.28 2004/08/12 08:03:36 jamesc Exp $
Author:
Peter Kunszt, Erwin Laure, Heinz Stockinger
See Also:
InfoService

Field Summary
static java.lang.String DISK
           
static java.lang.String EDG_SE
           
static java.lang.String SRM1
           
 
Constructor Summary
StorageElementInfo(java.lang.String name, java.lang.String type, java.lang.String seHost, java.lang.String accessPoint, java.util.Iterator protocols, java.net.URL endpoint)
           
 
Method Summary
 void addVODirectory(java.lang.String vo, java.lang.String voDir)
           
 java.lang.String getAccessPoint()
          Get the access point if any
 java.lang.String getHost()
          Get the host of the SE.
 java.lang.String getName()
          Get the string identifyer (name) of the SE.
 java.net.URL getServiceEndpoint()
           
 java.lang.String getType()
           
 java.lang.String getVODirectory(java.lang.String vo)
          Return the VO directory for the given VO
 java.lang.String[] getVOs()
          Retrieve the Virtual Organizations known by this Storage Element.
 boolean hasVO(java.lang.String vo)
          Return true or false depending whether a given VO is recognized by the Storage Element.
 boolean isClassicSE()
           
 boolean isEdgSE()
           
 boolean isSRM()
           
 boolean isSupportedProtocol(java.lang.String protocol)
          Returns true if the Storage Element understands the given protocol.
 boolean isSupportedVO(java.lang.String vo)
           
 StorageResource makeStorageResource(Configuration config)
           
 void printInfo(InfoPrinter p)
           
 java.util.Iterator protocols()
          An Iterator over the accepted list of protocol names
 java.lang.String toString()
          Print contents into a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EDG_SE

public static final java.lang.String EDG_SE
See Also:
Constant Field Values

DISK

public static final java.lang.String DISK
See Also:
Constant Field Values

SRM1

public static final java.lang.String SRM1
See Also:
Constant Field Values
Constructor Detail

StorageElementInfo

public StorageElementInfo(java.lang.String name,
                          java.lang.String type,
                          java.lang.String seHost,
                          java.lang.String accessPoint,
                          java.util.Iterator protocols,
                          java.net.URL endpoint)
                   throws InfoServiceException
Method Detail

getName

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

Returns:
the name

getHost

public java.lang.String getHost()
Get the host of the SE.

Returns:
the host string.

getServiceEndpoint

public java.net.URL getServiceEndpoint()

getType

public java.lang.String getType()

getAccessPoint

public java.lang.String getAccessPoint()
Get the access point if any

Returns:
the mount path or null if the StorageElement has not been initialized or there is no mount path

protocols

public java.util.Iterator protocols()
An Iterator over the accepted list of protocol names

Returns:

getVOs

public java.lang.String[] getVOs()
Retrieve the Virtual Organizations known by this Storage Element.

Returns:
the array of VOs

hasVO

public boolean hasVO(java.lang.String vo)
Return true or false depending whether a given VO is recognized by the Storage Element.

Parameters:
vo - The string representation of the VO.
Returns:
true or false

isSupportedVO

public boolean isSupportedVO(java.lang.String vo)

getVODirectory

public java.lang.String getVODirectory(java.lang.String vo)
Return the VO directory for the given VO

Parameters:
vo -
Returns:
the VO directory

isSupportedProtocol

public boolean isSupportedProtocol(java.lang.String protocol)
Returns true if the Storage Element understands the given protocol.

Parameters:
protocol - the protocol identifier string
Returns:
true or false

addVODirectory

public void addVODirectory(java.lang.String vo,
                           java.lang.String voDir)

toString

public java.lang.String toString()
Print contents into a string.


isSRM

public boolean isSRM()

isEdgSE

public boolean isEdgSE()

isClassicSE

public boolean isClassicSE()

makeStorageResource

public StorageResource makeStorageResource(Configuration config)
                                    throws StorageResourceException
Throws:
StorageResourceException

printInfo

public void printInfo(InfoPrinter p)