Package omero.cmd.graphs
Class DiskUsageI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.cmd.Request
-
- omero.cmd.DiskUsage
-
- omero.cmd.graphs.DiskUsageI
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,ome.services.util.ReadOnlyStatus.IsAware,IRequest
@Deprecated public class DiskUsageI extends DiskUsage implements IRequest, ome.services.util.ReadOnlyStatus.IsAware
Deprecated.will be removed in OMERO 5.4, useDiskUsage2insteadCalculate the disk usage entailed by the given objects.- Since:
- 5.1.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class omero.cmd.DiskUsage
__ids, classes, objects, serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description DiskUsageI(ome.io.nio.PixelsService pixelsService, ome.io.nio.ThumbnailService thumbnailService, ome.services.graphs.GraphPathBean graphPathBean)Deprecated.Construct a disk usage request.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbuildResponse(int step, java.lang.Object object)Deprecated.Post-transaction chance to map from the return value ofIRequest.step(int)to aResponseobject.voidfinish()Deprecated.Method within the transaction boundaries after all processing has occurred.com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>getCallContext()Deprecated.Returns the desired call context for this request.ResponsegetResponse()Deprecated.Returns the current response value.voidinit(Helper helper)Deprecated.Method called within the transaction boundaries before any processing occurs.booleanisReadOnly(ome.services.util.ReadOnlyStatus readOnly)Deprecated.DiskUsageResponsestep(int step)Deprecated.Single uncancellable action which will be performed by this IRequest.-
Methods inherited from class omero.cmd.DiskUsage
__readImpl, __writeImpl, clone, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId
-
-
-
-
Constructor Detail
-
DiskUsageI
public DiskUsageI(ome.io.nio.PixelsService pixelsService, ome.io.nio.ThumbnailService thumbnailService, ome.services.graphs.GraphPathBean graphPathBean)Deprecated.Construct a disk usage request.- Parameters:
pixelsService- the pixels servicethumbnailService- the thumbnail servicegraphPathBean- the graph path bean
-
-
Method Detail
-
getCallContext
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getCallContext()
Deprecated.Description copied from interface:IRequestReturns the desired call context for this request. Some request implementations will require "omero.group":"-1" for example and will hard-code that value. Others may permit users to pass in the desired values which will be merged into the staticMapas desired.- Specified by:
getCallContextin interfaceIRequest- Returns:
- the call context for this request
-
init
public void init(Helper helper)
Deprecated.Description copied from interface:IRequestMethod called within the transaction boundaries before any processing occurs. Implementations must properly initialize the "step" field of theStatusobject by callingHelper.setSteps(int). This count will define how many times theIRequest.step(int)method will be called. TheHelperinstance passed in contains those resources needed by IRequests to interact with data and should be stored for later use.
-
step
public DiskUsageResponse step(int step) throws HandleI.Cancel
Deprecated.Description copied from interface:IRequestSingle uncancellable action which will be performed by this IRequest. The return value can be an ome.model object that is attached to the current thread and transaction. After processing and detachment from the transaction, the object will be passed toIRequest.buildResponse(int, Object)for conversion and storage.- Specified by:
stepin interfaceIRequest- Parameters:
step- the step number- Returns:
- an object to be used in building the response
- Throws:
HandleI.Cancel- if this request is cancelled
-
finish
public void finish()
Deprecated.Description copied from interface:IRequestMethod within the transaction boundaries after all processing has occurred. A thrownHandleI.Cancelwill still rollback the current transaction.
-
buildResponse
public void buildResponse(int step, java.lang.Object object)Deprecated.Description copied from interface:IRequestPost-transaction chance to map from the return value ofIRequest.step(int)to aResponseobject.- Specified by:
buildResponsein interfaceIRequest- Parameters:
step- the step numberobject- an object to be used in building the response
-
getResponse
public Response getResponse()
Deprecated.Description copied from interface:IRequestReturns the current response value. This method should be protected by synchronization where necessary, and should never raise an exception. It is also guaranteed to be called so that any state cleanup that is necessary can take place here.- Specified by:
getResponsein interfaceIRequest- Returns:
- the response to this request
-
isReadOnly
public boolean isReadOnly(ome.services.util.ReadOnlyStatus readOnly)
Deprecated.- Specified by:
isReadOnlyin interfaceome.services.util.ReadOnlyStatus.IsAware
-
-