|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.reptor.info.StorageElementInfo
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.
InfoService
Field Summary | |
static int |
DISK
|
static int |
EDG_SE
|
static int |
NPROT
|
static int |
PROT_FILE
|
static int |
PROT_FTP
|
static int |
PROT_GRIDFTP
|
static int |
PROT_HTTP
|
static int |
PROT_HTTPS
|
static int |
PROT_RFIO
|
static int |
SRM1
|
Method Summary | |
java.lang.String |
getAccessPoint()
Get the access point if any |
static java.lang.String |
getAllTypes()
|
java.lang.String |
getDN()
Get the DN of the SE. |
java.lang.String |
getHost()
Get the host of the SE. |
java.lang.String |
getName()
Get the string identifyer (name) of the SE. |
java.lang.String[] |
getProtocols()
Return all protocols known to this Storage Element. |
java.lang.String |
getProtocolSchema(int prot)
|
java.net.URL |
getServiceEndpoint()
|
int |
getType()
|
static int |
getType(java.lang.String type)
|
java.lang.String |
getTypeAsString()
|
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. |
static java.lang.String |
protocolAsString(int i)
|
void |
setAccessPoint(java.lang.String accesspoint)
Set the SE Accesspoint. |
void |
setDN(java.lang.String dn)
Set the SE DN (Distinguished Name). |
void |
setHost(java.lang.String se)
Set the SE host. |
void |
setName(java.lang.String name)
Set the SE Name. |
void |
setProtocols(java.lang.String[] protocols)
Set the SE protocols. |
void |
setServiceEndpoint(java.net.URL serviceEndpoint)
|
void |
setType(int type)
|
void |
setType(java.lang.String type)
|
void |
setVO(java.lang.String vo)
Set a VO and its storage directory. |
void |
setVODirectory(java.lang.String vo,
java.lang.String voDir)
|
boolean |
talksProtocol(int protocol)
Returns true if the Storage Element understands the given protocol. |
boolean |
talksProtocol(java.lang.String protocol)
Returns true if the Storage Element understands the given protocol. |
java.lang.String |
toString()
Print contents into a string. |
static int |
translateProtocol(java.lang.String protocol)
|
static java.lang.String |
typeAsString(int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int EDG_SE
public static int DISK
public static int SRM1
public static int PROT_GRIDFTP
public static int PROT_FILE
public static int PROT_RFIO
public static int PROT_HTTP
public static int PROT_HTTPS
public static int PROT_FTP
public static int NPROT
Method Detail |
public java.lang.String getName()
public java.lang.String getAccessPoint()
public java.lang.String getDN()
public java.lang.String getHost()
public java.lang.String[] getVOs()
public boolean hasVO(java.lang.String vo)
vo
- The string representation of the VO.
public java.lang.String[] getProtocols()
public java.lang.String getProtocolSchema(int prot)
public java.lang.String getVODirectory(java.lang.String vo)
vo
-
public void setName(java.lang.String name)
name
- The Name of the SE.public void setAccessPoint(java.lang.String accesspoint)
accesspoint
- The path of the mount point.public void setDN(java.lang.String dn)
dn
- The DN of the SE.public void setHost(java.lang.String se)
se
- The host of the SE.public void setVO(java.lang.String vo)
vo
- the name of the VOpublic boolean talksProtocol(java.lang.String protocol)
protocol
- the protocol identifier string
public static int translateProtocol(java.lang.String protocol) throws UnknownProtocolException
UnknownProtocolException
public boolean talksProtocol(int protocol)
protocol
- the protocol identifier string
public void setProtocols(java.lang.String[] protocols) throws UnknownProtocolException
protocols
- The protocols for this SE
UnknownProtocolException
public void setVODirectory(java.lang.String vo, java.lang.String voDir)
public java.lang.String toString()
toString
in class java.lang.Object
public java.net.URL getServiceEndpoint()
public void setServiceEndpoint(java.net.URL serviceEndpoint)
public int getType()
public java.lang.String getTypeAsString()
public void setType(int type)
public void setType(java.lang.String type)
public static java.lang.String typeAsString(int i)
public static java.lang.String protocolAsString(int i)
public static int getType(java.lang.String type)
public static java.lang.String getAllTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |