@Override
    public JobMeta getJobMeta(String jobType) {
        final Map<String, String> document = map.get(jobType);
        if (document != null) {
            final Map<String, String> meta = document.keySet()
                    .stream()
                    .filter(key -> !key.startsWith("_e_"))
                    .collect(toMap(
                            key -> key,
                            document::get
                    ));
            final boolean isRunning = document.containsKey(KEY_RUNNING);
            final boolean isDisabled = document.containsKey(KEY_DISABLED);
            final String comment = document.get(KEY_DISABLED);
            return new JobMeta(jobType, isRunning, isDisabled, comment, meta);
        } else {
            return new JobMeta(jobType, false, false, "", emptyMap());
        }
    }
@ Override public JobMeta getJobMeta ( String jobType ) { final Map < String , String > document = map . get ( jobType ) ; if ( document != null ) { final Map < String , String > meta = document . keySet ( ) . stream ( ) . filter ( key -> ! key . startsWith ( "_e_" ) ) . collect ( toMap ( key -> key , document :: get ) ) ; final boolean isRunning = document . containsKey ( KEY_RUNNING ) ; final boolean isDisabled = document . containsKey ( KEY_DISABLED ) ; final String comment = document . get ( KEY_DISABLED ) ; return new JobMeta ( jobType , isRunning , isDisabled , comment , meta ) ; } else { return new JobMeta ( jobType , false , false , "" , emptyMap ( ) ) ; } }
Returns the current state of the specified job type.

@param jobType the job type
@return current state of the job type