|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.build.StandardBuildService
Use the newStandardBuildService
static factory method(s),
not the StandardBuildService
constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
BUILDABLE_OBJECT_KEY
|
private static String |
BUILTCACHE
|
private static String |
BUILTLINKSCACHE
|
private static String |
CLASSNAME
|
static String |
KEY_ID_SEPARATOR
|
private static String |
OCCNAMESSCACHE
|
private static String |
OCCURRENCESTOSAVE
|
private static String |
OTHERLINKSCACHE
|
private static String |
OTHEROCCSCACHE
|
private static String |
RESOURCE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardBuildService()
|
Method Summary | |
protected WTCollection |
build(WTCollection buildRules,
ConfigSpec configSpec)
|
BuildTarget |
buildTarget(BuildTarget target)
Deprecated. at R6. Please use buildTarget(BuildTarget, ConfigSpec). |
QueryResult |
buildTarget(BuildTarget[] targets,
ConfigSpec configSpec)
Deprecated. |
BuildTarget |
buildTarget(BuildTarget target,
ConfigSpec configSpec)
Supported API: false |
WTValuedMap |
buildTarget(WTCollection targets,
ConfigSpec configSpec)
Builds the given collection of targets. |
BuildTargetMaster |
buildTargetMaster(BuildTargetMaster targetMaster)
Propagates attributes from all source master to given target master. |
QueryResult |
buildTargetMaster(BuildTargetMaster[] targetMasters)
Propagates attributes from all source master to given target masters. |
QueryResult |
buildTargetMasterForSourceMaster(BuildSourceMaster sourceMaster)
Propagates attributes from all source masters associated with target master associated to given master. |
QueryResult |
buildTargetMasterForSourceMaster(BuildSourceMaster[] sourceMasters)
Propagates attributes from all source masters associated with target master associated to given masters. |
QueryResult |
buildTargetsForSource(BuildSource source)
Deprecated. at R6. Please use buildTargetForSource(BuildSource, ConfigSpec). |
QueryResult |
buildTargetsForSource(BuildSource[] sources,
ConfigSpec configSpec)
Deprecated. |
QueryResult |
buildTargetsForSource(BuildSource source,
ConfigSpec configSpec)
Supported API: false |
QueryResult |
buildTargetsForSource(WTCollection sources,
ConfigSpec configSpec)
Supported API: false |
private void |
canCreateLink(WTCollection links)
canCreateLink: Added to support Sandbox Containers Get containers of the end points of the buildlink and checks if it valid to create links across these containers. |
protected void |
copyHistoryForward(WTCollection targets)
|
BuildableOccurrence |
deleteOccurrence(BuildableOccurrence occurrence)
Deprecated. |
WTSet |
deleteOccurrences(WTSet occurrences)
Deletes given buildable occurrences. |
BuildableLink |
getBuiltLink(BuildReference buildReference)
Deprecated. |
BuildableLink |
getBuiltLink(BuildTarget targetParent,
BuildReference buildReference)
Returns a "built" buildable link (if exists else null) with the given build reference. |
private WTList |
getBuiltObjects(WTCollection buildableObjects)
|
BuildableOccurrence |
getBuiltOccurrence(BuildReference buildReference)
Returns the "built" buildable occurrence that is associated with this build reference.. |
QueryResult |
getBuiltOccurrences()
Returns all "built" buildable occurrences that are associated with selected build targets. |
QueryResult |
getBuiltOccurrences(UsesOccurrenceContext buildTarget)
Returns all "built" buildable occurrences that are associated with this build target. |
QueryResult |
getCandidateLinks(Persistable child)
Deprecated. |
QueryResult |
getCandidateLinks(Persistable parent,
Persistable child)
Returns a QueryResult of "non built" buildable links for the given parent and child. |
QueryResult |
getCandidateOccurrences(OccurrenceableLink link)
Returns all "non built" buildable occurrences associated with the given link. |
String |
getConceptualClassname()
Deprecated. |
private WTValuedMap |
getDatabaseCopies(WTCollection objects)
Returns the database copy the objects |
private WTKeyedMap.WTEntry |
getEntry(WTValuedHashMap map,
WTReference reference)
|
private String |
getKey(QueryKey targetKey,
BuildReference br)
|
QueryResult |
getTargetsForSources(QueryResult buildSources,
Class buildRule)
Supported API: false |
private boolean |
isBuildInProgress()
|
void |
markAsBuilt(BuildableLink link,
BuildReference buildReference)
Deprecated. at R6. Please use BuildHelper.markAsBuilt(). |
void |
markAsNeeded(BuildableObject object)
Tells the Build Service to preserve the given buildable object. |
BuildableLink |
newBuildableLink(Class linkClass,
BuildTarget buildTargetRoleObject,
Persistable persistableRoleObject,
BuildReference buildReference)
Supported API: false |
static StandardBuildService |
newStandardBuildService()
Default factory for the class. |
protected void |
performStartupProcess()
Dummy method to be overridden by subclasses. |
private void |
processBuildRuleEvents(WTCollection buildRules,
KeyedEvent event)
|
protected void |
processBuildSourceEvent(WTCollection sources,
KeyedEvent event)
|
protected void |
processBuildTargetEvent(WTCollection targets,
KeyedEvent event)
|
protected void |
processPreDeleteBuildableLinks(WTCollection buildableLinks)
Prevent the deletion of a BuildableLink that has been built by an application when the BuildService's build did not emit this event. |
protected void |
processPreDeleteOccurrences(WTCollection buildableOccurrences)
Prevent the deletion of a BuildableOccurrence that has been built by an application when the BuildService's build did not emit this event. |
protected void |
processPreModifyBuildableLinks(WTCollection buildableLinks)
Prevent the modification of a BuildableLink that has been built if quantity or end points are changed. |
protected void |
processPreModifyOccurrences(WTCollection buildableOccurrences)
Prevent the name modification of a BuildableOccurrence that has been built by an application when the BuildService's build did not invoke the modify/store or the 'saveOccurrence' API was called directly. |
protected void |
processWorkInProgressEvent(WorkInProgressServiceEvent wipEvent)
|
private void |
removeBuildHistories(WTCollection targets)
|
QueryResult |
saveOccurrence(UsesOccurrence occurrence,
Vector occurrenceData)
Saves a buildable uses occurrence and its associated occurrence data. |
BuildableLink |
storeBuildableLink(BuildableLink link)
Deprecated. |
WTCollection |
storeBuildableLinks(WTCollection links)
Stores the buildable links. |
private void |
validateBuildability(WorkInProgressServiceEvent wipEvent)
|
protected void |
vetoBuildHistoryAction(WTCollection bh)
Prevent client-side CMD actions against the BuildHistory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String KEY_ID_SEPARATOR
private static final String BUILDABLE_OBJECT_KEY
private static final String BUILTCACHE
private static final String BUILTLINKSCACHE
private static final String OTHERLINKSCACHE
private static final String OTHEROCCSCACHE
private static final String OCCNAMESSCACHE
private static final String OCCURRENCESTOSAVE
Constructor Detail |
public StandardBuildService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardBuildService newStandardBuildService() throws WTException
WTException
public QueryResult buildTargetsForSource(BuildSource source) throws WTException, NoRulesToBuildException
buildTargetsForSource
in interface BuildService
source
-
WTException
NoRulesToBuildException
public QueryResult buildTargetsForSource(BuildSource source, ConfigSpec configSpec) throws WTException, NoRulesToBuildException
buildTargetsForSource
in interface BuildService
source
- configSpec
-
WTException
NoRulesToBuildException
public BuildTarget buildTarget(BuildTarget target) throws WTException, NoRulesToBuildException
buildTarget
in interface BuildService
target
-
WTException
NoRulesToBuildException
public BuildTarget buildTarget(BuildTarget target, ConfigSpec configSpec) throws WTException, NoRulesToBuildException
buildTarget
in interface BuildService
target
- configSpec
-
WTException
NoRulesToBuildException
public BuildableLink newBuildableLink(Class linkClass, BuildTarget buildTargetRoleObject, Persistable persistableRoleObject, BuildReference buildReference) throws WTException
newBuildableLink
in interface BuildService
linkClass
- buildTargetRoleObject
- persistableRoleObject
- buildReference
-
WTException
public BuildableLink storeBuildableLink(BuildableLink link) throws WTException
storeBuildableLink
in interface BuildService
link
- buildable link to save
WTException
public QueryResult getTargetsForSources(QueryResult buildSources, Class buildRule) throws WTException
getTargetsForSources
in interface BuildService
buildSources
- buildRule
-
WTException
public BuildableLink getBuiltLink(BuildReference buildReference) throws WTException
getBuiltLink
in interface BuildService
buildReference
-
WTException
public QueryResult getCandidateLinks(Persistable child) throws WTException
getCandidateLinks
in interface BuildService
child
-
WTException
public void markAsBuilt(BuildableLink link, BuildReference buildReference) throws WTException
markAsBuilt
in interface BuildService
link
- buildReference
-
WTException
public void markAsNeeded(BuildableObject object) throws WTException
markAsNeeded
in interface BuildService
object
-
WTException
public QueryResult getCandidateOccurrences(OccurrenceableLink link) throws WTException
getCandidateOccurrences
in interface BuildService
link
-
WTException
public QueryResult getBuiltOccurrences(UsesOccurrenceContext buildTarget) throws WTException
getBuiltOccurrences
in interface BuildService
buildTarget
-
WTException
public QueryResult saveOccurrence(UsesOccurrence occurrence, Vector occurrenceData) throws WTException
saveOccurrence
in interface BuildService
occurrence
- Buildable Uses Occurrence to saveoccurrenceData
- Occurrence Data to save along with the occurrence
WTException
public BuildableOccurrence deleteOccurrence(BuildableOccurrence occurrence) throws WTException
deleteOccurrence
in interface BuildService
occurrence
-
WTException
public BuildableOccurrence getBuiltOccurrence(BuildReference buildReference) throws WTException
getBuiltOccurrence
in interface BuildService
buildReference
-
WTException
public WTValuedMap buildTarget(WTCollection targets, ConfigSpec configSpec) throws WTException, NoRulesToBuildException
buildTarget
in interface BuildService
targets
- collection of BuildTargetconfigSpec
-
WTException
NoRulesToBuildException
public QueryResult buildTargetsForSource(WTCollection sources, ConfigSpec configSpec) throws WTException, NoRulesToBuildException
buildTargetsForSource
in interface BuildService
sources
- collection of BuildSourceconfigSpec
-
WTException
NoRulesToBuildException
public BuildTargetMaster buildTargetMaster(BuildTargetMaster targetMaster) throws WTException
buildTargetMaster
in interface BuildService
targetMaster
-
WTException
public QueryResult buildTargetMaster(BuildTargetMaster[] targetMasters) throws WTException
buildTargetMaster
in interface BuildService
targetMasters
-
WTException
public QueryResult buildTargetMasterForSourceMaster(BuildSourceMaster[] sourceMasters) throws WTException
buildTargetMasterForSourceMaster
in interface BuildService
sourceMasters
-
WTException
public QueryResult buildTargetMasterForSourceMaster(BuildSourceMaster sourceMaster) throws WTException
buildTargetMasterForSourceMaster
in interface BuildService
sourceMaster
-
WTException
public QueryResult getBuiltOccurrences() throws WTException
getBuiltOccurrences
in interface BuildService
WTException
public WTSet deleteOccurrences(WTSet occurrences) throws WTException
deleteOccurrences
in interface BuildService
occurrences
-
WTException
public WTCollection storeBuildableLinks(WTCollection links) throws WTException
storeBuildableLinks
in interface BuildService
links
- buildable links to save
WTException
public QueryResult getCandidateLinks(Persistable parent, Persistable child) throws WTException
getCandidateLinks
in interface BuildService
parent
- child
-
WTException
public QueryResult buildTarget(BuildTarget[] targets, ConfigSpec configSpec) throws WTException, NoRulesToBuildException
buildTarget
in interface BuildService
targets
- configSpec
-
WTException
NoRulesToBuildException
public QueryResult buildTargetsForSource(BuildSource[] sources, ConfigSpec configSpec) throws WTException, NoRulesToBuildException
buildTargetsForSource
in interface BuildService
sources
- configSpec
-
WTException
NoRulesToBuildException
public BuildableLink getBuiltLink(BuildTarget targetParent, BuildReference buildReference) throws WTException
getBuiltLink
in interface BuildService
targetParent
- buildReference
-
WTException
protected void performStartupProcess() throws ManagerException
StandardManager
performStartupProcess
in class StandardManager
ManagerException
protected void vetoBuildHistoryAction(WTCollection bh) throws WTException
WTException
protected void processPreDeleteBuildableLinks(WTCollection buildableLinks) throws WTException
WTException
private boolean isBuildInProgress()
private WTList getBuiltObjects(WTCollection buildableObjects) throws WTException
WTException
protected void processPreModifyBuildableLinks(WTCollection buildableLinks) throws WTException
WTException
private WTValuedMap getDatabaseCopies(WTCollection objects) throws WTException
objects
- WTCollection
WTException
protected void processPreDeleteOccurrences(WTCollection buildableOccurrences) throws WTException
WTException
protected void processPreModifyOccurrences(WTCollection buildableOccurrences) throws WTException
WTException
protected void processBuildSourceEvent(WTCollection sources, KeyedEvent event) throws WTException
WTException
protected void processBuildTargetEvent(WTCollection targets, KeyedEvent event) throws WTException
WTException
protected void copyHistoryForward(WTCollection targets) throws WTException
WTException
protected void processWorkInProgressEvent(WorkInProgressServiceEvent wipEvent) throws WTException
WTException
private void canCreateLink(WTCollection links) throws WTException
WTException
private WTKeyedMap.WTEntry getEntry(WTValuedHashMap map, WTReference reference)
private void validateBuildability(WorkInProgressServiceEvent wipEvent) throws WTException
WTException
private void processBuildRuleEvents(WTCollection buildRules, KeyedEvent event) throws WTException
WTException
private void removeBuildHistories(WTCollection targets) throws WTException
WTException
protected WTCollection build(WTCollection buildRules, ConfigSpec configSpec) throws WTException
WTException
private String getKey(QueryKey targetKey, BuildReference br)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |