com.norconex.jef.progress
Class JobProgressUtils

java.lang.Object
  extended by com.norconex.jef.progress.JobProgressUtils

public final class JobProgressUtils
extends Object

Utility methods for facilitating common job progress operations.

Since:
1.1
Author:
Pascal Essiembre

Method Summary
static Properties getMetaDataProperties(JobProgress progress)
          Gets meta data as a Properties instance.
static void setMetaDataProperties(JobProgress progress, Properties props)
          Sets meta data as a string from a Properties instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMetaDataProperties

public static Properties getMetaDataProperties(JobProgress progress)
Gets meta data as a Properties instance. This is a convenience method for treating the meta data string as properties. It calls JobProgress.getMetadata() and parses it assuming it follows Properties syntax.

Returns:
configuration properties

setMetaDataProperties

public static void setMetaDataProperties(JobProgress progress,
                                         Properties props)
Sets meta data as a string from a Properties instance. This is a convenience method for treating the meta data string as properties. It calls JobProgress.setMetadata(String) after converting the properties to a string as per Properties syntax.

Parameters:
progress - job progress on which to store meta data
props - properties to store in job progress


Copyright © 2007-2013 Norconex Inc.. All Rights Reserved.