Class FileServerType
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.site.classes.SiteData
-
- edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
-
- edu.isi.pegasus.planner.catalog.site.classes.FileServerType
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
FileServer
public abstract class FileServerType extends AbstractSiteData
An abstract class that describes a file server that can be used to stage data to and from a site.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileServerType.OPERATIONThe operations supported by the file server
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringmMountPointThe mount point for the server.protected FileServerType.OPERATIONmOperationThe operations supported by the file serverprotected ProfilesmProfilesThe profiles associated with the FileSystem.protected java.lang.StringmProtocolThe protocol used by the file server.protected java.lang.StringmURLPrefixThe URL prefix for the server.
-
Constructor Summary
Constructors Constructor Description FileServerType()The default constructor.FileServerType(java.lang.String protocol, java.lang.String urlPrefix, java.lang.String mountPoint)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProfile(Profile p)Adds a profile.java.lang.Objectclone()Returns the clone of the object.java.lang.StringgetMountPoint()Returns the mount pointjava.lang.StringgetProtocol()Returns protocol implemented by the file server.FileServerType.OPERATIONgetSupportedOperation()Returns the operation supported by the file serverjava.lang.StringgetURLPrefix()Returns the url prefix .voidsetMountPoint(java.lang.String point)Returns the mount point.voidsetProfiles(Profiles profiles)Sets the profiles associated with the file server.voidsetProtocol(java.lang.String protocol)Set the protocol implemented by the file server.voidsetSupportedOperation(FileServerType.OPERATION operation)The operation supported by the file servervoidsetURLPrefix(java.lang.String prefix)Sets the url prefix .-
Methods inherited from class edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
accept, toString, toXML, toXML, writeAttribute
-
-
-
-
Field Detail
-
mProtocol
protected java.lang.String mProtocol
The protocol used by the file server.
-
mURLPrefix
protected java.lang.String mURLPrefix
The URL prefix for the server.
-
mMountPoint
protected java.lang.String mMountPoint
The mount point for the server.
-
mProfiles
protected Profiles mProfiles
The profiles associated with the FileSystem.
-
mOperation
protected FileServerType.OPERATION mOperation
The operations supported by the file server
-
-
Constructor Detail
-
FileServerType
public FileServerType()
The default constructor.
-
FileServerType
public FileServerType(java.lang.String protocol, java.lang.String urlPrefix, java.lang.String mountPoint)Overloaded constructor.- Parameters:
protocol- protocol employed by the File Server.urlPrefix- the url prefixmountPoint- the mount point for the server.
-
-
Method Detail
-
setProtocol
public void setProtocol(java.lang.String protocol)
Set the protocol implemented by the file server.- Parameters:
protocol- the protocol
-
getProtocol
public java.lang.String getProtocol()
Returns protocol implemented by the file server.- Returns:
- protocol
-
setURLPrefix
public void setURLPrefix(java.lang.String prefix)
Sets the url prefix .- Parameters:
prefix- the url prefix
-
getURLPrefix
public java.lang.String getURLPrefix()
Returns the url prefix .- Returns:
- the url prefix
-
setMountPoint
public void setMountPoint(java.lang.String point)
Returns the mount point.- Parameters:
point- the mount point.
-
getMountPoint
public java.lang.String getMountPoint()
Returns the mount point- Returns:
- the mount point.
-
setSupportedOperation
public void setSupportedOperation(FileServerType.OPERATION operation)
The operation supported by the file server- Parameters:
operation- the supported operation
-
getSupportedOperation
public FileServerType.OPERATION getSupportedOperation()
Returns the operation supported by the file server- Returns:
- the supported operation
-
addProfile
public void addProfile(Profile p)
Adds a profile.- Parameters:
p- the profile to be added
-
setProfiles
public void setProfiles(Profiles profiles)
Sets the profiles associated with the file server.- Parameters:
profiles- the profiles.
-
clone
public java.lang.Object clone()
Returns the clone of the object.- Overrides:
clonein classAbstractSiteData- Returns:
- the clone
-
-