class DiskspaceDelegator extends BaseDelegator implements IDiskspaceDelegator {

    @Override
    public List<IDiskSpace> getDiskSpace(final List<String> filesystems) throws P4JavaException {
        String[] cmdArgs = null;
        if (nonNull(filesystems)) {
            cmdArgs = filesystems.toArray(new String[filesystems.size()]);
        }

        List<Map<String, Object>> resultMaps = execMapCmdList(
                DISKSPACE,
                cmdArgs,
                null);

        return buildNonNullObjectListFromCommandResultMaps(
                resultMaps,
                new Function<Map, IDiskSpace>() {
                    @Override
                    public IDiskSpace apply(Map map) {
                        return new DiskSpace(map);
                    }
                });
    }

    public  DiskspaceDelegator(IOptionsServer server);

}