|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.adaptation.Distribute
public class Distribute
This class analyzes translation output and does the distribution.
The different target methods like cp or scp are not implemented here but each in an own class. The implementations of the actual distributors are determined using the DistributorFactory.
| Field Summary | |
|---|---|
private IDistributorFactory |
distFact
|
| Constructor Summary | |
|---|---|
Distribute()
Create a distributor with the default method to determine IDistributorFactory |
|
Distribute(IDistributorFactory distFact)
Get an instance to distribute configuration. |
|
| Method Summary | |
|---|---|
static IDistributorFactory |
createFactory()
Create the distributor factory according to the rules: If the system property verinec.adaptation.distributorfactory is set, tries to instantiate that class with forname. |
void |
distributeAll(Element configuration)
Execute the content of all nodes in the passed configuration. |
void |
distributeService(Element service)
Distribute a single service, using its tr:target and DistributorFactory. |
private void |
processCommands(Element commands,
IDistributor dist)
Processes all commands inside a pre- or post-process tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private IDistributorFactory distFact
| Constructor Detail |
|---|
public Distribute(IDistributorFactory distFact)
distFact - The factory to be used to retrieve distributors.
public Distribute()
throws VerinecException
VerinecException - If creating the default factory fails.createFactory()| Method Detail |
|---|
public static IDistributorFactory createFactory()
throws VerinecException
IDistributorFactory interface.
If there is no such system property, instantiates PropDistFactory
VerinecException - If the factory can not be instantiated.
public void distributeAll(Element configuration)
throws VerinecException
configuration - The XML containing all the information to distribute.
VerinecException - if distributeService fails
public void distributeService(Element service)
throws VerinecException
service - A service tag containing results to distribute.
VerinecException - if the distribution fails for some reason.
private void processCommands(Element commands,
IDistributor dist)
throws VerinecException
commands - A pre- or post-process tag containing commands to be executed.dist - The distributor for the current target, which will also care for the execute.
VerinecException - if executing a command fails.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||