Package com.sas.lsaf.content.utilization
Interface ResourceUtilizationService
public interface ResourceUtilizationService
The service that provides resource utilization information such as total repository size and total user workspace
size. You can also get resource information for child containers at a specific path. Note: Only the current user can
access resource utilization for child items within their workspace.
- Since:
- 2.5
-
Method Summary
Modifier and TypeMethodDescriptionGets resource utilization information for child folders with calculated sizes for all children of the specified path in a shared workspace.Gets summary utilization information for each user's existing transient workspaces with existing sessions, if any exist.Gets utilization information for each user's workspace.longGets the current user's repository user area size (in bytes).longGets the current user's total shared workspace size (in bytes).longGets the current user's transient workspace size (in bytes).Gets utilization information for the current user's transient workspaces with existing sessions, if any exist.longReturn the current user's total workspace size (in bytes).Gets resource utilization information for child containers with calculated sizes.longGets the total size (in bytes) of the repository.longGets the total size (in bytes) of all shared workspaces.longGets the total size (in bytes) of all transient workspaces with an existing session, if any exist.longGets the total size (in bytes) of all user workspaces.Gets resource utilization information for child folders with calculated sizes for children of the specified path in a shared workspace that the current user has access to and for which a link for the shared workspace exists for the current user.Gets resource utilization information for child folders with calculated sizes for the current user's workspace.
-
Method Details
-
getAllTransientWorkspaceUtilization
List<ResourceUtilizationSummaryTransientWorkspaceInfo> getAllTransientWorkspaceUtilization()Gets summary utilization information for each user's existing transient workspaces with existing sessions, if any exist.- Returns:
- summary utilization information for each user's existing transient workspaces with existing sessions, if any exist.
-
getCurrentUserTransientWorkspaceUtilization
List<ResourceUtilizationTransientWorkspaceInfo> getCurrentUserTransientWorkspaceUtilization()Gets utilization information for the current user's transient workspaces with existing sessions, if any exist.- Returns:
- utilization information for the current user's transient workspaces with existing sessions, if any exist.
-
getAllUserWorkspaceUtilization
List<ResourceUtilizationWorkspaceInfo> getAllUserWorkspaceUtilization()Gets utilization information for each user's workspace.- Returns:
- utilization information for each user's workspace.
-
getTotalRepositorySize
long getTotalRepositorySize()Gets the total size (in bytes) of the repository. Size can include the contents of the recycle bin.- Returns:
- The total size (in bytes) of the repository.
-
getTotalUserWorkspaceSize
long getTotalUserWorkspaceSize()Gets the total size (in bytes) of all user workspaces.- Returns:
- The total size (in bytes) of all user workspaces.
-
getTotalTransientWorkspaceSize
long getTotalTransientWorkspaceSize()Gets the total size (in bytes) of all transient workspaces with an existing session, if any exist.- Returns:
- The total size (in bytes) of all transient workspaces with an existing session, if any exist.
-
getCurrentUserWorkspaceSize
long getCurrentUserWorkspaceSize()Return the current user's total workspace size (in bytes).- Returns:
- the current user's total workspace size (in bytes).
-
getCurrentUserRepositorySize
long getCurrentUserRepositorySize()Gets the current user's repository user area size (in bytes).- Returns:
- the current user's repository user area size (in bytes).
-
getCurrentUserTransientWorkspaceSize
long getCurrentUserTransientWorkspaceSize()Gets the current user's transient workspace size (in bytes).- Returns:
- the current user's transient workspace size (in bytes).
-
getRepositoryContainerChildrenAndSizes
List<ResourceUtilizationContainerInfo> getRepositoryContainerChildrenAndSizes(String path) throws ResourceUtilizationPathNotFoundException Gets resource utilization information for child containers with calculated sizes. This ignores system (hidden) folders including recycle bin.- Parameters:
path- The parent path.- Returns:
- Resource utilization information for the child containers of the parent path.
- Throws:
ResourceUtilizationPathNotFoundException- Thrown if the parent path does not exist.
-
getWorkspaceContainerChildrenAndSizes
List<ResourceUtilizationContainerInfo> getWorkspaceContainerChildrenAndSizes(String path) throws ResourceUtilizationPathNotFoundException Gets resource utilization information for child folders with calculated sizes for the current user's workspace. This will aggregate all system (hidden) folders into a single system folder which represents all hidden content in a single folder representation.- Parameters:
path- The parent path.- Returns:
- Resource utilization information for child folders of the parent path.
- Throws:
ResourceUtilizationPathNotFoundException- Thrown if the parent path does not exist.
-