public Map < String , CachedData > getAllChunks ( String key ) throws EVCacheReadQueueException , EVCacheException , Exception { try { final ChunkDetails < Object > cd = getChunkDetails ( key ) ; if ( log . isDebugEnabled ( ) ) log . debug ( "Chunkdetails " + cd ) ; if ( cd == null ) return null ; if ( ! cd . isChunked ( ) ) { Map < String , CachedData > rv = new HashMap < String , CachedData > ( ) ; rv . put ( key , ( CachedData ) cd . getData ( ) ) ; if ( log . isDebugEnabled ( ) ) log . debug ( "Data : " + rv ) ; return rv ; } else { final List < String > keys = cd . getChunkKeys ( ) ; if ( log . isDebugEnabled ( ) ) log . debug ( "Keys - " + keys ) ; final Map < String , CachedData > dataMap = evcacheMemcachedClient . asyncGetBulk ( keys , chunkingTranscoder , null , "GetAllChunksOperation" ) . getSome ( readTimeout . get ( ) . intValue ( ) , TimeUnit . MILLISECONDS , false , false ) ; if ( log . isDebugEnabled ( ) ) log . debug ( "Datamap " + dataMap ) ; return dataMap ; } } catch ( Exception e ) { log . error ( e . getMessage ( ) , e ) ; } return null ; }
Retrieves all the chunks as is . This is mainly used for debugging .