
distributed.core.DistributedJobConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of distributedWekaBase Show documentation
Show all versions of distributedWekaBase Show documentation
This package provides generic configuration class and distributed map/reduce style tasks for Weka
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/*
* DistributedJobConfig.java
* Copyright (C) 2013 University of Waikato, Hamilton, New Zealand
*
*/
package distributed.core;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import weka.core.Option;
import weka.core.OptionHandler;
import weka.core.Utils;
/**
* Base class for different types of distributed configurations.
*
* @author Mark Hall (mhall{[at]}pentaho{[dot]}com)
* @version $Revision: 10897 $
*/
public abstract class DistributedJobConfig implements OptionHandler,
Serializable {
/**
* For serialization
*/
private static final long serialVersionUID = -1508983502442626306L;
/**
* Holds the named configuration properties that concrete implementations
* using a particular distributed system would need in order to configure
* connections, job parameters etc.
*/
protected Map m_configProperties =
new HashMap();
/**
* Holds any additional user-supplied properties. I.e. properties beyond those
* that the implementation may allow the user to set via a GUI or pre-defined
* command line interface. These will be expected to be keyed by property
* names actually expected by the underlying distributed system (rather than
* more user friendly names exposed by a GUI or command line interface), or
* any custom properties that the Mapper/Reducer code may need.
*/
protected Map m_additionalUserSuppliedProperties =
new HashMap();
@Override
public Enumeration
© 2015 - 2025 Weber Informatics LLC | Privacy Policy