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 TypeMethodDescriptionvoidAdds the allowed user.voidcleanDataWindow(ecmwf.web.model.users.User u) Clean data window.voiddecreasePriorityWithinDestination(Destination d, int step) Decrease priority within destination.voidDelete allowed user.booleanEquals.booleanEquals.longGets the acquisition frequency.Gets the acquisition time.booleanGets the active.protected Collection<EcUser> Gets the added ec users.List<ecmwf.web.util.bean.StringPair> Gets the all networks.Gets the allowed users.booleanGets the automatic location.longGets the band width.Gets the bean interface name.Gets the change log list.booleangetCheck()Gets the check.Gets the check filename.longGets the check frequency.Gets the check time.intGets the collection size.Gets the comment.Gets the completions.intGets 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.longGets 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.doubleGets 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.booleanGets the mail on error.booleanGets the mail on success.intGets the max connections.getName()Gets the name.Gets the network code.Gets the network name.Gets the nick name.booleanGets the notify once.Gets the ojb implementation.getOutput(ecmwf.web.model.users.User u) Gets the output.Gets the passwd.protected intGets the priority change step.Gets the properties.getReport(ecmwf.web.model.users.User u) Gets the report.Gets the report.intGets the retry count.intGets the retry frequency.longgetSent()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.UsergetUser()Gets the user.Gets the user mail.booleangetValid()Gets the valid.inthashCode()Hash code.voidincreasePriorityWithinDestination(Destination d, int step) Increase priority within destination.voidresetTransferStatistics(ecmwf.web.model.users.User u) Reset transfer statistics.voidsetAcquisitionFrequency(long i) Sets the acquisition frequency.voidSets the acquisition frequency.voidsetActive(boolean b) Sets the active.voidsetAutomaticLocation(boolean b) Sets the automatic location.voidsetCheck(boolean b) Sets the check.voidSets the check filename.voidsetCheckFrequency(long i) Sets the check frequency.voidsetComment(String s) Sets the comment.voidSets the data.voidSets the dir.voidSets the EC user name.voidSets the filter name.voidSets the host.voidSets the latitude.voidSets the login.voidSets the longitude.voidsetMailOnError(boolean b) Sets the mail on error.voidsetMailOnSuccess(boolean b) Sets the mail on success.voidsetMaxConnections(int i) Sets the max connections.voidSets the name.voidSets the network code.voidSets the network name.voidSets the nick name.voidsetNotifyOnce(boolean b) Sets the notify once.voidsetOjbImplementation(Object object) Sets the ojb implementation.voidSets the passwd.voidsetRetryCount(int i) Sets the retry count.voidsetRetryFrequency(int i) Sets the retry frequency.voidSets the transfer group.voidSets the transfer group name.voidSets the transfer method.voidSets the transfer method name.voidSets the type.voidsetUser(ecmwf.web.model.users.User user) Sets the user.voidSets the user mail.toString()To string.longTransfer.Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getBeanInterfaceNamein interfaceecmwf.web.model.ModelBean- Specified by:
getBeanInterfaceNamein classecmwf.web.dao.ModelBeanBase
-
getOjbImplementation
Gets the ojb implementation. Gets the ojb implementation.- Specified by:
getOjbImplementationin interfaceHost- Specified by:
getOjbImplementationin interfaceOjbImplementedBean- Returns:
- the ojb implementation
-
setOjbImplementation
Sets the ojb implementation.- Parameters:
object- the new ojb implementation
-
getId
Gets the id.- Specified by:
getIdin interfaceecmwf.web.model.ModelBean- Overrides:
getIdin classecmwf.web.dao.ModelBeanBase
-
getCollectionSize
public int getCollectionSize()Gets the collection size. Gets the collection size.- Specified by:
getCollectionSizein interfaceCollectionSizeBean- Returns:
- the collection size
-
getCheckTime
Gets the check time. Gets the check time.- Specified by:
getCheckTimein interfaceHost- Returns:
- the check time
-
getAcquisitionTime
-
getCheckFrequency
public long getCheckFrequency()Gets the check frequency. Gets the check frequency.- Specified by:
getCheckFrequencyin interfaceHost- Returns:
- the check frequency
-
getFormattedCheckFrequency
Gets the formatted check frequency. Gets the formatted check frequency.- Specified by:
getFormattedCheckFrequencyin interfaceHost- Returns:
- the formatted check frequency
-
getAcquisitionFrequency
public long getAcquisitionFrequency()Gets the acquisition frequency. Gets the acquisition frequency.- Specified by:
getAcquisitionFrequencyin interfaceHost- Returns:
- the acquisition frequency
-
getFormattedAcquisitionFrequency
Gets the formatted acquisition frequency. Gets the formatted acquisition frequency.- Specified by:
getFormattedAcquisitionFrequencyin interfaceHost- Returns:
- the formatted acquisition frequency
-
getValid
-
getCheck
-
getCheckFilename
Gets the check filename. Gets the check filename.- Specified by:
getCheckFilenamein interfaceHost- Returns:
- the check filename
-
getMailOnSuccess
public boolean getMailOnSuccess()Gets the mail on success. Gets the mail on success.- Specified by:
getMailOnSuccessin interfaceHost- Returns:
- the mail on success
-
getMailOnError
public boolean getMailOnError()Gets the mail on error. Gets the mail on error.- Specified by:
getMailOnErrorin interfaceHost- Returns:
- the mail on error
-
getNotifyOnce
public boolean getNotifyOnce()Gets the notify once. Gets the notify once.- Specified by:
getNotifyOncein interfaceHost- Returns:
- the notify once
-
getUserMail
Gets the user mail. Gets the user mail.- Specified by:
getUserMailin interfaceHost- Returns:
- the user mail
-
getActive
-
getComment
Gets the comment. Gets the comment.- Specified by:
getCommentin interfaceHost- Returns:
- the comment
-
getConnections
public int getConnections()Gets the connections. Gets the connections.- Specified by:
getConnectionsin interfaceHost- Returns:
- the connections
-
getProperties
Gets the properties. Gets the properties.- Specified by:
getPropertiesin interfaceHost- Returns:
- the properties
-
getJavascript
Gets the javascript. Gets the javascript.- Specified by:
getJavascriptin interfaceHost- Returns:
- the javascript
-
getData
-
getLastOutput
Gets the last output. Gets the last output.- Specified by:
getLastOutputin interfaceHost- Returns:
- the last output
-
getFormattedLastOutput
Gets the formatted last output. Gets the formatted last output.- Specified by:
getFormattedLastOutputin interfaceHost- Returns:
- the formatted last output
-
getEcUser
Gets the ec user. Gets the ec user.- Specified by:
getEcUserin interfaceHost- Returns:
- the ec user
- Throws:
EcUserException- the ec user exception
-
getECUserName
Gets the EC user name. Gets the EC user name.- Specified by:
getECUserNamein interfaceHost- Returns:
- the EC user name
-
getHost
-
getLogin
-
getMaxConnections
public int getMaxConnections()Gets the max connections. Gets the max connections.- Specified by:
getMaxConnectionsin interfaceHost- Returns:
- the max connections
-
getName
-
getPasswd
-
getRetryCount
public int getRetryCount()Gets the retry count. Gets the retry count.- Specified by:
getRetryCountin interfaceHost- Returns:
- the retry count
-
getRetryFrequency
public int getRetryFrequency()Gets the retry frequency. Gets the retry frequency.- Specified by:
getRetryFrequencyin interfaceHost- Returns:
- the retry frequency
-
getFormattedRetryFrequency
Gets the formatted retry frequency. Gets the formatted retry frequency.- Specified by:
getFormattedRetryFrequencyin interfaceHost- Returns:
- the formatted retry frequency
-
getTransferGroup
Gets the transfer group. Gets the transfer group.- Specified by:
getTransferGroupin interfaceHost- Returns:
- the transfer group
- Throws:
DataFileException- the data file exception
-
getTransferGroupName
Gets the transfer group name. Gets the transfer group name.- Specified by:
getTransferGroupNamein interfaceHost- Returns:
- the transfer group name
-
getTransferMethod
Gets the transfer method. Gets the transfer method.- Specified by:
getTransferMethodin interfaceHost- Returns:
- the transfer method
- Throws:
TransferException- the transfer exception
-
getTransferMethodName
Gets the transfer method name. Gets the transfer method name.- Specified by:
getTransferMethodNamein interfaceHost- Returns:
- the transfer method name
-
getDataTransfersToday
Gets the data transfers today. Gets the data transfers today.- Specified by:
getDataTransfersTodayin interfaceHost- Returns:
- the data transfers today
- Throws:
TransferException- the transfer exception
-
getAllowedUsers
Gets the allowed users. Gets the allowed users.- Specified by:
getAllowedUsersin 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:
setCheckFrequencyin interfaceHost- Parameters:
i- the new check frequency
-
setAcquisitionFrequency
public void setAcquisitionFrequency(long i) Sets the acquisition frequency. Sets the acquisition frequency.- Specified by:
setAcquisitionFrequencyin interfaceHost- Parameters:
i- the new acquisition frequency
-
setCheck
-
setCheckFilename
Sets the check filename. Sets the check filename.- Specified by:
setCheckFilenamein 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:
setMailOnSuccessin 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:
setMailOnErrorin interfaceHost- Parameters:
b- the new mail on error
-
setNotifyOnce
public void setNotifyOnce(boolean b) Sets the notify once. Sets the notify once.- Specified by:
setNotifyOncein interfaceHost- Parameters:
b- the new notify once
-
setUserMail
Sets the user mail. Sets the user mail.- Specified by:
setUserMailin interfaceHost- Parameters:
s- the new user mail
-
setActive
-
setComment
Sets the comment. Sets the comment.- Specified by:
setCommentin interfaceHost- Parameters:
s- the new comment
-
setData
-
setECUserName
Sets the EC user name. Sets the EC user name.- Specified by:
setECUserNamein 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:
setMaxConnectionsin 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:
setRetryCountin interfaceHost- Parameters:
i- the new retry count
-
setRetryFrequency
public void setRetryFrequency(int i) Sets the retry frequency. Sets the retry frequency.- Specified by:
setRetryFrequencyin interfaceHost- Parameters:
i- the new retry frequency
-
setTransferMethod
Sets the transfer method. Sets the transfer method.- Specified by:
setTransferMethodin interfaceHost- Parameters:
m- the new transfer method
-
setTransferMethodName
Sets the transfer method name. Sets the transfer method name.- Specified by:
setTransferMethodNamein interfaceHost- Parameters:
s- the new transfer method name
-
setTransferGroup
Sets the transfer group. Sets the transfer group.- Specified by:
setTransferGroupin interfaceHost- Parameters:
m- the new transfer group
-
setTransferGroupName
Sets the transfer group name. Sets the transfer group name.- Specified by:
setTransferGroupNamein interfaceHost- Parameters:
s- the new transfer group name
-
increasePriorityWithinDestination
Increase priority within destination. Increase priority within destination.- Specified by:
increasePriorityWithinDestinationin interfaceHost- Parameters:
d- the dstep- the step
-
decreasePriorityWithinDestination
Decrease priority within destination. Decrease priority within destination.- Specified by:
decreasePriorityWithinDestinationin interfaceHost- Parameters:
d- the dstep- the step
-
addAllowedUser
Adds the allowed user. Adds the allowed user.- Specified by:
addAllowedUserin interfaceHost- Parameters:
u- the u
-
deleteAllowedUser
Delete allowed user. Delete allowed user.- Specified by:
deleteAllowedUserin interfaceHost- Parameters:
u- the u
-
equals
-
equals
-
hashCode
-
toString
-
getDir
-
setDir
-
getDuration
public long getDuration()Gets the duration. Gets the duration.- Specified by:
getDurationin interfaceHost- Returns:
- the duration
-
getFormattedDuration
Gets the formatted duration. Gets the formatted duration.- Specified by:
getFormattedDurationin interfaceHost- Returns:
- the formatted duration
-
getSent
-
getFormattedSent
Gets the formatted sent. Gets the formatted sent.- Specified by:
getFormattedSentin interfaceHost- Returns:
- the formatted sent
-
getBandWidth
public long getBandWidth()Gets the band width. Gets the band width.- Specified by:
getBandWidthin interfaceHost- Returns:
- the band width
-
getFormattedBandWidth
Gets the formatted band width. Gets the formatted band width.- Specified by:
getFormattedBandWidthin 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:
getFormattedBandWidthInMBitsPerSecondsin interfaceHost- Returns:
- the formatted band width in M bits per seconds
-
getDestinations
Gets the destinations. Gets the destinations.- Specified by:
getDestinationsin 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:
transferin 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:
getReportin interfaceHost- Parameters:
u- the u- Returns:
- the report
- Throws:
TransferException- the transfer exception
-
getReport
Gets the report. Gets the report.- Specified by:
getReportin interfaceHost- Parameters:
u- the uproxy- the proxy- Returns:
- the report
- Throws:
TransferException- the transfer exception
-
getOutput
Gets the output. Gets the output.- Specified by:
getOutputin interfaceHost- Parameters:
u- the u- Returns:
- the output
- Throws:
TransferException- the transfer exception
-
resetTransferStatistics
Reset transfer statistics. Reset transfer statistics.- Specified by:
resetTransferStatisticsin interfaceHost- Parameters:
u- the u- Throws:
TransferException- the transfer exception
-
cleanDataWindow
Clean data window. Clean data window.- Specified by:
cleanDataWindowin interfaceHost- Parameters:
u- the u- Throws:
TransferException- the transfer exception
-
getChangeLogList
Gets the change log list. Gets the change log list.- Specified by:
getChangeLogListin 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:
getAutomaticLocationin interfaceHost- Returns:
- the automatic location
-
setAutomaticLocation
public void setAutomaticLocation(boolean b) Sets the automatic location. Sets the automatic location.- Specified by:
setAutomaticLocationin interfaceHost- Parameters:
b- the new automatic location
-
getLatitude
Gets the latitude. Gets the latitude.- Specified by:
getLatitudein interfaceHost- Returns:
- the latitude
-
setLatitude
Sets the latitude. Sets the latitude.- Specified by:
setLatitudein interfaceHost- Parameters:
f- the new latitude
-
getLongitude
Gets the longitude. Gets the longitude.- Specified by:
getLongitudein interfaceHost- Returns:
- the longitude
-
setLongitude
Sets the longitude. Sets the longitude.- Specified by:
setLongitudein interfaceHost- Parameters:
f- the new longitude
-
getNickName
Gets the nick name. Gets the nick name.- Specified by:
getNickNamein interfaceHost- Returns:
- the nick name
-
setNickName
Sets the nick name. Sets the nick name.- Specified by:
setNickNamein 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:
getFilterNamein interfaceHost- Returns:
- the filter name
-
setFilterName
Sets the filter name. Sets the filter name.- Specified by:
setFilterNamein interfaceHost- Parameters:
s- the new filter name
-
getNetworkName
Gets the network name. Gets the network name.- Specified by:
getNetworkNamein interfaceHost- Returns:
- the network name
-
getAllNetworks
Gets the all networks. Gets the all networks.- Specified by:
getAllNetworksin interfaceHost- Returns:
- the all networks
-
getTransferModuleNames
Gets the transfer module names. Gets the transfer module names.- Specified by:
getTransferModuleNamesin interfaceHost- Returns:
- the transfer module names
- Throws:
TransferException- the transfer exception
-
setNetworkName
Sets the network name. Sets the network name.- Specified by:
setNetworkNamein interfaceHost- Parameters:
s- the new network name
-
getNetworkCode
Gets the network code. Gets the network code.- Specified by:
getNetworkCodein interfaceHost- Returns:
- the network code
-
setNetworkCode
Sets the network code. Sets the network code.- Specified by:
setNetworkCodein 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:
getCompletionsin interfaceHost- Returns:
- the completions
-