Interface ManagementInterface
- All Superinterfaces:
Remote
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Constant DESTINATION_STATE_CLOSING.static final intThe Constant DESTINATION_STATE_JAMMED.static final intThe Constant DESTINATION_STATE_OFFLINE.static final intThe Constant DESTINATION_STATE_ONHOLD.static final intThe Constant DESTINATION_STATE_ONLINE.static final intThe Constant DESTINATION_STATE_OPENING. -
Method Summary
Modifier and TypeMethodDescriptionvoidapprovePortalSubscriber(ECpdsSession session, PortalSubscriber sub) Activates a PortalSubscriber and sends the credentials email to the subscriber.voidcleanDataWindow(ECpdsSession session, Host host) Clean the data window host.cloneHost(ECpdsSession session, String hostName) Clone a host without associating it to any destination.voidcloseECpdsSession(ECpdsSession session, boolean expired) Close ecpds session.voidcloseIncomingConnection(ECpdsSession session, String id) Close an incoming connection.computeFilterEfficiency(ECpdsSession session, String destinationName, String email, String filter, long date, boolean includeStdby, String pattern) Compute filter efficiency.copyDestination(ECpdsSession session, String fromDestination, String toDestination, String label, boolean copySharedHost) Copy destination.copyHost(ECpdsSession session, String destinationName, String hostName) Copy host.byte[]Exec.execDirScript(ECpdsSession session, Host host, String script) Execute a Directory script on the DataMover for the given host and return the result as a GZIPped input stream.voidexportDestination(ECpdsSession session, String targetMaster, String fromDestination, String toDestinationName, boolean copySharedHost) Export destination.fetchUrlContent(ECpdsSession session, Host host, String source, int maxBytes) Fetch the raw content of a remote URL/path via the host's configured ECtrans module on the DataMover.Gets the contacts.Gets the destination caches.getDestinationLastFailedTransfer(String destinationName) Gets the destination last failed transfer.getDestinationLastTransfer(String destinationName) Gets the destination last transfer.getDestinationNamesForContact(List<Map.Entry<String, String>> emailPattern, boolean caseSensitive) Get the destination names which have the provided email address in their contacts!getDestinationSchedulerCache(String destinationName) Gets the destination scheduler cache.intgetDestinationSize(String destinationName) Gets the destination size.getDestinationStartDate(String destinationName) Gets the destination start date.getDestinationStatus(String destinationName) Gets the destination status.Returns a snapshot of the current in-flight download counts for all data movers and all volumes.Gets the ecpds session.getHostReport(ECpdsSession session, Host proxyHost, Host host) Gets the host report.getMonitorManager(String destinationName) Gets the monitor manager.List<long[]> getMoverAvailability(String moverName, int hours) Returns availability snapshots for the given DataMover from the database.getMoverReport(ECpdsSession session, Host proxyHost) Gets the mover report.getMoverVolumeUsage(String moverName) Gets a snapshot of per-volume disk usage for one or all DataMovers.getOutput(ECpdsSession session, Host host) Gets the host output.intgetPendingDataTransfersCount(String destinationName) Gets the pending data transfers count.getPortalSubscribersByUser(ECpdsSession session, String inuId) Gets all PortalSubscribers for a given IncomingUser.getReport(ECpdsSession session, Host host) Gets the report.getReport(ECpdsSession session, TransferServer server) Gets the report.longgetRetrieved(long dataFileId) Gets the retrieved.getTransferServerName(long dataFileId) Gets the transfer server name.getVolumeUsage(String groupName) Gets a snapshot of volume disk usage for one or all transfer groups.voidholdAllDestinations(ECpdsSession session, boolean graceful) Hold all destinations.holdDestination(ECpdsSession session, String destinationName, boolean graceful) Hold destination.insertPortalSubscriber(ECpdsSession session, String inuId, String email, String name, String iso) Creates a new PortalSubscriber for the given IncomingUser with the specified attributes.voidinterruptAcquisition(ECpdsSession session, Host host) Interrupt a running acquisition thread for the given Host and immediately restart it.booleaninterruptDataTransferRetrieval(ECpdsSession session, long id) Interrupt data transfer retrieval.voidinvalidatePortalSessionsForUser(ECpdsSession session, String user) Invalidate all portal session cookies for a data user on all movers.booleanisAcquisitionRunning(ECpdsSession session, Host host) Check whether an acquisition thread is currently running for the given Host.voidForces the contacts cache to reload on next access (e.g. after a metadata import).voidremoveCategory(ECpdsSession session, Category category) Removes the category.voidremoveDataFile(ECpdsSession session, DataFile file) Removes the data file.voidremoveDataTransfer(ECpdsSession session, DataTransfer transfer) Removes the data transfer.voidremoveDestination(ECpdsSession session, String destinationName) Removes the destination.voidremoveDestination(ECpdsSession session, String destinationName, boolean cleanOnly, boolean removeAll) Removes the destination.voidremoveECtransModule(ECpdsSession session, ECtransModule module) Removes the ectrans module.voidremoveHost(ECpdsSession session, Host host) Removes the host.voidremoveIncomingPolicy(ECpdsSession session, IncomingPolicy policy) Removes the IncomingPolicy.voidremoveIncomingUser(ECpdsSession session, IncomingUser user) Removes the IncomingUser.voidremovePortalSubscriber(ECpdsSession session, PortalSubscriber sub) Removes a PortalSubscriber permanently.voidremoveTransferGroup(ECpdsSession session, TransferGroup group) Removes the transfer group.voidremoveTransferMethod(ECpdsSession session, TransferMethod method) Removes the transfer method.voidremoveTransferServer(ECpdsSession session, TransferServer server) Removes the transfer server.voidremoveUrl(ECpdsSession session, Url url) Removes the url.voidremoveWebUser(ECpdsSession session, WebUser user) Removes the web user.voidresendDataTransferEvents(String root, DataTransferEventRequest[] dataTransferEventRequests) Resend data transfer events.voidresetTransferScheduleDate(ECpdsSession session, long id) Reset transfer schedule date.voidresetTransferStatistics(ECpdsSession session, Host host) Reset the host stats.resolveDirText(ECpdsSession session, Host host, String text) Resolve all static placeholder tokens in a plain-text Directory field and return the resolved text.voidrestartAllDestinations(ECpdsSession session, boolean graceful) Restart all destinations.restartDestination(ECpdsSession session, String destinationName, boolean graceful) Restart destination.voidsaveWebUser(ECpdsSession session, WebUser webUser) Creates the web user.voidshutdown(ECpdsSession session, boolean graceful, boolean restart) Shutdown.voidshutdownTransferServer(ECpdsSession session, TransferServer server, boolean graceful, boolean restart) Shutdown transfer server.longtransfer(ECpdsSession session, byte[] bytes, Host host, String target, long remotePosn) Transfer.booleantransferStatusUpdateAllowed(long id, String code) Transfer status update allowed.voidtriggerAcquisition(ECpdsSession session, Host host) Trigger acquisition for the given Host immediately by resetting its acquisition time.voidupdateExpiryTime(ECpdsSession session, long id, Timestamp timetamp) Update expiry time.voidupdateFileMonitoringValue(ECpdsSession session, MonitoringValue value) Update file monitoring value.updateHost(ECpdsSession session, Host host) Update host.voidupdatePortalSubscriber(ECpdsSession session, PortalSubscriber sub) Updates a PortalSubscriber.voidupdateTransferMonitoringValue(ECpdsSession session, MonitoringValue value) Update transfer monitoring value.voidupdateTransferPriority(ECpdsSession session, long id, int priority) Update transfer priority.booleanupdateTransferStatus(ECpdsSession session, long id, String code) Update transfer status.
-
Field Details
-
DESTINATION_STATE_ONLINE
static final int DESTINATION_STATE_ONLINEThe Constant DESTINATION_STATE_ONLINE.- See Also:
-
DESTINATION_STATE_OPENING
static final int DESTINATION_STATE_OPENINGThe Constant DESTINATION_STATE_OPENING.- See Also:
-
DESTINATION_STATE_CLOSING
static final int DESTINATION_STATE_CLOSINGThe Constant DESTINATION_STATE_CLOSING.- See Also:
-
DESTINATION_STATE_OFFLINE
static final int DESTINATION_STATE_OFFLINEThe Constant DESTINATION_STATE_OFFLINE.- See Also:
-
DESTINATION_STATE_JAMMED
static final int DESTINATION_STATE_JAMMEDThe Constant DESTINATION_STATE_JAMMED.- See Also:
-
DESTINATION_STATE_ONHOLD
static final int DESTINATION_STATE_ONHOLDThe Constant DESTINATION_STATE_ONHOLD.- See Also:
-
-
Method Details
-
getDestinationNamesForContact
List<String> getDestinationNamesForContact(List<Map.Entry<String, String>> emailPattern, boolean caseSensitive) throws IOExceptionGet the destination names which have the provided email address in their contacts!- Parameters:
emailPattern- the email patterncaseSensitive- is it case sensitive- Returns:
- the destination names
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getContacts
Gets the contacts.- Returns:
- the contacts
- Throws:
MasterException- the master exceptionIOException- Signals that an I/O exception has occurred.
-
refreshContactsCache
Forces the contacts cache to reload on next access (e.g. after a metadata import).- Throws:
RemoteException- the remote exception
-
getDestinationCaches
Map<String, DestinationCache> getDestinationCaches() throws MonitorException, MasterException, DataBaseException, RemoteExceptionGets the destination caches.- Returns:
- the destination caches
- Throws:
MonitorException- the monitor exceptionMasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
getMonitorManager
MonitorManager getMonitorManager(String destinationName) throws MonitorException, MasterException, RemoteException Gets the monitor manager.- Parameters:
destinationName- the destination name- Returns:
- the monitor manager
- Throws:
MonitorException- the monitor exceptionMasterException- the master exceptionRemoteException- the remote exception
-
getDestinationStatus
String getDestinationStatus(String destinationName) throws MasterException, DataBaseException, RemoteException Gets the destination status.- Parameters:
destinationName- the Destination name- Returns:
- the destination status
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
getDestinationSize
Gets the destination size.- Parameters:
destinationName- the Destination name- Returns:
- the destination size
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getDestinationStartDate
Gets the destination start date.- Parameters:
destinationName- the Destination name- Returns:
- the destination start date
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getPendingDataTransfersCount
Gets the pending data transfers count.- Parameters:
destinationName- the destination name- Returns:
- the pending data transfers count
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getDestinationLastTransfer
DataTransfer getDestinationLastTransfer(String destinationName) throws MasterException, RemoteException Gets the destination last transfer.- Parameters:
destinationName- the Destination name- Returns:
- the destination last transfer
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getDestinationLastFailedTransfer
DataTransfer getDestinationLastFailedTransfer(String destinationName) throws MasterException, RemoteException Gets the destination last failed transfer.- Parameters:
destinationName- the Destination name- Returns:
- the destination last failed transfer
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getRetrieved
Gets the retrieved.- Parameters:
dataFileId- the data file id- Returns:
- the retrieved
- Throws:
DataBaseException- the data base exceptionRemoteException- the remote exception
-
getTransferServerName
Gets the transfer server name.- Parameters:
dataFileId- the data file id- Returns:
- the transfer server name
- Throws:
DataBaseException- the data base exceptionRemoteException- the remote exception
-
getECpdsSession
ECpdsSession getECpdsSession(String user, String password, String host, String agent, String comment) throws MasterException, DataBaseException, RemoteException Gets the ecpds session.- Parameters:
user- the userpassword- the passwordhost- the hostagent- the agentcomment- the comment- Returns:
- the ecpds session
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
saveWebUser
void saveWebUser(ECpdsSession session, WebUser webUser) throws MasterException, DataBaseException, RemoteException Creates the web user.- Parameters:
session- the sessionwebUser- the web user- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
copyDestination
DestinationCache copyDestination(ECpdsSession session, String fromDestination, String toDestination, String label, boolean copySharedHost) throws MasterException, DataBaseException, RemoteException Copy destination.- Parameters:
session- the sessionfromDestination- the from destinationtoDestination- the to destinationlabel- the labelcopySharedHost- the copy shared host- Returns:
- the destination cache
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
copyHost
DestinationCache copyHost(ECpdsSession session, String destinationName, String hostName) throws MasterException, DataBaseException, RemoteException Copy host.- Parameters:
session- the sessiondestinationName- the destination namehostName- the host name- Returns:
- the destination cache
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
cloneHost
String cloneHost(ECpdsSession session, String hostName) throws MasterException, DataBaseException, RemoteException Clone a host without associating it to any destination.- Parameters:
session- the sessionhostName- the host name- Returns:
- the cloned host name
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
exportDestination
void exportDestination(ECpdsSession session, String targetMaster, String fromDestination, String toDestinationName, boolean copySharedHost) throws MasterException, DataBaseException, RemoteException Export destination.- Parameters:
session- the sessiontargetMaster- the target masterfromDestination- the from destinationcopySharedHost- the copy shared host- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
closeECpdsSession
Close ecpds session.- Parameters:
session- the sessionexpired- the expired- Throws:
RemoteException- the remote exception
-
closeIncomingConnection
Close an incoming connection.- Parameters:
session- the sessionid- the id- Throws:
IOException- Signals that an I/O exception has occurred.RemoteException- the remote exception
-
invalidatePortalSessionsForUser
Invalidate all portal session cookies for a data user on all movers. Forces re-authentication immediately when the user's Portal Service mode or password changes.- Parameters:
session- the sessionuser- the data user login name- Throws:
RemoteException- the remote exception
-
restartDestination
DestinationSchedulerCache restartDestination(ECpdsSession session, String destinationName, boolean graceful) throws MasterException, RemoteException, DataBaseException Restart destination.- Parameters:
session- the sessiondestinationName- the destination namegraceful- the graceful- Returns:
- the destination scheduler cache
- Throws:
MasterException- the master exceptionRemoteException- the remote exceptionDataBaseException- the data base exception
-
restartAllDestinations
void restartAllDestinations(ECpdsSession session, boolean graceful) throws MasterException, RemoteException Restart all destinations.- Parameters:
session- the sessiongraceful- the graceful- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
shutdownTransferServer
void shutdownTransferServer(ECpdsSession session, TransferServer server, boolean graceful, boolean restart) throws MasterException, RemoteException Shutdown transfer server.- Parameters:
session- the sessionserver- the servergraceful- the gracefulrestart- the restart- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
holdDestination
DestinationSchedulerCache holdDestination(ECpdsSession session, String destinationName, boolean graceful) throws MasterException, RemoteException, DataBaseException Hold destination.- Parameters:
session- the sessiondestinationName- the Destination namegraceful- the graceful- Returns:
- the destination scheduler cache
- Throws:
MasterException- the master exceptionRemoteException- the remote exceptionDataBaseException- the data base exception
-
holdAllDestinations
void holdAllDestinations(ECpdsSession session, boolean graceful) throws MasterException, RemoteException Hold all destinations.- Parameters:
session- the sessiongraceful- the graceful- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
transferStatusUpdateAllowed
Transfer status update allowed.- Parameters:
id- the idcode- the code- Returns:
- true, if successful
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
updateTransferStatus
boolean updateTransferStatus(ECpdsSession session, long id, String code) throws MasterException, RemoteException Update transfer status.- Parameters:
session- the sessionid- the idcode- the code- Returns:
- true, if successful
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
resetTransferScheduleDate
void resetTransferScheduleDate(ECpdsSession session, long id) throws MasterException, DataBaseException, RemoteException Reset transfer schedule date.- Parameters:
session- the sessionid- the id- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
updateTransferPriority
void updateTransferPriority(ECpdsSession session, long id, int priority) throws MasterException, DataBaseException, RemoteException Update transfer priority.- Parameters:
session- the sessionid- the idpriority- the priority- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
updateExpiryTime
void updateExpiryTime(ECpdsSession session, long id, Timestamp timetamp) throws MasterException, DataBaseException, RemoteException Update expiry time.- Parameters:
session- the sessionid- the idtimetamp- the timetamp- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
transfer
long transfer(ECpdsSession session, byte[] bytes, Host host, String target, long remotePosn) throws MasterException, DataBaseException, IOException Transfer.- Parameters:
session- the sessionbytes- the byteshost- the hosttarget- the targetremotePosn- the remote posn- Returns:
- the long
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
getMoverReport
String getMoverReport(ECpdsSession session, Host proxyHost) throws MasterException, DataBaseException, IOException Gets the mover report.- Parameters:
session- the sessionproxyHost- the proxy host- Returns:
- the mover report
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
getHostReport
String getHostReport(ECpdsSession session, Host proxyHost, Host host) throws MasterException, DataBaseException, IOException Gets the host report.- Parameters:
session- the sessionproxyHost- the proxy hosthost- the host- Returns:
- the host report
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
cleanDataWindow
void cleanDataWindow(ECpdsSession session, Host host) throws MasterException, DataBaseException, IOException Clean the data window host.- Parameters:
session- the sessionhost- the host- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
resetTransferStatistics
void resetTransferStatistics(ECpdsSession session, Host host) throws MasterException, DataBaseException, IOException Reset the host stats.- Parameters:
session- the sessionhost- the host- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
getReport
String getReport(ECpdsSession session, Host host) throws MasterException, DataBaseException, IOException Gets the report.- Parameters:
session- the sessionhost- the host- Returns:
- the report
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
getOutput
RemoteInputStream getOutput(ECpdsSession session, Host host) throws MasterException, DataBaseException, IOException Gets the host output.- Parameters:
session- the sessionhost- the host- Returns:
- the report
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
isAcquisitionRunning
Check whether an acquisition thread is currently running for the given Host.- Parameters:
session- the sessionhost- the host- Returns:
- true if an acquisition thread for this host is active right now
- Throws:
RemoteException
-
triggerAcquisition
Trigger acquisition for the given Host immediately by resetting its acquisition time. Does nothing if the host is already running.- Parameters:
session- the sessionhost- the host- Throws:
RemoteException- the remote exception
-
execDirScript
String execDirScript(ECpdsSession session, Host host, String script) throws MasterException, DataBaseException, IOException Execute a Directory script on the DataMover for the given host and return the result as a GZIPped input stream. This replicates the production acquisition path: the script is sent to a DataMover in the host's transfer group.- Parameters:
session- the sessionhost- the hostscript- the script content, optionally prefixed with "python:" or "js:" to select the language- Returns:
- a GZIPped input stream containing the script output (a newline-separated list of paths or a URL)
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionIOException- Signals that an I/O exception has occurred.
-
resolveDirText
String resolveDirText(ECpdsSession session, Host host, String text) throws MasterException, DataBaseException, IOException Resolve all static placeholder tokens in a plain-text Directory field and return the resolved text. Substitutes $host[...], $transferMethod[...], $ectransModule[...] and $date/$dirdate tokens using the current date. Does not require a DataMover — runs entirely on the MasterServer.- Parameters:
session- the sessionhost- the host whose fields are used for substitutiontext- the plain-text directory content- Returns:
- the resolved text
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionIOException
-
fetchUrlContent
String fetchUrlContent(ECpdsSession session, Host host, String source, int maxBytes) throws MasterException, DataBaseException, IOException Fetch the raw content of a remote URL/path via the host's configured ECtrans module on the DataMover.- Parameters:
session- the sessionhost- the host whose ECtrans module is usedsource- the remote URL or path to retrievemaxBytes- maximum number of bytes to return- Returns:
- the content as a UTF-8 string (truncated if needed)
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionIOException- Signals that an I/O exception has occurred.
-
interruptAcquisition
Interrupt a running acquisition thread for the given Host and immediately restart it. If no acquisition is running the host output is still reset, triggering a fresh run on the next scheduler cycle.- Parameters:
session- the sessionhost- the host- Throws:
RemoteException- the remote exception
-
getReport
String getReport(ECpdsSession session, TransferServer server) throws MasterException, DataBaseException, IOException Gets the report.- Parameters:
session- the sessionserver- the server- Returns:
- the report
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exceptionIOException- Signals that an I/O exception has occurred.
-
updateHost
Host updateHost(ECpdsSession session, Host host) throws MasterException, DataBaseException, RemoteException Update host.- Parameters:
session- the sessionhost- the host- Returns:
- the host
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
updateTransferMonitoringValue
void updateTransferMonitoringValue(ECpdsSession session, MonitoringValue value) throws MasterException, DataBaseException, RemoteException Update transfer monitoring value.- Parameters:
session- the sessionvalue- the monitoring value- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
updateFileMonitoringValue
void updateFileMonitoringValue(ECpdsSession session, MonitoringValue value) throws MasterException, DataBaseException, RemoteException Update file monitoring value.- Parameters:
session- the sessionvalue- the monitoring value- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
shutdown
void shutdown(ECpdsSession session, boolean graceful, boolean restart) throws MasterException, RemoteException Shutdown.- Parameters:
session- the sessiongraceful- the gracefulrestart- the restart- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
removeTransferMethod
void removeTransferMethod(ECpdsSession session, TransferMethod method) throws MasterException, DataBaseException, RemoteException Removes the transfer method.- Parameters:
session- the sessionmethod- the method- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeECtransModule
void removeECtransModule(ECpdsSession session, ECtransModule module) throws MasterException, DataBaseException, RemoteException Removes the ectrans module.- Parameters:
session- the sessionmodule- the module- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeTransferGroup
void removeTransferGroup(ECpdsSession session, TransferGroup group) throws MasterException, DataBaseException, RemoteException Removes the transfer group.- Parameters:
session- the sessiongroup- the group- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeDestination
void removeDestination(ECpdsSession session, String destinationName) throws MasterException, DataBaseException, RemoteException Removes the destination.- Parameters:
session- the sessiondestinationName- the Destination name- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeDestination
void removeDestination(ECpdsSession session, String destinationName, boolean cleanOnly, boolean removeAll) throws MasterException, DataBaseException, RemoteException Removes the destination.- Parameters:
session- the sessiondestinationName- the Destination namecleanOnly- clean only and don't delete the DestinationremoveAll- remove all files or only deleted, expired, stopped and failed ones if clean only- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeTransferServer
void removeTransferServer(ECpdsSession session, TransferServer server) throws MasterException, DataBaseException, RemoteException Removes the transfer server.- Parameters:
session- the sessionserver- the server- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeHost
void removeHost(ECpdsSession session, Host host) throws MasterException, DataBaseException, RemoteException Removes the host.- Parameters:
session- the sessionhost- the host- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeIncomingUser
void removeIncomingUser(ECpdsSession session, IncomingUser user) throws MasterException, DataBaseException, RemoteException Removes the IncomingUser.- Parameters:
session- the sessionuser- the incoming user- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
getPortalSubscribersByUser
List<PortalSubscriber> getPortalSubscribersByUser(ECpdsSession session, String inuId) throws MasterException, DataBaseException, RemoteException Gets all PortalSubscribers for a given IncomingUser.- Parameters:
session- the sessioninuId- the incoming user id- Returns:
- the portal subscribers
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
updatePortalSubscriber
void updatePortalSubscriber(ECpdsSession session, PortalSubscriber sub) throws MasterException, DataBaseException, RemoteException Updates a PortalSubscriber.- Parameters:
session- the sessionsub- the portal subscriber- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
approvePortalSubscriber
void approvePortalSubscriber(ECpdsSession session, PortalSubscriber sub) throws MasterException, DataBaseException, RemoteException Activates a PortalSubscriber and sends the credentials email to the subscriber. This is the method to call when an administrator manually approves a pending subscriber. The subscriber's stored password is included in the email along with any extra text configured viaportal.registrationEmailExtraAccess.- Parameters:
session- the sessionsub- the portal subscriber to approve- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removePortalSubscriber
void removePortalSubscriber(ECpdsSession session, PortalSubscriber sub) throws MasterException, DataBaseException, RemoteException Removes a PortalSubscriber permanently.- Parameters:
session- the sessionsub- the portal subscriber- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
insertPortalSubscriber
String insertPortalSubscriber(ECpdsSession session, String inuId, String email, String name, String iso) throws MasterException, DataBaseException, RemoteException Creates a new PortalSubscriber for the given IncomingUser with the specified attributes. The subscriber is created in the active state (no email verification required) and a random password is generated and returned.- Parameters:
session- the sessioninuId- the IncomingUser login to associate the subscriber withemail- the subscriber email addressname- the subscriber display nameiso- the ISO 3166-1 alpha-2 country code (may be null or empty)- Returns:
- the generated plaintext password for the new subscriber
- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeIncomingPolicy
void removeIncomingPolicy(ECpdsSession session, IncomingPolicy policy) throws MasterException, DataBaseException, RemoteException Removes the IncomingPolicy.- Parameters:
session- the sessionpolicy- the policy- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeDataTransfer
void removeDataTransfer(ECpdsSession session, DataTransfer transfer) throws MasterException, DataBaseException, RemoteException Removes the data transfer.- Parameters:
session- the sessiontransfer- the transfer- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
interruptDataTransferRetrieval
boolean interruptDataTransferRetrieval(ECpdsSession session, long id) throws MasterException, RemoteException, DataBaseException Interrupt data transfer retrieval.- Parameters:
session- the sessionid- the id- Returns:
- true, if successful
- Throws:
MasterException- the master exceptionRemoteException- the remote exceptionDataBaseException- the data base exception
-
removeDataFile
void removeDataFile(ECpdsSession session, DataFile file) throws MasterException, DataBaseException, RemoteException Removes the data file.- Parameters:
session- the sessionfile- the file- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeWebUser
void removeWebUser(ECpdsSession session, WebUser user) throws MasterException, DataBaseException, RemoteException Removes the web user.- Parameters:
session- the sessionuser- the web user- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeCategory
void removeCategory(ECpdsSession session, Category category) throws MasterException, DataBaseException, RemoteException Removes the category.- Parameters:
session- the sessioncategory- the category- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
removeUrl
void removeUrl(ECpdsSession session, Url url) throws MasterException, DataBaseException, RemoteException Removes the url.- Parameters:
session- the sessionurl- the url- Throws:
MasterException- the master exceptionDataBaseException- the data base exceptionRemoteException- the remote exception
-
resendDataTransferEvents
void resendDataTransferEvents(String root, DataTransferEventRequest[] dataTransferEventRequests) throws RemoteException Resend data transfer events.- Parameters:
root- the rootdataTransferEventRequests- the data transfer event requests- Throws:
RemoteException- the remote exception
-
exec
byte[] exec(ECpdsSession session, Map<String, String> environment, byte[] request, String service) throws MasterException, IOExceptionExec.- Parameters:
session- the sessionenvironment- the environmentrequest- the requestservice- the service- Returns:
- the byte[]
- Throws:
MasterException- the master exceptionIOException- Signals that an I/O exception has occurred.RemoteException- the remote exception
-
getDestinationSchedulerCache
DestinationSchedulerCache getDestinationSchedulerCache(String destinationName) throws MasterException, RemoteException Gets the destination scheduler cache.- Parameters:
destinationName- the destination name- Returns:
- the destination scheduler cache
- Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
computeFilterEfficiency
String computeFilterEfficiency(ECpdsSession session, String destinationName, String email, String filter, long date, boolean includeStdby, String pattern) throws DataBaseException, MasterException, RemoteException Compute filter efficiency.- Parameters:
session- the sessiondestinationName- the destination nameemail- the emailfilter- the filterdate- the dateincludeStdby- the include stdbypattern- the pattern- Returns:
- the string
- Throws:
DataBaseException- the data base exceptionMasterException- the master exceptionRemoteException- the remote exception
-
getVolumeUsage
Gets a snapshot of volume disk usage for one or all transfer groups.Returns the most recently polled used and total bytes per volume index, as maintained by the background usage updater in
TransferServerProvider.WeightedAllocator. No DataMover RMI calls are made; the result comes from the in-memory cache only.- Parameters:
groupName- the transfer group name to query, ornullfor all registered groups- Returns:
- a map of group name to
long[volumeIndex][2]where[i][0]is used bytes and[i][1]is total bytes; nevernull; empty if no data has been collected yet - Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getMoverVolumeUsage
Gets a snapshot of per-volume disk usage for one or all DataMovers.Returns the most recently polled used and total bytes per volume index for each DataMover, as cached by the background usage updater. No DataMover RMI calls are made at query time.
- Parameters:
moverName- the DataMover name to query, ornullfor all DataMovers- Returns:
- a map of mover name to
long[2][volumeCount]where[0][i]is used bytes and[1][i]is total bytes for volumei; nevernull - Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getMoverAvailability
List<long[]> getMoverAvailability(String moverName, int hours) throws MasterException, RemoteException Returns availability snapshots for the given DataMover from the database.Each element is a
long[2]where[0]is the minute bucket in epoch-ms and[1]is1(mover was up) or0(mover was down) during that minute.- Parameters:
moverName- the data mover namehours- how many hours of history to return- Returns:
- time-ordered list of minute-bucket availability entries; never
null - Throws:
MasterException- the master exceptionRemoteException- the remote exception
-
getDownloadMetrics
Returns a snapshot of the current in-flight download counts for all data movers and all volumes.The map key is
"groupName.moverName"(e.g."group-04.bodh1ecpdmv-04"). The value is anint[]where indexiholds the current download count on volumei. Only movers with at least one recorded download event appear in the map.- Returns:
- a sorted snapshot of download counts per mover and volume; never
null - Throws:
MasterException- the master exceptionRemoteException- the remote exception
-