Class HostBean
java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.transfer.HostBean
- All Implemented Interfaces:
OjbImplementedBean
,CollectionSizeBean
,Host
,ecmwf.web.model.ModelBean
The Class HostBean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the allowed user.void
cleanDataWindow
(ecmwf.web.model.users.User u) Clean data window.void
decreasePriorityWithinDestination
(Destination d, int step) Decrease priority within destination.void
Delete allowed user.boolean
Equals.boolean
Equals.long
Gets the acquisition frequency.Gets the acquisition time.boolean
Gets the active.protected Collection
<EcUser> Gets the added ec users.List
<ecmwf.web.util.bean.StringPair> Gets the all networks.Gets the allowed users.boolean
Gets the automatic location.long
Gets the band width.Gets the bean interface name.Gets the change log list.boolean
getCheck()
Gets the check.Gets the check filename.long
Gets the check frequency.Gets the check time.int
Gets the collection size.Gets the comment.Gets the completions.int
Gets the connections.getData()
Gets the data.Gets the data transfers today.protected Collection
<Destination> Gets the decreased priorities.protected Collection
<EcUser> Gets the deleted ec users.Gets the destinations.getDir()
Gets the dir.long
Gets the duration.Gets the ec user.Gets the EC user name.Gets the filter name.Gets the formatted acquisition frequency.Gets the formatted band width.double
Gets the formatted band width in M bits per seconds.Gets the formatted check frequency.Gets the formatted duration.Gets the formatted last output.Gets the formatted retry frequency.Gets the formatted sent.getHost()
Gets the host.getId()
Gets the id.protected Collection
<Destination> Gets the increased priorities.Gets the javascript.Gets the last output.Gets the latitude.getLogin()
Gets the login.Gets the longitude.boolean
Gets the mail on error.boolean
Gets the mail on success.int
Gets the max connections.getName()
Gets the name.Gets the network code.Gets the network name.Gets the nick name.boolean
Gets the notify once.Gets the ojb implementation.getOutput
(ecmwf.web.model.users.User u) Gets the output.Gets the passwd.protected int
Gets the priority change step.Gets the properties.getReport
(ecmwf.web.model.users.User u) Gets the report.Gets the report.int
Gets the retry count.int
Gets the retry frequency.long
getSent()
Gets the sent.Gets the transfer group.Gets the transfer group name.Gets the transfer method.Gets the transfer method name.Gets the transfer module names.getType()
Gets the type.ecmwf.web.model.users.User
getUser()
Gets the user.Gets the user mail.boolean
getValid()
Gets the valid.int
hashCode()
Hash code.void
increasePriorityWithinDestination
(Destination d, int step) Increase priority within destination.void
resetTransferStatistics
(ecmwf.web.model.users.User u) Reset transfer statistics.void
setAcquisitionFrequency
(long i) Sets the acquisition frequency.void
Sets the acquisition frequency.void
setActive
(boolean b) Sets the active.void
setAutomaticLocation
(boolean b) Sets the automatic location.void
setCheck
(boolean b) Sets the check.void
Sets the check filename.void
setCheckFrequency
(long i) Sets the check frequency.void
setComment
(String s) Sets the comment.void
Sets the data.void
Sets the dir.void
Sets the EC user name.void
Sets the filter name.void
Sets the host.void
Sets the latitude.void
Sets the login.void
Sets the longitude.void
setMailOnError
(boolean b) Sets the mail on error.void
setMailOnSuccess
(boolean b) Sets the mail on success.void
setMaxConnections
(int i) Sets the max connections.void
Sets the name.void
Sets the network code.void
Sets the network name.void
Sets the nick name.void
setNotifyOnce
(boolean b) Sets the notify once.void
setOjbImplementation
(Object object) Sets the ojb implementation.void
Sets the passwd.void
setRetryCount
(int i) Sets the retry count.void
setRetryFrequency
(int i) Sets the retry frequency.void
Sets the transfer group.void
Sets the transfer group name.void
Sets the transfer method.void
Sets the transfer method name.void
Sets the type.void
setUser
(ecmwf.web.model.users.User user) Sets the user.void
Sets the user mail.toString()
To string.long
Transfer.Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ecmwf.web.model.ModelBean
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setId
-
Constructor Details
-
HostBean
Instantiates a new host bean.- Parameters:
user
- the userhost
- the host
-
HostBean
-
-
Method Details
-
setUser
-
getUser
-
getBeanInterfaceName
Gets the bean interface name.- Specified by:
getBeanInterfaceName
in interfaceecmwf.web.model.ModelBean
- Specified by:
getBeanInterfaceName
in classecmwf.web.dao.ModelBeanBase
-
getOjbImplementation
Gets the ojb implementation. Gets the ojb implementation.- Specified by:
getOjbImplementation
in interfaceHost
- Specified by:
getOjbImplementation
in interfaceOjbImplementedBean
- Returns:
- the ojb implementation
-
setOjbImplementation
Sets the ojb implementation.- Parameters:
object
- the new ojb implementation
-
getId
Gets the id.- Specified by:
getId
in interfaceecmwf.web.model.ModelBean
- Overrides:
getId
in classecmwf.web.dao.ModelBeanBase
-
getCollectionSize
public int getCollectionSize()Gets the collection size. Gets the collection size.- Specified by:
getCollectionSize
in interfaceCollectionSizeBean
- Returns:
- the collection size
-
getCheckTime
Gets the check time. Gets the check time.- Specified by:
getCheckTime
in interfaceHost
- Returns:
- the check time
-
getAcquisitionTime
-
getCheckFrequency
public long getCheckFrequency()Gets the check frequency. Gets the check frequency.- Specified by:
getCheckFrequency
in interfaceHost
- Returns:
- the check frequency
-
getFormattedCheckFrequency
Gets the formatted check frequency. Gets the formatted check frequency.- Specified by:
getFormattedCheckFrequency
in interfaceHost
- Returns:
- the formatted check frequency
-
getAcquisitionFrequency
public long getAcquisitionFrequency()Gets the acquisition frequency. Gets the acquisition frequency.- Specified by:
getAcquisitionFrequency
in interfaceHost
- Returns:
- the acquisition frequency
-
getFormattedAcquisitionFrequency
Gets the formatted acquisition frequency. Gets the formatted acquisition frequency.- Specified by:
getFormattedAcquisitionFrequency
in interfaceHost
- Returns:
- the formatted acquisition frequency
-
getValid
-
getCheck
-
getCheckFilename
Gets the check filename. Gets the check filename.- Specified by:
getCheckFilename
in interfaceHost
- Returns:
- the check filename
-
getMailOnSuccess
public boolean getMailOnSuccess()Gets the mail on success. Gets the mail on success.- Specified by:
getMailOnSuccess
in interfaceHost
- Returns:
- the mail on success
-
getMailOnError
public boolean getMailOnError()Gets the mail on error. Gets the mail on error.- Specified by:
getMailOnError
in interfaceHost
- Returns:
- the mail on error
-
getNotifyOnce
public boolean getNotifyOnce()Gets the notify once. Gets the notify once.- Specified by:
getNotifyOnce
in interfaceHost
- Returns:
- the notify once
-
getUserMail
Gets the user mail. Gets the user mail.- Specified by:
getUserMail
in interfaceHost
- Returns:
- the user mail
-
getActive
-
getComment
Gets the comment. Gets the comment.- Specified by:
getComment
in interfaceHost
- Returns:
- the comment
-
getConnections
public int getConnections()Gets the connections. Gets the connections.- Specified by:
getConnections
in interfaceHost
- Returns:
- the connections
-
getProperties
Gets the properties. Gets the properties.- Specified by:
getProperties
in interfaceHost
- Returns:
- the properties
-
getJavascript
Gets the javascript. Gets the javascript.- Specified by:
getJavascript
in interfaceHost
- Returns:
- the javascript
-
getData
-
getLastOutput
Gets the last output. Gets the last output.- Specified by:
getLastOutput
in interfaceHost
- Returns:
- the last output
-
getFormattedLastOutput
Gets the formatted last output. Gets the formatted last output.- Specified by:
getFormattedLastOutput
in interfaceHost
- Returns:
- the formatted last output
-
getEcUser
Gets the ec user. Gets the ec user.- Specified by:
getEcUser
in interfaceHost
- Returns:
- the ec user
- Throws:
EcUserException
- the ec user exception
-
getECUserName
Gets the EC user name. Gets the EC user name.- Specified by:
getECUserName
in interfaceHost
- Returns:
- the EC user name
-
getHost
-
getLogin
-
getMaxConnections
public int getMaxConnections()Gets the max connections. Gets the max connections.- Specified by:
getMaxConnections
in interfaceHost
- Returns:
- the max connections
-
getName
-
getPasswd
-
getRetryCount
public int getRetryCount()Gets the retry count. Gets the retry count.- Specified by:
getRetryCount
in interfaceHost
- Returns:
- the retry count
-
getRetryFrequency
public int getRetryFrequency()Gets the retry frequency. Gets the retry frequency.- Specified by:
getRetryFrequency
in interfaceHost
- Returns:
- the retry frequency
-
getFormattedRetryFrequency
Gets the formatted retry frequency. Gets the formatted retry frequency.- Specified by:
getFormattedRetryFrequency
in interfaceHost
- Returns:
- the formatted retry frequency
-
getTransferGroup
Gets the transfer group. Gets the transfer group.- Specified by:
getTransferGroup
in interfaceHost
- Returns:
- the transfer group
- Throws:
DataFileException
- the data file exception
-
getTransferGroupName
Gets the transfer group name. Gets the transfer group name.- Specified by:
getTransferGroupName
in interfaceHost
- Returns:
- the transfer group name
-
getTransferMethod
Gets the transfer method. Gets the transfer method.- Specified by:
getTransferMethod
in interfaceHost
- Returns:
- the transfer method
- Throws:
TransferException
- the transfer exception
-
getTransferMethodName
Gets the transfer method name. Gets the transfer method name.- Specified by:
getTransferMethodName
in interfaceHost
- Returns:
- the transfer method name
-
getDataTransfersToday
Gets the data transfers today. Gets the data transfers today.- Specified by:
getDataTransfersToday
in interfaceHost
- Returns:
- the data transfers today
- Throws:
TransferException
- the transfer exception
-
getAllowedUsers
Gets the allowed users. Gets the allowed users.- Specified by:
getAllowedUsers
in interfaceHost
- Returns:
- the allowed users
- Throws:
TransferException
- the transfer exception
-
setCheckFrequency
public void setCheckFrequency(long i) Sets the check frequency. Sets the check frequency.- Specified by:
setCheckFrequency
in interfaceHost
- Parameters:
i
- the new check frequency
-
setAcquisitionFrequency
public void setAcquisitionFrequency(long i) Sets the acquisition frequency. Sets the acquisition frequency.- Specified by:
setAcquisitionFrequency
in interfaceHost
- Parameters:
i
- the new acquisition frequency
-
setCheck
-
setCheckFilename
Sets the check filename. Sets the check filename.- Specified by:
setCheckFilename
in interfaceHost
- Parameters:
s
- the new check filename
-
setMailOnSuccess
public void setMailOnSuccess(boolean b) Sets the mail on success. Sets the mail on success.- Specified by:
setMailOnSuccess
in interfaceHost
- Parameters:
b
- the new mail on success
-
setMailOnError
public void setMailOnError(boolean b) Sets the mail on error. Sets the mail on error.- Specified by:
setMailOnError
in interfaceHost
- Parameters:
b
- the new mail on error
-
setNotifyOnce
public void setNotifyOnce(boolean b) Sets the notify once. Sets the notify once.- Specified by:
setNotifyOnce
in interfaceHost
- Parameters:
b
- the new notify once
-
setUserMail
Sets the user mail. Sets the user mail.- Specified by:
setUserMail
in interfaceHost
- Parameters:
s
- the new user mail
-
setActive
-
setComment
Sets the comment. Sets the comment.- Specified by:
setComment
in interfaceHost
- Parameters:
s
- the new comment
-
setData
-
setECUserName
Sets the EC user name. Sets the EC user name.- Specified by:
setECUserName
in interfaceHost
- Parameters:
u
- the new EC user name
-
setHost
-
setLogin
-
setMaxConnections
public void setMaxConnections(int i) Sets the max connections. Sets the max connections.- Specified by:
setMaxConnections
in interfaceHost
- Parameters:
i
- the new max connections
-
setName
-
setPasswd
-
setRetryCount
public void setRetryCount(int i) Sets the retry count. Sets the retry count.- Specified by:
setRetryCount
in interfaceHost
- Parameters:
i
- the new retry count
-
setRetryFrequency
public void setRetryFrequency(int i) Sets the retry frequency. Sets the retry frequency.- Specified by:
setRetryFrequency
in interfaceHost
- Parameters:
i
- the new retry frequency
-
setTransferMethod
Sets the transfer method. Sets the transfer method.- Specified by:
setTransferMethod
in interfaceHost
- Parameters:
m
- the new transfer method
-
setTransferMethodName
Sets the transfer method name. Sets the transfer method name.- Specified by:
setTransferMethodName
in interfaceHost
- Parameters:
s
- the new transfer method name
-
setTransferGroup
Sets the transfer group. Sets the transfer group.- Specified by:
setTransferGroup
in interfaceHost
- Parameters:
m
- the new transfer group
-
setTransferGroupName
Sets the transfer group name. Sets the transfer group name.- Specified by:
setTransferGroupName
in interfaceHost
- Parameters:
s
- the new transfer group name
-
increasePriorityWithinDestination
Increase priority within destination. Increase priority within destination.- Specified by:
increasePriorityWithinDestination
in interfaceHost
- Parameters:
d
- the dstep
- the step
-
decreasePriorityWithinDestination
Decrease priority within destination. Decrease priority within destination.- Specified by:
decreasePriorityWithinDestination
in interfaceHost
- Parameters:
d
- the dstep
- the step
-
addAllowedUser
Adds the allowed user. Adds the allowed user.- Specified by:
addAllowedUser
in interfaceHost
- Parameters:
u
- the u
-
deleteAllowedUser
Delete allowed user. Delete allowed user.- Specified by:
deleteAllowedUser
in interfaceHost
- Parameters:
u
- the u
-
equals
-
equals
-
hashCode
-
toString
-
getDir
-
setDir
-
getDuration
public long getDuration()Gets the duration. Gets the duration.- Specified by:
getDuration
in interfaceHost
- Returns:
- the duration
-
getFormattedDuration
Gets the formatted duration. Gets the formatted duration.- Specified by:
getFormattedDuration
in interfaceHost
- Returns:
- the formatted duration
-
getSent
-
getFormattedSent
Gets the formatted sent. Gets the formatted sent.- Specified by:
getFormattedSent
in interfaceHost
- Returns:
- the formatted sent
-
getBandWidth
public long getBandWidth()Gets the band width. Gets the band width.- Specified by:
getBandWidth
in interfaceHost
- Returns:
- the band width
-
getFormattedBandWidth
Gets the formatted band width. Gets the formatted band width.- Specified by:
getFormattedBandWidth
in interfaceHost
- Returns:
- the formatted band width
-
getFormattedBandWidthInMBitsPerSeconds
public double getFormattedBandWidthInMBitsPerSeconds()Gets the formatted band width in M bits per seconds. Gets the formatted band width in M bits per seconds.- Specified by:
getFormattedBandWidthInMBitsPerSeconds
in interfaceHost
- Returns:
- the formatted band width in M bits per seconds
-
getDestinations
Gets the destinations. Gets the destinations.- Specified by:
getDestinations
in interfaceHost
- Returns:
- the destinations
- Throws:
TransferException
- the transfer exception
-
transfer
public long transfer(ecmwf.web.model.users.User u, byte[] bytes, String target, long remotePos) throws TransferException Transfer. Transfer.- Specified by:
transfer
in interfaceHost
- Parameters:
u
- the ubytes
- the bytestarget
- the targetremotePos
- the remote pos- Returns:
- the long
- Throws:
TransferException
- the transfer exception
-
getReport
Gets the report. Gets the report.- Specified by:
getReport
in interfaceHost
- Parameters:
u
- the u- Returns:
- the report
- Throws:
TransferException
- the transfer exception
-
getReport
Gets the report. Gets the report.- Specified by:
getReport
in interfaceHost
- Parameters:
u
- the uproxy
- the proxy- Returns:
- the report
- Throws:
TransferException
- the transfer exception
-
getOutput
Gets the output. Gets the output.- Specified by:
getOutput
in interfaceHost
- Parameters:
u
- the u- Returns:
- the output
- Throws:
TransferException
- the transfer exception
-
resetTransferStatistics
Reset transfer statistics. Reset transfer statistics.- Specified by:
resetTransferStatistics
in interfaceHost
- Parameters:
u
- the u- Throws:
TransferException
- the transfer exception
-
cleanDataWindow
Clean data window. Clean data window.- Specified by:
cleanDataWindow
in interfaceHost
- Parameters:
u
- the u- Throws:
TransferException
- the transfer exception
-
getChangeLogList
Gets the change log list. Gets the change log list.- Specified by:
getChangeLogList
in interfaceHost
- Returns:
- the change log list
- Throws:
TransferException
- the transfer exception
-
getAutomaticLocation
public boolean getAutomaticLocation()Gets the automatic location. Gets the automatic location.- Specified by:
getAutomaticLocation
in interfaceHost
- Returns:
- the automatic location
-
setAutomaticLocation
public void setAutomaticLocation(boolean b) Sets the automatic location. Sets the automatic location.- Specified by:
setAutomaticLocation
in interfaceHost
- Parameters:
b
- the new automatic location
-
getLatitude
Gets the latitude. Gets the latitude.- Specified by:
getLatitude
in interfaceHost
- Returns:
- the latitude
-
setLatitude
Sets the latitude. Sets the latitude.- Specified by:
setLatitude
in interfaceHost
- Parameters:
f
- the new latitude
-
getLongitude
Gets the longitude. Gets the longitude.- Specified by:
getLongitude
in interfaceHost
- Returns:
- the longitude
-
setLongitude
Sets the longitude. Sets the longitude.- Specified by:
setLongitude
in interfaceHost
- Parameters:
f
- the new longitude
-
getNickName
Gets the nick name. Gets the nick name.- Specified by:
getNickName
in interfaceHost
- Returns:
- the nick name
-
setNickName
Sets the nick name. Sets the nick name.- Specified by:
setNickName
in interfaceHost
- Parameters:
s
- the new nick name
-
getType
-
setType
-
setAcquisitionFrequency
Sets the acquisition frequency.- Parameters:
s
- the new acquisition frequency
-
getFilterName
Gets the filter name. Gets the filter name.- Specified by:
getFilterName
in interfaceHost
- Returns:
- the filter name
-
setFilterName
Sets the filter name. Sets the filter name.- Specified by:
setFilterName
in interfaceHost
- Parameters:
s
- the new filter name
-
getNetworkName
Gets the network name. Gets the network name.- Specified by:
getNetworkName
in interfaceHost
- Returns:
- the network name
-
getAllNetworks
Gets the all networks. Gets the all networks.- Specified by:
getAllNetworks
in interfaceHost
- Returns:
- the all networks
-
getTransferModuleNames
Gets the transfer module names. Gets the transfer module names.- Specified by:
getTransferModuleNames
in interfaceHost
- Returns:
- the transfer module names
- Throws:
TransferException
- the transfer exception
-
setNetworkName
Sets the network name. Sets the network name.- Specified by:
setNetworkName
in interfaceHost
- Parameters:
s
- the new network name
-
getNetworkCode
Gets the network code. Gets the network code.- Specified by:
getNetworkCode
in interfaceHost
- Returns:
- the network code
-
setNetworkCode
Sets the network code. Sets the network code.- Specified by:
setNetworkCode
in interfaceHost
- Parameters:
s
- the new network code
-
getIncreasedPriorities
Gets the increased priorities.- Returns:
- the increased priorities
-
getDecreasedPriorities
Gets the decreased priorities.- Returns:
- the decreased priorities
-
getPriorityChangeStep
protected int getPriorityChangeStep()Gets the priority change step.- Returns:
- the priority change step
-
getAddedEcUsers
-
getDeletedEcUsers
Gets the deleted ec users.- Returns:
- the deleted ec users
-
getCompletions
Gets the completions. Gets the completions.- Specified by:
getCompletions
in interfaceHost
- Returns:
- the completions
-