|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.AbstractSequentialList | +--java.util.LinkedList | +--com.neoworks.jukex.sqlimpl.InMemoryPlaylist
A Playlist implementation that is not persisted to the database
Field Summary |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
InMemoryPlaylist()
Creates a new instance of InMemoryPlaylist |
|
InMemoryPlaylist(java.lang.String name)
Creates a new instance of InMemoryPlaylist |
Method Summary | |
java.lang.Object |
clone()
Must implement cloning |
void |
disable()
Disable this element |
void |
enable()
Enable this element |
java.lang.String |
getDescription()
Return a String describing what, in general terms, this TrackSource does |
java.lang.String |
getName()
Get the name of this TrackSource |
Track |
getNextTrack()
Get the next track from the source. |
TrackSourcePipelineElement |
getNextTrackSource()
Get the next TrackSourcePipelineElement. |
java.util.Map |
getState()
Get the current state of this PipelineElement for persisting. |
java.lang.String |
getSummary()
Return a String summarising the configuration of the task the source is performing |
Track |
getTrack(int index)
Get the Track at the specified index |
boolean |
isEnabled()
Is this playlist enabled |
java.util.List |
peekTracks(int count)
Peek at the next count tracks from this TrackSourcePipelineElement |
boolean |
removeTrack(int index)
Remove a track from the playlist |
void |
setName(java.lang.String name)
Set the name of this Playlist |
TrackSourcePipelineElement |
setNextTrackSource(TrackSourcePipelineElement next)
Tells this tracksource of a new link in the chain |
TrackSourcePipelineElement |
setOwner(TrackSourcePipeline pipe)
Set which TrackSourcePipeline this PipelineElement is currently a part of |
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.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
iterator |
Methods inherited from class java.util.AbstractList |
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, isEmpty, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
public InMemoryPlaylist()
public InMemoryPlaylist(java.lang.String name)
name
- The name of this playlistMethod Detail |
public java.lang.String getName()
getName
in interface Playlist
public boolean isEnabled()
isEnabled
in interface TrackSource
public void enable()
TrackSourcePipelineElement
enable
in interface TrackSourcePipelineElement
public void disable()
TrackSourcePipelineElement
disable
in interface TrackSourcePipelineElement
public Track getNextTrack()
getNextTrack
in interface Playlist
public boolean removeTrack(int index)
removeTrack
in interface TrackSourcePipelineElement
index
- The index of the track to remove
public TrackSourcePipelineElement getNextTrackSource()
getNextTrackSource
in interface TrackSourcePipelineElement
null
public java.util.Map getState()
getState
in interface TrackSourcePipelineElement
public Track getTrack(int index)
getTrack
in interface Playlist
index
- The index of the Track to get
public java.util.List peekTracks(int count)
peekTracks
in interface TrackSourcePipelineElement
count
- The number of Tracks to peek ahead at
public TrackSourcePipelineElement setNextTrackSource(TrackSourcePipelineElement next)
setNextTrackSource
in interface TrackSourcePipelineElement
public TrackSourcePipelineElement setOwner(TrackSourcePipeline pipe)
setOwner
in interface TrackSourcePipelineElement
pipe
- The TrackSourcePipeline to which you now belong
public boolean setState(java.util.Map state)
setState
in interface TrackSourcePipelineElement
state
- a Map of values keyed by Strings representing the state of this PipelineElement.
public boolean storeState(java.sql.Connection conn)
storeState
in interface TrackSourcePipelineElement
conn
- The database connection to use, which must have AutoCommit disabled
public java.lang.String getSummary()
getSummary
in interface TrackSource
public java.lang.String getDescription()
getDescription
in interface TrackSource
public void setName(java.lang.String name)
setName
in interface TrackSourcePipelineElement
name
- The new namepublic java.lang.Object clone()
TrackSource
clone
in interface TrackSource
clone
in class java.util.LinkedList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |