|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.neoworks.jukex.tracksource.TrackSourcePipelineElementSkeleton
Skeleton class that implements the framework for taking part in a Pipeline of PipelineElement objects.
| Field Summary | |
protected java.lang.String |
name
|
| Constructor Summary | |
TrackSourcePipelineElementSkeleton()
Default Constructor |
|
TrackSourcePipelineElementSkeleton(java.lang.String name)
Public Constructor |
|
TrackSourcePipelineElementSkeleton(TrackSourcePipeline tsp)
Public Constructor |
|
TrackSourcePipelineElementSkeleton(TrackSourcePipeline tsp,
java.lang.String name)
Public Constructor |
|
| Method Summary | |
abstract java.lang.Object |
clone()
Not much point cloning this Clone operations should not copy the nextTrackSource or pipeline fields |
protected Track |
delegateGetNextTrack()
Get the next track from the next track source in the chain, or do something appropriate if there is no track source, like screaming or flapping your arms. |
protected java.util.List |
delegatePeekTracks(int size)
Peek the next source for the specified number of tracks. |
void |
disable()
Disable this element |
void |
enable()
Enable this element |
java.lang.String |
getName()
Get the name of this PipelineElement |
TrackSourcePipelineElement |
getNextTrackSource()
Return the next TrackSourcePipelineElement |
TrackSourcePipeline |
getOwner()
Get the owner of this PipelineElement |
abstract java.util.Map |
getState()
Get the current state of this PipelineElement for persisting |
boolean |
isEnabled()
Is this TrackSource enabled? |
boolean |
removeTrack(int index)
Remove a track from this PipelineElement (or rather don't). |
void |
setName(java.lang.String name)
Set the owner of this PipelineElement |
TrackSourcePipelineElement |
setNextTrackSource(TrackSourcePipelineElement nextTrackSource)
Tells this tracksource of a new link in the chain |
TrackSourcePipelineElement |
setOwner(TrackSourcePipeline pipe)
Set the owner of this PipelineElement |
abstract boolean |
setState(java.util.Map state)
Load the configuration of this PipelineElement |
boolean |
storeState(java.sql.Connection conn)
Persist the current state of the PipelineElement into the database |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.neoworks.jukex.tracksource.TrackSourcePipelineElement |
peekTracks |
| Methods inherited from interface com.neoworks.jukex.tracksource.TrackSource |
getDescription, getNextTrack, getSummary |
| Field Detail |
protected java.lang.String name
| Constructor Detail |
public TrackSourcePipelineElementSkeleton()
public TrackSourcePipelineElementSkeleton(TrackSourcePipeline tsp)
tsp - The parent Pipeline of this PipelineElement
public TrackSourcePipelineElementSkeleton(TrackSourcePipeline tsp,
java.lang.String name)
tsp - The parent Pipeline of this PipelineElementname - The name of this elementpublic TrackSourcePipelineElementSkeleton(java.lang.String name)
name - The name of this element| Method Detail |
public final TrackSourcePipelineElement setNextTrackSource(TrackSourcePipelineElement nextTrackSource)
setNextTrackSource in interface TrackSourcePipelineElementpublic final TrackSourcePipelineElement getNextTrackSource()
getNextTrackSource in interface TrackSourcePipelineElementprotected Track delegateGetNextTrack()
public boolean removeTrack(int index)
removeTrack in interface TrackSourcePipelineElementindex - The index of the Track to remove
protected java.util.List delegatePeekTracks(int size)
size - The number of Tracks to peek
null if there is no next
elementpublic final boolean storeState(java.sql.Connection conn)
storeState in interface TrackSourcePipelineElementconn - The database connection to use, which must have AutoCommit disabled
public abstract java.util.Map getState()
getState in interface TrackSourcePipelineElementpublic abstract boolean setState(java.util.Map state)
setState in interface TrackSourcePipelineElementstate - a Map of values keyed by Strings representing the state of this PipelineElement.
public final java.lang.String getName()
getName in interface TrackSourcepublic void setName(java.lang.String name)
setName in interface TrackSourcePipelineElementname - The new name for this PipelineElementpublic TrackSourcePipeline getOwner()
public TrackSourcePipelineElement setOwner(TrackSourcePipeline pipe)
setOwner in interface TrackSourcePipelineElementpipe - The TrackSourcePipeline that owns this PipelineElement
public void enable()
TrackSourcePipelineElement
enable in interface TrackSourcePipelineElementpublic void disable()
TrackSourcePipelineElement
disable in interface TrackSourcePipelineElementpublic final boolean isEnabled()
TrackSource
isEnabled in interface TrackSourcepublic abstract java.lang.Object clone()
clone in interface TrackSourceclone in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||