public String snapshot ( SnapshotOptions opts ) throws PiliException { String path = baseUrl + "/snapshot" ; String json = gson . toJson ( opts ) ; try { String resp = cli . callWithJson ( path , json ) ; SnapshotRet ret = gson . fromJson ( resp , SnapshotRet . class ) ; return ret . fname ; } catch ( PiliException e ) { throw e ; } catch ( Exception e ) { throw new PiliException ( e ) ; } }
snapshot the live stream