Search in sources :

Example 1 with MasterResource

use of es.bsc.compss.types.resources.MasterResource in project compss by bsc-wdc.

the class Comm method init.

/**
 * Communications initializer
 */
public static void init() {
    appHost = new MasterResource();
    try {
        if (STORAGE_CONF == null || STORAGE_CONF.equals("") || STORAGE_CONF.equals("null")) {
            LOGGER.warn("No storage configuration file passed");
        } else {
            LOGGER.debug("Initializing Storage with: " + STORAGE_CONF);
            StorageItf.init(STORAGE_CONF);
        }
    } catch (StorageException e) {
        LOGGER.fatal("Error loading storage configuration file: " + STORAGE_CONF, e);
        System.exit(1);
    }
    loadAdaptorsJars();
    /*
         * Initializes the Tracer activation value to enable querying Tracer.isActivated()
         */
    if (System.getProperty(COMPSsConstants.TRACING) != null && Integer.parseInt(System.getProperty(COMPSsConstants.TRACING)) > 0) {
        LOGGER.debug("Tracing is activated");
        int tracing_level = Integer.parseInt(System.getProperty(COMPSsConstants.TRACING));
        Tracer.init(tracing_level);
        Tracer.emitEvent(Tracer.Event.STATIC_IT.getId(), Tracer.Event.STATIC_IT.getType());
    }
}
Also used : MasterResource(es.bsc.compss.types.resources.MasterResource) StorageException(storage.StorageException)

Aggregations

MasterResource (es.bsc.compss.types.resources.MasterResource)1 StorageException (storage.StorageException)1