Class TransferServerProvider
java.lang.Object
ecmwf.ecpds.master.transfer.TransferServerProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe Class TransferServerException. -
Constructor Summary
ConstructorsConstructorDescriptionTransferServerProvider(String caller, boolean checkCluster, Integer allocatedFileSystem, String transferGroup, String destination, MasterServer master, Host primaryHost) Instantiates a new transfer server provider. -
Method Summary
Modifier and TypeMethodDescriptionintGets the file system.Gets the transfer group.Gets the transfer servers.
-
Constructor Details
-
TransferServerProvider
public TransferServerProvider(String caller, boolean checkCluster, Integer allocatedFileSystem, String transferGroup, String destination, MasterServer master, Host primaryHost) throws TransferServerProvider.TransferServerException, DataBaseException Instantiates a new transfer server provider.- Parameters:
caller- the callercheckCluster- allow specifying if we should check if the transfer group is part of a cluster. If it is the case then we should allocate one DataMover among the DataMovers who belong to all the cluster. If a transfer group is provided as a parameter then this parameter is not used.allocatedFileSystem- the allocated file system. If it is set to -1 then it will not be used when getting the list of active DataMovers. If it is set to null then it will be automatically allocated.transferGroup- the transfer groupdestination- the destinationmaster- the masterprimaryHost- allow forcing the primary host- Throws:
TransferServerProvider.TransferServerException- the transfer server exceptionDataBaseException- the data base exception
-
-
Method Details
-
getFileSystem
public int getFileSystem()Gets the file system.- Returns:
- the file system
-
getTransferGroup
-
getTransferServers
Gets the transfer servers.- Returns:
- the transfer servers
-