Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.core.server
Class MinerLoader

java.lang.Object
  extended bycom.ibm.etools.systems.dstore.core.server.MinerLoader
All Implemented Interfaces:
ISchemaRegistry

public class MinerLoader
extends Object
implements ISchemaRegistry

MinerLoader is an implementation of ISchemaRegistry used for loading and initializing miners.


Field Summary
static String Copyright
           
 
Constructor Summary
MinerLoader(DataStore dataStore, ArrayList loaders)
          Constructor
 
Method Summary
 void extendSchema(DataStore dataStore)
          Calls extendSchema on each of the loaded miners
 void finishMiner(String name)
          Terminates the specified miner
 void finishMiners()
          Terminate all the miners
 ExternalLoader getLoaderFor(String source)
          Returns the ExternalLoader for a particular class.
 Miner getMiner(String name)
          Returns the miner indicated with the specified name
 ArrayList getMiners()
          Returns the loaded miners
 void loadMiners()
          Loads all miners that are specified in the default minerFile.dat as well as any others indicated by DataStore.getMinersLocation that have not yet been loaded.
 ArrayList loadMiners(String minerFile, String encoding)
          Loads that miners specified in a particular miner configuration file (i.e.
 void registerSchemaExtender(ISchemaExtender extender)
          Currently not used for the miner loader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

MinerLoader

public MinerLoader(DataStore dataStore,
                   ArrayList loaders)
Constructor

Parameters:
dataStore - the associated DataStore
loaders - the list of ExternalLoaders used be the miner loader
Method Detail

loadMiners

public void loadMiners()
Loads all miners that are specified in the default minerFile.dat as well as any others indicated by DataStore.getMinersLocation that have not yet been loaded.


loadMiners

public ArrayList loadMiners(String minerFile,
                            String encoding)
                     throws Exception
Loads that miners specified in a particular miner configuration file (i.e. minerFile.dat)

Parameters:
minerFile - a file specifying a list of miners
Returns:
a list of the loaded miners
Throws:
Exception

registerSchemaExtender

public void registerSchemaExtender(ISchemaExtender extender)
Currently not used for the miner loader

Specified by:
registerSchemaExtender in interface ISchemaRegistry
Parameters:
extender - the new schema extender

extendSchema

public void extendSchema(DataStore dataStore)
Calls extendSchema on each of the loaded miners

Specified by:
extendSchema in interface ISchemaRegistry
Parameters:
dataStore - the DataStore containing the base schema to extend

getLoaderFor

public ExternalLoader getLoaderFor(String source)
Returns the ExternalLoader for a particular class.

Specified by:
getLoaderFor in interface ISchemaRegistry
Parameters:
source - a qualified classname
Returns:
the loader for the specified class

getMiners

public ArrayList getMiners()
Returns the loaded miners

Returns:
the loaded miners

getMiner

public Miner getMiner(String name)
Returns the miner indicated with the specified name

Parameters:
name - the qualified classname of the miner
Returns:
the miner

finishMiner

public void finishMiner(String name)
Terminates the specified miner

Parameters:
name - the qualified classname of the miner to terminate

finishMiners

public void finishMiners()
Terminate all the miners


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.