storage-manager-trigger/src/main/java/org/gcube/contentmanager/storageserver/accounting/Report.java

32 lines
643 B
Java

package org.gcube.contentmanager.storageserver.accounting;
public interface Report {
/**
* Set generic properties of report
* @param resourceType
* @param consumerId
* @param resourceOwner
* @param resourceScope
* @return
*/
public void init(String consumerId, String resourceScope);
/**
* set start time of the operation
* @return
*/
public void timeUpdate();
/**
* Set end time of operation and other specific properties
* @return
*/
public void ultimate(String owner, String uri, String operation, String size, String filePath, String id);
/**
* send report
* @return
*/
public void send();
}