Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- a - Variable in class dev.blackilykat.pmp.util.ConcatenatedInputStream
- aClosed - Variable in class dev.blackilykat.pmp.util.ConcatenatedInputStream
- action - Variable in class dev.blackilykat.pmp.messages.ActionMessage
-
The action itself with all details needed (except file contents) to apply it to the library.
- action - Variable in class dev.blackilykat.pmp.messages.ActionRequest
-
The action itself with all details needed (except file contents) to apply it to the library.
- action - Variable in class dev.blackilykat.pmp.server.Library.PendingAction
-
The not-yet-completed action details
- Action - Class in dev.blackilykat.pmp
-
Represents any update to the library.
- Action() - Constructor for class dev.blackilykat.pmp.Action
-
Constructor used when deserializing actions from JSON.
- Action(String, Action.Type) - Constructor for class dev.blackilykat.pmp.Action
-
Constructor used when actionType !=
Action.Type.CHANGE_METADATA. - Action(String, List) - Constructor for class dev.blackilykat.pmp.Action
-
Constructor used when actionType ==
Action.Type.CHANGE_METADATA. - Action.Type - Enum Class in dev.blackilykat.pmp
-
What kind of modification an action performs on the library
- actionHandlingThread - Static variable in class dev.blackilykat.pmp.client.Server
- ActionHandlingThread() - Constructor for class dev.blackilykat.pmp.client.Server.ActionHandlingThread
- actionId - Variable in class dev.blackilykat.pmp.messages.ActionResponse
-
The action ID assigned by the server.
- ActionMessage - Class in dev.blackilykat.pmp.messages
-
An action which has just been performed by another client.
- ActionMessage(Action, int) - Constructor for class dev.blackilykat.pmp.messages.ActionMessage
- ActionMessageHandler - Class in dev.blackilykat.pmp.client.handlers
- ActionMessageHandler() - Constructor for class dev.blackilykat.pmp.client.handlers.ActionMessageHandler
- ActionRequest - Class in dev.blackilykat.pmp.messages
-
Request from a client to perform an action.
- ActionRequest(Action) - Constructor for class dev.blackilykat.pmp.messages.ActionRequest
- ActionRequestHandler - Class in dev.blackilykat.pmp.server.handlers
- ActionRequestHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- ActionRequestHandler.QueueEntry - Record Class in dev.blackilykat.pmp.server.handlers
- ActionResponse - Class in dev.blackilykat.pmp.messages
-
Response to
ActionRequestwhich tells the client how to move ahead with library sync. - ActionResponse(Integer, ActionResponse.Type, Integer) - Constructor for class dev.blackilykat.pmp.messages.ActionResponse
- ActionResponse.Type - Enum Class in dev.blackilykat.pmp.messages
-
The state of the request, based on which the client should decide how to complete the action.
- actions - Variable in class dev.blackilykat.pmp.messages.GetActionsResponse
-
The list of requested actions.
- actions - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
All actions ever performed on the library.
- actionSendingThread - Static variable in class dev.blackilykat.pmp.client.Server
- ActionSendingThread() - Constructor for class dev.blackilykat.pmp.client.Server.ActionSendingThread
- actionsToHandle - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Queue containing all received library actions that have not been completely handled.
- actionsToSend - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Queue containing all local library actions that have not been
ActionResponse.Type.COMPLETED. - actionThreadDispatcher - Static variable in class dev.blackilykat.pmp.client.Server
- ActionThreadDispatcher() - Constructor for class dev.blackilykat.pmp.client.Server.ActionThreadDispatcher
- actionType - Variable in class dev.blackilykat.pmp.Action
-
What kind of modification this action performs on the library
- actualTypeArguments - Variable in record class dev.blackilykat.pmp.util.ParType
-
The field for the
actualTypeArgumentsrecord component. - actualTypeArguments() - Method in record class dev.blackilykat.pmp.util.ParType
-
Returns the value of the
actualTypeArgumentsrecord component. - add(int, T) - Method in class dev.blackilykat.pmp.storage.StoredList
-
Add
objectat indexpositionto the list and mark storage as dirty. - add(String, InputStream) - Static method in class dev.blackilykat.pmp.server.Library
-
Adds a track to the library.
- add(T) - Method in class dev.blackilykat.pmp.storage.StoredBlockingDeque
-
Equivalent to
BlockingDeque.add(E) - add(T) - Method in class dev.blackilykat.pmp.storage.StoredList
-
Add
objectto the list and mark storage as dirty. - ADD - Enum constant in enum class dev.blackilykat.pmp.Action.Type
-
Add a new track to the library
- addFilter(Filter) - Static method in class dev.blackilykat.pmp.client.Library
-
Add a new filter and send the update to the server if possible.
- addHeader(Header) - Static method in class dev.blackilykat.pmp.client.Library
-
Add a new header.
- addOption(FilterOption) - Method in class dev.blackilykat.pmp.client.Filter
-
Add a filter option to this filter.
- addResponse(Response) - Method in class dev.blackilykat.pmp.messages.Request
-
Register a response to this request, allowing it to be handled by
Request.takeResponse() - addTrack(File) - Static method in class dev.blackilykat.pmp.client.Library
-
Add a track to the library using its file.
- addTrack(InputStream) - Static method in class dev.blackilykat.pmp.client.Library
-
Add a track to the library using an arbitrary InputStream.
- advanceOneFrame(InputStream) - Method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- album - Variable in class dev.blackilykat.pmp.client.Track
-
"album" value in
Track.metadata. - albumArtTempFile - Static variable in class dev.blackilykat.pmp.client.MPRISController
- ALL - Enum constant in enum class dev.blackilykat.pmp.RepeatOption
-
When at the end of the track list, get back to the start.
- applyOptionValues(List) - Method in class dev.blackilykat.pmp.client.Filter
-
Add and remove the necessary options to make the list of options match the given list.
- APPROVED - Enum constant in enum class dev.blackilykat.pmp.messages.ActionResponse.Type
-
This action requires data to be uploaded and the client has 30.0 seconds to start the HTTP request to upload the data.
- artists - Variable in class dev.blackilykat.pmp.client.Track
-
All "artist" metadata values in
Track.metadata. - ASCENDING - Enum constant in enum class dev.blackilykat.pmp.Order
- assignId() - Method in class dev.blackilykat.pmp.messages.Request
-
Incrementally assign a unique ID to this request.
- AudioBackend - Class in dev.blackilykat.pmp.client.audio
-
Abstraction layer to define audio backends to interact with the operating system and hardware.
- AudioBackend() - Constructor for class dev.blackilykat.pmp.client.audio.AudioBackend
- audioThread - Static variable in class dev.blackilykat.pmp.client.Player
-
Thread used to write audio to the backend.
- available() - Method in class dev.blackilykat.pmp.util.ConcatenatedInputStream
- awaitTermination(long, TimeUnit) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
B
- b - Variable in class dev.blackilykat.pmp.util.ConcatenatedInputStream
- backend - Static variable in class dev.blackilykat.pmp.client.audio.AudioBackend
-
The selected audio backend object.
- BAD_REQUEST - Enum constant in enum class dev.blackilykat.pmp.messages.LoginFailResponse.Reason
-
The client sent an invalid request.
- base - Variable in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- BIG_ENDIAN - Static variable in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- BITS_PER_SAMPLE - Static variable in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- BITS_PER_SAMPLE - Static variable in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- bitsPerSample - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
-
The target bits per sample to convert to.
- bitsPerSample - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- blockingPeek() - Method in class dev.blackilykat.pmp.storage.StoredBlockingDeque
-
Equivalent to
StoredBlockingDeque.peek(), but if the queue is empty blocks until a value is added. - broadcast(Message) - Static method in class dev.blackilykat.pmp.server.Device
-
Send a message to all connections which have logged in.
- broadcastExcept(Message, Device) - Static method in class dev.blackilykat.pmp.server.Device
-
Send a message to all connections which have logged in, except the one logged in as
ignoredDevice. - bufferSize - Variable in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
The field for the
bufferSizerecord component. - bufferSize() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns the value of the
bufferSizerecord component.
C
- call(T) - Method in class dev.blackilykat.pmp.event.EventSource
-
Call all registered listeners for this event source.
- call(T) - Method in class dev.blackilykat.pmp.event.RetroactiveEventSource
- cancel() - Method in class dev.blackilykat.pmp.PMPConnection.ReceivingMessageEvent
- cancelled - Variable in class dev.blackilykat.pmp.PMPConnection.ReceivingMessageEvent
- Carrier(ScopedValue, T) - Constructor for class dev.blackilykat.pmp.util.ScopedValue.Carrier
- CHANGE_METADATA - Enum constant in enum class dev.blackilykat.pmp.Action.Type
-
Change the metadata of a track while keeping the audio data untouched
- channels - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
-
The target channel amount to convert to.
- channels - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- CHANNELS - Static variable in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- CHANNELS - Static variable in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- checkAuthorization(HttpExchange) - Method in class dev.blackilykat.pmp.server.TransferHandler
-
Checks the request is coming from an authenticated device and responds as follows if not:
- checkLocalFilterChanges(List, List) - Static method in class dev.blackilykat.pmp.client.handlers.LoginSuccessResponseHandler
- checksum - Variable in class dev.blackilykat.pmp.client.Server.TrackElement
- checksum - Variable in class dev.blackilykat.pmp.client.Track
-
CRC32 checksum of the entire contents of this track.
- checksum - Variable in class dev.blackilykat.pmp.server.Track
-
Checksum of
Track.file, used to allow clients to notice differences in file contents. - checksumBuffer - Static variable in class dev.blackilykat.pmp.client.Track
-
Buffer used to avoid reallocating unnecessary memory when calculating checksums.
- clear() - Method in class dev.blackilykat.pmp.util.ExposedByteArrayOutputStream
- clientConnection - Variable in class dev.blackilykat.pmp.server.Device
-
Which connection this device is currently logged in in.
- ClientConnection - Class in dev.blackilykat.pmp.server
-
PMP Connection with a client.
- ClientConnection(Socket) - Constructor for class dev.blackilykat.pmp.server.ClientConnection
- clientID - Static variable in class dev.blackilykat.pmp.server.ClientConnection
-
Counter used to assign a unique name to each connection for logging.
- ClientStorage - Class in dev.blackilykat.pmp.client
-
All client storage files.
- ClientStorage() - Constructor for class dev.blackilykat.pmp.client.ClientStorage
- ClientStorage.Main - Class in dev.blackilykat.pmp.client
-
The main client storage file.
- ClientStorage.PlaybackInfo - Record Class in dev.blackilykat.pmp.client
-
Last known state of playback, including track, position, filters, repeat and shuffle.
- ClientStorage.Sensitive - Class in dev.blackilykat.pmp.client
-
The client sensitive file.
- clone() - Method in class dev.blackilykat.pmp.messages.Message
- close() - Method in class dev.blackilykat.pmp.client.audio.AudioBackend
-
Close the audio backend.
- close() - Method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- close() - Method in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- close() - Method in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- collectReloads(Runnable) - Static method in class dev.blackilykat.pmp.client.Library
-
Runs the specified runnable preventing the selection reloads from happening, then does a selection reload.
- compare(Track, Track) - Method in class dev.blackilykat.pmp.client.Header
-
Compare two tracks based on this header's key and type for sorting.
- COMPLETED - Enum constant in enum class dev.blackilykat.pmp.messages.ActionResponse.Type
-
This action has been completed.
- ConcatenatedInputStream - Class in dev.blackilykat.pmp.util
-
Similar to
SequenceInputStream, but the available method reports the sum of available bytes from both streams. - ConcatenatedInputStream(InputStream, InputStream) - Constructor for class dev.blackilykat.pmp.util.ConcatenatedInputStream
-
Construct this ConcatenatedInputStream using the two other given InputStreams.
- connect() - Static method in class dev.blackilykat.pmp.client.Server
-
Connect to the server.
- connected - Variable in class dev.blackilykat.pmp.PMPConnection
-
Whether the connection has been confirmed by receiving the PMP signature from the other side.
- connection - Static variable in class dev.blackilykat.pmp.client.Server
- connection - Variable in class dev.blackilykat.pmp.messages.Request
-
The connection this request was sent to.
- connection - Variable in class dev.blackilykat.pmp.PMPConnection.ReceivingMessageEvent
- connection - Variable in record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
The field for the
connectionrecord component. - connection() - Method in record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
Returns the value of the
connectionrecord component. - CONNECTION_TIMEOUT_SECONDS - Static variable in class dev.blackilykat.pmp.server.Library.PendingAction
-
How much time, in seconds, the client has to start the HTTP request to complete this action
- connectionLock - Static variable in class dev.blackilykat.pmp.client.Server
-
Used to prevent multiple threads opening a connection at the same time
- contains(T) - Method in class dev.blackilykat.pmp.storage.StoredList
-
Returns true if the list contains the specified object.
- containsKey(K) - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Returns
trueif the map contains a mapping for the specified key. - containsValue(V) - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Returns
trueif the map contains a mapping with the specified value. - convertedStream - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- ConvertingAudioBackend - Class in dev.blackilykat.pmp.client.audio
-
Audio backend that converts audio to a single PCM format.
- ConvertingAudioBackend(int, int, int, boolean) - Constructor for class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- creationTime - Variable in class dev.blackilykat.pmp.server.Library.PendingAction
-
When this action was
ActionResponse.Type.APPROVED, and when theLibrary.PendingAction.CONNECTION_TIMEOUT_SECONDSstarted - currentDeviceID - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
- currentFilterID - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Current filter ID.
- currentHeaderID - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Current header ID.
- currentLeftSample - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- currentRequestId - Static variable in class dev.blackilykat.pmp.messages.Request
- currentRightSample - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- currentTask - Variable in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- currentTrack - Static variable in class dev.blackilykat.pmp.client.Player
- CurrentTrackLoadEvent(Integer, Integer) - Constructor for record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
Creates an instance of a
CurrentTrackLoadEventrecord class.
D
- dataRoot - Static variable in class dev.blackilykat.pmp.Globals
-
The directory where all storage is saved to and loaded from.
- DECODING_EXECUTOR - Static variable in class dev.blackilykat.pmp.client.Player
-
Executor used to start the FLAC decoder and read the initial metadata.
- DEFAULT_FILE_PORT - Static variable in class dev.blackilykat.pmp.PMPConnection
-
The default port used for transferring files through HTTP.
- DEFAULT_MESSAGE_PORT - Static variable in class dev.blackilykat.pmp.PMPConnection
-
The default port used for transferring messages.
- DESCENDING - Enum constant in enum class dev.blackilykat.pmp.Order
- dev.blackilykat.pmp - package dev.blackilykat.pmp
- dev.blackilykat.pmp.client - package dev.blackilykat.pmp.client
- dev.blackilykat.pmp.client.audio - package dev.blackilykat.pmp.client.audio
- dev.blackilykat.pmp.client.handlers - package dev.blackilykat.pmp.client.handlers
- dev.blackilykat.pmp.event - package dev.blackilykat.pmp.event
- dev.blackilykat.pmp.messages - package dev.blackilykat.pmp.messages
- dev.blackilykat.pmp.server - package dev.blackilykat.pmp.server
- dev.blackilykat.pmp.server.handlers - package dev.blackilykat.pmp.server.handlers
- dev.blackilykat.pmp.storage - package dev.blackilykat.pmp.storage
- dev.blackilykat.pmp.util - package dev.blackilykat.pmp.util
- device - Variable in class dev.blackilykat.pmp.server.ClientConnection
-
The device this client has logged in as, or null if it has not logged in (yet).
- device - Variable in class dev.blackilykat.pmp.server.Library.PendingAction
-
Which device has started this action
- Device - Class in dev.blackilykat.pmp.server
-
Unique identifier for a client instance of PMP.
- Device(String) - Constructor for class dev.blackilykat.pmp.server.Device
-
Create a new device and assign it a unique ID.
- Device(String, int) - Constructor for class dev.blackilykat.pmp.server.Device
-
Create a device with a known ID, used while deserializing storage.
- DEVICE_ALREADY_CONNECTED - Enum constant in enum class dev.blackilykat.pmp.messages.LoginFailResponse.Reason
-
The device is already connected.
- deviceId - Static variable in class dev.blackilykat.pmp.client.Server
-
This device's id
- deviceId - Variable in class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
-
The previously stored device ID the client is attempting to log in as.
- deviceId - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The device id, either newly assigned or the same in the request.
- deviceId - Variable in class dev.blackilykat.pmp.messages.PlaybackOwnershipMessage
-
The id of the new playback owner or null if none.
- deviceID - Variable in class dev.blackilykat.pmp.client.ClientStorage.Sensitive
-
The id of this device.
- devices - Variable in class dev.blackilykat.pmp.server.ServerStorage.Sensitive
-
All known devices.
- dirty - Variable in class dev.blackilykat.pmp.storage.Storage
-
Whether the storage is dirty or not.
- disconnect(String) - Static method in class dev.blackilykat.pmp.client.Server
-
Disconnect from the server, but do not prevent attempts at automatically reconnecting.
- disconnect(String) - Method in class dev.blackilykat.pmp.PMPConnection
-
Terminate this connection.
- DisconnectMessage - Class in dev.blackilykat.pmp.messages
-
Used to indicate that a side is disconnecting from the socket.
- DisconnectMessage() - Constructor for class dev.blackilykat.pmp.messages.DisconnectMessage
- disconnectSoon(String) - Method in class dev.blackilykat.pmp.PMPConnection
-
Disconnect on the message sending thread as soon as all currently queued messages are sent.
- disconnectSoonWithoutRetrying(String) - Static method in class dev.blackilykat.pmp.client.Server
-
Disconnect in the message sending thread from the server and do not attempt to reconnect.
- disconnectWithoutRetrying(String) - Static method in class dev.blackilykat.pmp.client.Server
-
Disconnect from the server and do not attempt to reconnect.
- DONT_SEND_UPDATES - Static variable in class dev.blackilykat.pmp.client.Player
-
Used to avoid echoing updates back to the server after applying them locally.
- DOUBLE - Enum constant in enum class dev.blackilykat.pmp.client.Header.Type
-
One double value.
- DURATION - Enum constant in enum class dev.blackilykat.pmp.client.Header.Type
-
The duration of the track.
- durationSeconds - Variable in class dev.blackilykat.pmp.client.Track
-
Duration of this track in seconds.
E
- empty() - Method in class dev.blackilykat.pmp.storage.StoredList
-
Returns true if the list is empty.
- Encryption - Class in dev.blackilykat.pmp.server
-
Utility class to manage a shared
Encryption.sslContext. - Encryption() - Constructor for class dev.blackilykat.pmp.server.Encryption
- equals(Object) - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.FilterInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.blackilykat.pmp.util.ParType
-
Indicates whether some other object is "equal to" this one.
- ErrorMessage - Class in dev.blackilykat.pmp.messages
-
Message used to indicate that a programming error has manifested somewhere, likely by the receiving side.
- ErrorMessage(String) - Constructor for class dev.blackilykat.pmp.messages.ErrorMessage
- EVENT_CONNECTED - Static variable in class dev.blackilykat.pmp.client.Server
-
Emitted when the connection to the server is confirmed by receiving the PMP signature.
- EVENT_CURRENT_TRACK_LOAD - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted periodically as the current track loads.
- EVENT_DISCONNECTED - Static variable in class dev.blackilykat.pmp.client.Server
-
Emitted when the connection to the server is terminated for any reason.
- EVENT_DISCONNECTED - Static variable in class dev.blackilykat.pmp.PMPConnection
-
Event emitted when any connection has disconnected.
- EVENT_FILTER_ADDED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a filter is added either locally by the user or remotely through another device.
- EVENT_FILTER_MOVED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a filter is moved to a different position.
- EVENT_FILTER_REMOVED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a filter is removed either locally by the user or remotely through another device.
- EVENT_FILTERS_UPDATED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a filter was added, removed or moved.
- EVENT_HEADER_ADDED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a header is added.
- EVENT_HEADER_MOVED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a header is moved to a different position.
- EVENT_HEADER_REMOVED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a header is removed.
- EVENT_HEADERS_UPDATED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a header is added, removed or moved.
- EVENT_LOADED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when the library is done loading.
- EVENT_LOGGED_IN - Static variable in class dev.blackilykat.pmp.client.Server
-
Emitted when this device is confirmed to be logged in and has proper access to all messages.
- EVENT_MAY_SHUTDOWN_SOON - Static variable in class dev.blackilykat.pmp.util.Shutdown
-
Event called when either the program is shutting down or it may shut down soon.
- EVENT_NEXT_TRACK_CHANGED - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when the track scheduled to be played at the end of the current one is updated.
- EVENT_OPTION_ADDED - Static variable in class dev.blackilykat.pmp.client.Filter
-
Emitted when a filter option has been added to any filter.
- EVENT_OPTION_CHANGED_STATE - Static variable in class dev.blackilykat.pmp.client.Filter
-
Emitted when a filter option has changed its selected state.
- EVENT_OPTION_REMOVED - Static variable in class dev.blackilykat.pmp.client.Filter
-
Emitted when a filter option has been removed from any filters.
- EVENT_PLAY_PAUSE - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when the playing state has changed.
- EVENT_PLAYBACK_DEBUG_INFO - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when new debug info for playback is available.
- EVENT_PLAYBACK_OWNER_CHANGED - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when the playback owner changes.
- EVENT_PROGRESS - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted periodically while playback is progressing.
- EVENT_RECEIVING_MESSAGE - Static variable in class dev.blackilykat.pmp.PMPConnection
-
Emitted when any message is received on any client and allows to cancel it before it gets handled.
- EVENT_REPEAT_CHANGED - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when the current state of the repeat option has changed.
- EVENT_SEEK - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when the user seeks to a position in the current track.
- EVENT_SELECTED_TRACKS_UPDATED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when the list of filtered and sorted tracks is updated.
- EVENT_SHOULD_ASK_PASSWORD - Static variable in class dev.blackilykat.pmp.client.Server
-
Emitted when the client wants to log in but has no credentials to do so, either because it is logging in for the first time or because a previous login attempt has failed.
- EVENT_SHUFFLE_CHANGED - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when the current state of the shuffle option has changed.
- EVENT_SHUTDOWN - Static variable in class dev.blackilykat.pmp.server.Main
- EVENT_SHUTDOWN - Static variable in class dev.blackilykat.pmp.util.Shutdown
-
Event called when the program shuts down.
- EVENT_SORTING_HEADER_UPDATED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when the sorting is updated.
- EVENT_SUCCESSFUL_ACTION - Static variable in class dev.blackilykat.pmp.server.Library
-
Emitted when an action has been completed successfully.
- EVENT_TRACK_ADDED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a track is added to the library.
- EVENT_TRACK_CHANGE - Static variable in class dev.blackilykat.pmp.client.Player
-
Emitted when the currently playing track has changed.
- EVENT_TRACK_REMOVED - Static variable in class dev.blackilykat.pmp.client.Library
-
Emitted when a track is removed from the library.
- eventChangedState - Variable in class dev.blackilykat.pmp.client.FilterOption
-
Emitted when this filter option has changed its selected state.
- eventConnected - Variable in class dev.blackilykat.pmp.PMPConnection
-
Event emitted once this connection has been confirmed by receiving the other side's PMP signature.
- eventDisconnected - Variable in class dev.blackilykat.pmp.PMPConnection
-
Event emitted once this connection has been terminated for any reason.
- eventHeaderRemoved - Variable in class dev.blackilykat.pmp.client.Header
-
Emitted when the user removes this header.
- eventKeyChanged - Variable in class dev.blackilykat.pmp.client.Header
-
Emitted when the user updates this header's key.
- eventLabelChanged - Variable in class dev.blackilykat.pmp.client.Header
-
Emitted when the user updates this header's label.
- eventMaybeSaving - Variable in class dev.blackilykat.pmp.storage.Storage
-
Emitted before discarding a storage as non-dirty to check if separately stored state has changed.
- eventOptionAdded - Variable in class dev.blackilykat.pmp.client.Filter
-
Emitted when this filter option has been added to any filter.
- eventOptionRemoved - Variable in class dev.blackilykat.pmp.client.Filter
-
Emitted when this filter option has been removed from any filters.
- eventSaving - Variable in class dev.blackilykat.pmp.storage.Storage
-
Emitted before writing a storage to disk after confirming it is dirty.
- EventSource<T> - Class in dev.blackilykat.pmp.event
-
An event source is the object where you can register and call event listeners.
- EventSource() - Constructor for class dev.blackilykat.pmp.event.EventSource
- execute(Runnable) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- expectedPos - Variable in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
The field for the
expectedPosrecord component. - expectedPos() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns the value of the
expectedPosrecord component. - expectedWriteTime - Variable in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
The field for the
expectedWriteTimerecord component. - expectedWriteTime() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns the value of the
expectedWriteTimerecord component. - exportFilters() - Static method in class dev.blackilykat.pmp.client.Library
-
Export filters to a network-friendly list to be sent to the server.
- exportNegativeOptions() - Static method in class dev.blackilykat.pmp.client.Library
- exportPositiveOptions() - Static method in class dev.blackilykat.pmp.client.Library
- ExposedByteArrayOutputStream - Class in dev.blackilykat.pmp.util
-
java.io.ByteArrayOutputStream with some methods to allow easier usage without unnecessarily copying data from memory.
- ExposedByteArrayOutputStream() - Constructor for class dev.blackilykat.pmp.util.ExposedByteArrayOutputStream
- extractMetadata(File) - Static method in class dev.blackilykat.pmp.util.FLACUtil
-
Extracts FLAC vorbis metadata from the given file
- extractMetadata(Metadata[]) - Static method in class dev.blackilykat.pmp.util.FLACUtil
-
Convert the given metadata object array into a list of key-value pairs
F
- file - Variable in class dev.blackilykat.pmp.client.Track
-
The location of this track on the filesystem
- file - Variable in class dev.blackilykat.pmp.server.Track
-
The actual FLAC file location on disk.
- filename - Variable in class dev.blackilykat.pmp.Action
-
The track affected by this action
- filename - Variable in class dev.blackilykat.pmp.client.Server.TrackElement
- filename - Variable in class dev.blackilykat.pmp.server.Track
-
The name of
Track.file, needed to expose filename without the full path to clients. - fillLoginSuccessResponse(LoginSuccessResponse) - Static method in class dev.blackilykat.pmp.server.handlers.FilterListMessageHandler
- fillLoginSuccessResponse(LoginSuccessResponse) - Static method in class dev.blackilykat.pmp.server.Playback
-
Fill fields of a
LoginSuccessResponsewith information related to playback. - filter - Variable in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
The field for the
filterrecord component. - filter - Variable in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
The field for the
filterrecord component. - filter - Variable in record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
The field for the
filterrecord component. - filter - Variable in record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
The field for the
filterrecord component. - filter() - Method in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
Returns the value of the
filterrecord component. - filter() - Method in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Returns the value of the
filterrecord component. - filter() - Method in record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
Returns the value of the
filterrecord component. - filter() - Method in record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
Returns the value of the
filterrecord component. - Filter - Class in dev.blackilykat.pmp.client
-
Library filters are the tool offered to allow narrowing the library down to only desired tracks.
- Filter(int, String) - Constructor for class dev.blackilykat.pmp.client.Filter
- Filter(String) - Constructor for class dev.blackilykat.pmp.client.Filter
- Filter.OptionAddedEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Filter.EVENT_OPTION_ADDEDandFilter.eventOptionAdded. - Filter.OptionChangedStateEvent - Record Class in dev.blackilykat.pmp.client
- Filter.OptionRemovedEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Filter.EVENT_OPTION_REMOVEDandFilter.eventOptionRemoved. - FilterInfo - Record Class in dev.blackilykat.pmp
-
Serializable class for communicating filters.
- FilterInfo(int, String) - Constructor for record class dev.blackilykat.pmp.FilterInfo
-
Creates an instance of a
FilterInforecord class. - FilterListMessage - Class in dev.blackilykat.pmp.messages
-
Update the list of filters.
- FilterListMessage() - Constructor for class dev.blackilykat.pmp.messages.FilterListMessage
- FilterListMessage(List) - Constructor for class dev.blackilykat.pmp.messages.FilterListMessage
- FilterListMessageHandler - Class in dev.blackilykat.pmp.client.handlers
- FilterListMessageHandler - Class in dev.blackilykat.pmp.server.handlers
- FilterListMessageHandler() - Constructor for class dev.blackilykat.pmp.client.handlers.FilterListMessageHandler
- FilterListMessageHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.FilterListMessageHandler
- FilterMovedEvent(Filter, int) - Constructor for record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
Creates an instance of a
FilterMovedEventrecord class. - FilterOption - Class in dev.blackilykat.pmp.client
-
An option in a filter, represents a unique metadata value for the filter's key.
- FilterOption(String) - Constructor for class dev.blackilykat.pmp.client.FilterOption
- FilterOption.State - Enum Class in dev.blackilykat.pmp.client
-
Possible selection states of an option.
- filters - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Ids and keys of filters.
- filters - Variable in class dev.blackilykat.pmp.messages.FilterListMessage
- filters - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The list of all filters.
- filters - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
- findNextTrack() - Static method in class dev.blackilykat.pmp.client.Player
-
Find and return the next track which will be played after the current track.
- findPreviousTrack() - Static method in class dev.blackilykat.pmp.client.Player
-
Find and return the previous track which would've been played before the current track.
- finishPendingAction(boolean) - Static method in class dev.blackilykat.pmp.server.Library
-
Marks the pending action as finished, allowing others to take its place.
- FLACUtil - Class in dev.blackilykat.pmp.util
-
Utility class for reading metadata of FLAC files.
- FLACUtil() - Constructor for class dev.blackilykat.pmp.util.FLACUtil
- flush() - Method in class dev.blackilykat.pmp.client.audio.AudioBackend
-
Flush previous audio data.
- flush() - Method in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- frameAlign() - Method in class dev.blackilykat.pmp.client.audio.AudioBackend
-
Clear the backend audio buffer (if any) to avoid byte misalignment when seeking.
- frameAlign() - Method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- framePosition - Variable in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
The field for the
framePositionrecord component. - framePosition() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns the value of the
framePositionrecord component. - from - Variable in class dev.blackilykat.pmp.messages.GetActionsRequest
-
The first action to send
G
- get() - Method in class dev.blackilykat.pmp.storage.Stored
-
Get the inner stored value.
- get() - Method in class dev.blackilykat.pmp.storage.StoredBlockingDeque
- get() - Method in class dev.blackilykat.pmp.storage.StoredList
-
Get an unmodifiable view of the value.
- get() - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Get an unmodifiable view of the map.
- get() - Method in class dev.blackilykat.pmp.util.ScopedValue
- get(int) - Method in class dev.blackilykat.pmp.storage.StoredList
-
Returns the element at the specified position the list.
- get(K) - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Get the value for the given key from the map.
- GetActionsRequest - Class in dev.blackilykat.pmp.messages
-
Request by the client to get a list of actions, from
GetActionsRequest.fromto the latest. - GetActionsRequest(int) - Constructor for class dev.blackilykat.pmp.messages.GetActionsRequest
- GetActionsRequestHandler - Class in dev.blackilykat.pmp.server.handlers
- GetActionsRequestHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.GetActionsRequestHandler
- GetActionsResponse - Class in dev.blackilykat.pmp.messages
-
Response to a
GetActionsRequest. - GetActionsResponse(List, Integer) - Constructor for class dev.blackilykat.pmp.messages.GetActionsResponse
- getActualTypeArguments() - Method in record class dev.blackilykat.pmp.util.ParType
- getAlbum() - Method in class dev.blackilykat.pmp.client.Track
- getAndIncrement() - Method in class dev.blackilykat.pmp.storage.StoredInt
-
Increment the value by 1 and return the value it was before being incremented.
- getArtists() - Method in class dev.blackilykat.pmp.client.Track
- getBackingArray() - Method in class dev.blackilykat.pmp.util.ExposedByteArrayOutputStream
- getBitsPerSample() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getChannels() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getChecksum() - Method in class dev.blackilykat.pmp.client.Track
- getClientConnection() - Method in class dev.blackilykat.pmp.server.Device
- getDecoded() - Method in class dev.blackilykat.pmp.storage.StoredKey
-
Decode the stored base64 string into a
Key. - getDurationSeconds() - Method in class dev.blackilykat.pmp.client.Track
- getFile() - Method in class dev.blackilykat.pmp.client.Track
- getFirst() - Method in class dev.blackilykat.pmp.storage.StoredList
-
Returns the first element of the list.
- getKey() - Method in class dev.blackilykat.pmp.client.Header
- getLabel() - Method in class dev.blackilykat.pmp.client.Header
- getLast() - Method in class dev.blackilykat.pmp.storage.StoredList
-
Returns the last element of the list.
- getLastModified() - Method in class dev.blackilykat.pmp.client.Track
- getLatency() - Method in class dev.blackilykat.pmp.client.audio.AudioBackend
-
Get the latency, in milliseconds, as reported by the audio backend.
- getLatency() - Method in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- getMaxBlockSize() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getMaxFrameSize() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getMinBlockSize() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getMinFrameSize() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getOptions() - Method in class dev.blackilykat.pmp.client.Filter
-
Get an unmodifiable view of this filter's options.
- getOwnerType() - Method in record class dev.blackilykat.pmp.util.ParType
- getParent() - Method in class dev.blackilykat.pmp.client.FilterOption
- getPaused() - Static method in class dev.blackilykat.pmp.client.Player
- getPlaybackEpoch() - Static method in class dev.blackilykat.pmp.client.Player
-
Get the relative playback epoch.
- getPlaybackInfo() - Method in class dev.blackilykat.pmp.client.Track
- getPlaybackOwner() - Static method in class dev.blackilykat.pmp.client.Player
- getPosition() - Static method in class dev.blackilykat.pmp.client.Player
-
Returns the current playback position in milliseconds
- getRawType() - Method in record class dev.blackilykat.pmp.util.ParType
- getRepeat() - Static method in class dev.blackilykat.pmp.client.Player
- getSampleRate() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getSelectedTracks() - Static method in class dev.blackilykat.pmp.client.Library
-
Get an unmodifiable view of the current list of filtered and sorted tracks.
- getShuffle() - Static method in class dev.blackilykat.pmp.client.Player
- getSortingHeader() - Static method in class dev.blackilykat.pmp.client.Library
- getSortingOrder() - Static method in class dev.blackilykat.pmp.client.Library
- getSslContext() - Static method in class dev.blackilykat.pmp.server.Encryption
- getState() - Method in class dev.blackilykat.pmp.client.FilterOption
- getStringValue(Track) - Method in class dev.blackilykat.pmp.client.Header
- getTitle() - Method in class dev.blackilykat.pmp.client.Track
- getToken() - Method in class dev.blackilykat.pmp.server.Device
- getTotalSamples() - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- getTrack() - Static method in class dev.blackilykat.pmp.client.Player
- Globals - Class in dev.blackilykat.pmp
-
Class containing various global values which may be overridden during startup to change the behavior of underlying shared code.
- Globals() - Constructor for class dev.blackilykat.pmp.Globals
H
- handle(HttpExchange) - Method in class dev.blackilykat.pmp.server.TransferHandler
- handleAction(Action) - Static method in class dev.blackilykat.pmp.client.Server.ActionHandlingThread
- handleAddAction(Action) - Static method in class dev.blackilykat.pmp.client.Library
-
Handles an
Action.Type.ADDaction received from the server. - handleAddRequest(ClientConnection, ActionRequest) - Static method in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- handleAuthenticatedGet(HttpExchange) - Method in class dev.blackilykat.pmp.server.TransferHandler
-
Handle a GET request after verifying authorization headers.
- handleAuthenticatedPut(HttpExchange, int) - Method in class dev.blackilykat.pmp.server.TransferHandler
-
Handle a PUT request after verifying authorization headers.
- handleChangeMetadataRequest(ClientConnection, ActionRequest) - Static method in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- handleRemoveAction(Action) - Static method in class dev.blackilykat.pmp.client.Library
-
Handles a
Action.Type.REMOVEaction received from the server. - handleRemoveRequest(ClientConnection, ActionRequest) - Static method in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- handleReplaceAction(Action) - Static method in class dev.blackilykat.pmp.client.Library
-
Handles a
Action.Type.REPLACEaction received from the server. - handleReplaceRequest(ClientConnection, ActionRequest) - Static method in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- HANDLING_ACTION - Static variable in class dev.blackilykat.pmp.client.Server
-
Used to avoid echoing library actions back to the server
- hashCode() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.FilterInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.blackilykat.pmp.util.ParType
-
Returns a hash code value for this object.
- header - Variable in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
The field for the
headerrecord component. - header - Variable in record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
The field for the
headerrecord component. - header() - Method in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
Returns the value of the
headerrecord component. - header() - Method in record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
Returns the value of the
headerrecord component. - Header - Class in dev.blackilykat.pmp.client
-
A track header, used for sorting tracks and in some interfaces to display track data.
- Header(int, String) - Constructor for class dev.blackilykat.pmp.client.Header
-
This constructor allows the parser to create a "typeless" header, which will be updated when the library is loaded.
- Header(int, String, String) - Constructor for class dev.blackilykat.pmp.client.Header
- Header.Type - Enum Class in dev.blackilykat.pmp.client
-
The data type of this header.
- HeaderMovedEvent(Header, int, int) - Constructor for record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
Creates an instance of a
HeaderMovedEventrecord class. - headers - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
All track headers.
- hostname - Variable in class dev.blackilykat.pmp.messages.LoginAsNewDeviceRequest
-
The hostname of this device to allow the user to recognize it in a list of devices.
I
- id - Variable in class dev.blackilykat.pmp.client.Filter
-
The ID of this filter.
- id - Variable in class dev.blackilykat.pmp.client.Header
-
The ID of this header.
- id - Variable in record class dev.blackilykat.pmp.FilterInfo
-
The field for the
idrecord component. - id - Variable in class dev.blackilykat.pmp.messages.ActionMessage
-
The id of the action assigned incrementally by the server.
- id - Variable in class dev.blackilykat.pmp.server.Device
-
Numerical unique identifier used in the protocol to refer to a device.
- id() - Method in record class dev.blackilykat.pmp.FilterInfo
-
Returns the value of the
idrecord component. - IGNORE_FILTER_OPTION_UPDATE - Static variable in class dev.blackilykat.pmp.client.Library
-
Used to prevent recursion when handling filter option updates.
- importFilterOptions(List, List) - Static method in class dev.blackilykat.pmp.client.Library
- importFilters(List) - Static method in class dev.blackilykat.pmp.client.Library
-
Import filters from a network-friendly list sent by the server.
- INCORRECT_CREDENTIALS - Enum constant in enum class dev.blackilykat.pmp.messages.LoginFailResponse.Reason
-
Incorrect password or token, depending on which one was used.
- increment() - Method in class dev.blackilykat.pmp.storage.StoredInt
-
Increment the value by 1.
- index - Variable in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
The field for the
indexrecord component. - index() - Method in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
Returns the value of the
indexrecord component. - indexOf(T) - Method in class dev.blackilykat.pmp.storage.StoredList
-
Returns the index of the specified object in the list, or -1 if the list does not contain it.
- info - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
-
Audio format of the currently playing track.
- info - Variable in class dev.blackilykat.pmp.messages.ErrorMessage
-
Human-readable and unique info message about what happened.
- init() - Static method in class dev.blackilykat.pmp.client.Library
-
Initialize the state of the library:
- init() - Static method in class dev.blackilykat.pmp.client.MPRISController
-
Initializes the MPRIS controller.
- init() - Static method in class dev.blackilykat.pmp.client.Player
-
Initialize the state of the player and start necessary threads.
- init() - Static method in class dev.blackilykat.pmp.server.Encryption
-
Loads the key pair from
./keystore.jksif it exists, else generates one and writes it to that file. - init() - Static method in class dev.blackilykat.pmp.server.Library
-
Initializes the library:
- init() - Static method in class dev.blackilykat.pmp.server.Playback
-
Initializes saving and storing state to storage and register events related to the playback
Playback.owner. - init() - Static method in class dev.blackilykat.pmp.server.TransferHandler
-
Starts the HTTP server in port 6804
- initialized - Static variable in class dev.blackilykat.pmp.client.MPRISController
- INITIALIZED - Static variable in class dev.blackilykat.pmp.client.Library
- inputStream - Variable in class dev.blackilykat.pmp.PMPConnection
-
The input stream the raw incoming serialized messages get read from.
- INTEGER - Enum constant in enum class dev.blackilykat.pmp.client.Header.Type
-
One integer value.
- interrupt() - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
-
Interrupt the currently running task without preventing other tasks from being submitted later.
- INVALID - Enum constant in enum class dev.blackilykat.pmp.messages.ActionResponse.Type
-
This action is not valid (i.e. REMOVE on a non-existent track).
- invokeAll(Collection) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- invokeAll(Collection, long, TimeUnit) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- invokeAny(Collection) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- invokeAny(Collection, long, TimeUnit) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- isCancelled() - Method in class dev.blackilykat.pmp.PMPConnection.ReceivingMessageEvent
- isConnected() - Static method in class dev.blackilykat.pmp.client.Server
-
In most cases, you'll want to use
Server.isLoggedIn()instead. - isLastResponse() - Method in class dev.blackilykat.pmp.messages.ActionResponse
- isLastResponse() - Method in class dev.blackilykat.pmp.messages.Response
-
Returns whether this is expected to be the last response to this request or if there are more after this.
- isLoggedIn() - Static method in class dev.blackilykat.pmp.client.Server
-
Returns whether the client is connected to the server and is confirmed to be logged in successfully
- isPendingActionOverrideable() - Static method in class dev.blackilykat.pmp.server.Library
-
Returns true if it is possible to update the pending action.
- isPlaybackOwner() - Static method in class dev.blackilykat.pmp.client.Player
-
Returns true if this device is the playback owner or not logged in
- isShutdown() - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- isTerminated() - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
K
- KEEPALIVE_MAX_MS - Static variable in class dev.blackilykat.pmp.PMPConnection
-
The amount of milliseconds since the last keepalive after which a connection can be considered dropped.
- KEEPALIVE_MS - Static variable in class dev.blackilykat.pmp.PMPConnection
-
The amount of milliseconds between sending keepalives.
- keepaliveTimer - Variable in class dev.blackilykat.pmp.PMPConnection
-
The timer used to send keepalive messages.
- key - Variable in class dev.blackilykat.pmp.client.Filter
-
The metadata key by which tracks will be filtered.
- key - Variable in class dev.blackilykat.pmp.client.Header
-
The actual metadata key to sort by.
- key - Variable in record class dev.blackilykat.pmp.FilterInfo
-
The field for the
keyrecord component. - key - Variable in class dev.blackilykat.pmp.util.Pair
- key() - Method in record class dev.blackilykat.pmp.FilterInfo
-
Returns the value of the
keyrecord component.
L
- label - Variable in class dev.blackilykat.pmp.client.Header
-
The label shown in UI for this header.
- lastActionId - Static variable in class dev.blackilykat.pmp.client.Server
-
The server's last action id, used to tell whether to ask for missing actions through a
GetActionsRequest. - lastActionId - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The server's last action ID, used by the client to decide whether to request new actions.
- lastEvent - Variable in class dev.blackilykat.pmp.event.RetroactiveEventSource
- lastKeepalive - Variable in class dev.blackilykat.pmp.PMPConnection
-
Unix timestamp of the last keepalive.
- lastKnownServerFilters - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Last known state of filters on the server side.
- lastLeftSample - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- lastModified - Variable in class dev.blackilykat.pmp.client.Track
-
Last known modified date, used to keep caching up to date if contents change.
- lastModified - Variable in class dev.blackilykat.pmp.server.Track
-
Last known modification date of
Track.file, used to keep an up-to-date cache. - lastReceivedAction - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
The ID of the last action received, which may or may not have been handled.
- lastRightSample - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- lastStream - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- latency - Variable in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
The field for the
latencyrecord component. - latency() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns the value of the
latencyrecord component. - library - Static variable in class dev.blackilykat.pmp.client.Library
-
The directory containing the library.
- library - Static variable in class dev.blackilykat.pmp.Globals
-
The directory where tracks are saved to and loaded from.
- Library - Class in dev.blackilykat.pmp.client
-
General management of loading, updating, sorting, filtering the library.
- Library - Class in dev.blackilykat.pmp.server
-
Server-side library management.
- Library() - Constructor for class dev.blackilykat.pmp.client.Library
- Library() - Constructor for class dev.blackilykat.pmp.server.Library
- LIBRARY - Static variable in class dev.blackilykat.pmp.server.Library
-
The directory containing the tracks.
- Library.FilterMovedEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Library.EVENT_FILTER_MOVED - Library.HeaderMovedEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Library.EVENT_HEADER_MOVED - Library.PendingAction - Class in dev.blackilykat.pmp.server
-
A library action which has been
ActionResponse.Type.APPROVEDbut which the server is still waiting for the client toActionResponse.Type.COMPLETED. - Library.SelectedTracksUpdatedEvent - Record Class in dev.blackilykat.pmp.client
- Library.SortingHeaderUpdatedEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Library.EVENT_SORTING_HEADER_UPDATED - line - Variable in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- LineAudioBackend - Class in dev.blackilykat.pmp.client.audio
-
An audio backend which uses
SourceDataLineto interface with the OS. - LineAudioBackend() - Constructor for class dev.blackilykat.pmp.client.audio.LineAudioBackend
- Listener<T> - Interface in dev.blackilykat.pmp.event
-
Event listeners used to listen to
EventSources. - listeners - Variable in class dev.blackilykat.pmp.event.EventSource
-
The registered listeners to this source
- listeners - Variable in class dev.blackilykat.pmp.PMPConnection
-
All listeners registered for this connection.
- LITTLE_ENDIAN - Static variable in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- littleEndian - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
-
The target endianness to convert to.
- load() - Static method in class dev.blackilykat.pmp.client.ClientStorage
-
Load
ClientStorage.MAINandClientStorage.SENSITIVEfrom disk. - load() - Static method in class dev.blackilykat.pmp.server.ServerStorage
- load(Track, boolean, boolean) - Static method in class dev.blackilykat.pmp.client.Player
-
Load a track from disk.
- load(Track, CompletableFuture, CompletableFuture, Consumer) - Static method in class dev.blackilykat.pmp.client.Player
-
Loads the specified track's album art and PCM data in the playback audio format.
- load(String, Class) - Static method in class dev.blackilykat.pmp.storage.Storage
-
Load a storage from disk.
- loaded - Variable in record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
The field for the
loadedrecord component. - loaded() - Method in record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
Returns the value of the
loadedrecord component. - LOADING_BUFFER_SIZE - Static variable in class dev.blackilykat.pmp.client.Player
-
Buffer size when loading track from disk.
- LOADING_EXECUTOR - Static variable in class dev.blackilykat.pmp.client.Player
-
Executor started from
Player.DECODING_EXECUTORwhich reads the actual audio data from FLAC files. - loadPlaybackInfo(ClientStorage.PlaybackInfo) - Static method in class dev.blackilykat.pmp.client.Player
-
Restore the playback state from storage.
- loadValues(T, ObjectNode, Class) - Static method in class dev.blackilykat.pmp.storage.Storage
- local - Variable in class dev.blackilykat.pmp.util.ScopedValue
- logDebugSystemInfo() - Static method in class dev.blackilykat.pmp.client.Main
-
Log debug information about the system the program is running in.
- LOGGER - Static variable in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- LOGGER - Static variable in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- LOGGER - Static variable in class dev.blackilykat.pmp.client.handlers.LoginFailResponseHandler
- LOGGER - Static variable in class dev.blackilykat.pmp.client.Header
- LOGGER - Static variable in class dev.blackilykat.pmp.client.Library
- LOGGER - Static variable in class dev.blackilykat.pmp.client.Main
- LOGGER - Static variable in class dev.blackilykat.pmp.client.MPRISController
- LOGGER - Static variable in class dev.blackilykat.pmp.client.Player
- LOGGER - Static variable in class dev.blackilykat.pmp.client.Server
- LOGGER - Static variable in class dev.blackilykat.pmp.event.EventSource
- LOGGER - Static variable in class dev.blackilykat.pmp.MessageHandler
- LOGGER - Static variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
- LOGGER - Static variable in class dev.blackilykat.pmp.PMPConnection
- LOGGER - Static variable in class dev.blackilykat.pmp.server.Device
- LOGGER - Static variable in class dev.blackilykat.pmp.server.Encryption
- LOGGER - Static variable in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- LOGGER - Static variable in class dev.blackilykat.pmp.server.handlers.LoginAsExistingDeviceRequestHandler
- LOGGER - Static variable in class dev.blackilykat.pmp.server.handlers.LoginAsNewDeviceRequestHandler
- LOGGER - Static variable in class dev.blackilykat.pmp.server.handlers.PlaybackOwnershipMessageHandler
- LOGGER - Static variable in class dev.blackilykat.pmp.server.Library
- LOGGER - Static variable in class dev.blackilykat.pmp.server.Main
- LOGGER - Static variable in class dev.blackilykat.pmp.server.Track
- LOGGER - Static variable in class dev.blackilykat.pmp.server.TransferHandler
- LOGGER - Static variable in class dev.blackilykat.pmp.storage.SensitiveStorage
- LOGGER - Static variable in class dev.blackilykat.pmp.storage.Storage
- LOGGER - Static variable in class dev.blackilykat.pmp.storage.StoredKey
- LOGGER - Static variable in class dev.blackilykat.pmp.util.FLACUtil
- LOGGER - Static variable in class dev.blackilykat.pmp.util.LoggingProxy
- LOGGER - Static variable in class dev.blackilykat.pmp.util.Shutdown
- LoggingProxy - Class in dev.blackilykat.pmp.util
-
Class used to proxy
System.outandSystem.errto be logged through log4j. - LoggingProxy() - Constructor for class dev.blackilykat.pmp.util.LoggingProxy
- LoginAsExistingDeviceRequest - Class in dev.blackilykat.pmp.messages
-
Request to log in as an existing device.
- LoginAsExistingDeviceRequest(int) - Constructor for class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
-
Private constructor used in
LoginAsExistingDeviceRequest.newWithPassword(String, int)andLoginAsExistingDeviceRequest.newWithToken(String, int)and by the JSON deserializer. - LoginAsExistingDeviceRequestHandler - Class in dev.blackilykat.pmp.server.handlers
- LoginAsExistingDeviceRequestHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.LoginAsExistingDeviceRequestHandler
- LoginAsNewDeviceRequest - Class in dev.blackilykat.pmp.messages
-
Request to log in as a new device.
- LoginAsNewDeviceRequest(String, String) - Constructor for class dev.blackilykat.pmp.messages.LoginAsNewDeviceRequest
- LoginAsNewDeviceRequestHandler - Class in dev.blackilykat.pmp.server.handlers
- LoginAsNewDeviceRequestHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.LoginAsNewDeviceRequestHandler
- LoginFailResponse - Class in dev.blackilykat.pmp.messages
-
A login request was rejected.
- LoginFailResponse(Integer, LoginFailResponse.Reason) - Constructor for class dev.blackilykat.pmp.messages.LoginFailResponse
- LoginFailResponse.Reason - Enum Class in dev.blackilykat.pmp.messages
-
Machine readable reason for why the login has failed.
- LoginFailResponseHandler - Class in dev.blackilykat.pmp.client.handlers
- LoginFailResponseHandler() - Constructor for class dev.blackilykat.pmp.client.handlers.LoginFailResponseHandler
- LoginSuccessResponse - Class in dev.blackilykat.pmp.messages
-
After a request, the client is now logged in.
- LoginSuccessResponse(Integer, Integer, String, int) - Constructor for class dev.blackilykat.pmp.messages.LoginSuccessResponse
- LoginSuccessResponseHandler - Class in dev.blackilykat.pmp.client.handlers
- LoginSuccessResponseHandler() - Constructor for class dev.blackilykat.pmp.client.handlers.LoginSuccessResponseHandler
M
- main(String[]) - Static method in class dev.blackilykat.pmp.client.Main
-
The entry point of the client's logic layer.
- main(String[]) - Static method in class dev.blackilykat.pmp.server.Main
- Main - Class in dev.blackilykat.pmp.client
-
The entry point of the client's logic layer.
- Main - Class in dev.blackilykat.pmp.server
-
The entry point.
- Main() - Constructor for class dev.blackilykat.pmp.client.ClientStorage.Main
- Main() - Constructor for class dev.blackilykat.pmp.client.Main
- Main() - Constructor for class dev.blackilykat.pmp.server.Main
- Main() - Constructor for class dev.blackilykat.pmp.server.ServerStorage.Main
- MAIN - Static variable in class dev.blackilykat.pmp.client.ClientStorage
-
The main client storage file.
- MAIN - Static variable in class dev.blackilykat.pmp.server.ServerStorage
- makeFilename(List) - Static method in class dev.blackilykat.pmp.client.Track
- mapper - Static variable in class dev.blackilykat.pmp.PMPConnection
- MAPPER - Static variable in class dev.blackilykat.pmp.storage.Storage
- markDirty() - Method in class dev.blackilykat.pmp.storage.SensitiveStorage
-
Save the storage to disk instead of marking it as dirty.
- markDirty() - Method in class dev.blackilykat.pmp.storage.Storage
-
Marks this storage as dirty, to be saved periodically or during shutdown.
- matches(FilterOption) - Method in class dev.blackilykat.pmp.client.Track
- maxBlockSize - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- maxFrameSize - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- maybeSave() - Method in class dev.blackilykat.pmp.storage.Storage
-
Periodically called to save storage if dirty.
- mayShutdownSoon() - Static method in class dev.blackilykat.pmp.util.Shutdown
- message - Variable in class dev.blackilykat.pmp.PMPConnection.ReceivingMessageEvent
- Message - Class in dev.blackilykat.pmp.messages
-
Base class of all messages.
- Message() - Constructor for class dev.blackilykat.pmp.messages.Message
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.ActionMessage
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.ActionRequest
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.ActionResponse
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.DisconnectMessage
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.ErrorMessage
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.FilterListMessage
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.GetActionsRequest
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.GetActionsResponse
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.LoginAsNewDeviceRequest
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.LoginFailResponse
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.PlaybackOwnershipMessage
- MESSAGE_TYPE - Static variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
- MessageHandler<T> - Class in dev.blackilykat.pmp
-
Used to define handling logic for messages.
- MessageHandler(Class) - Constructor for class dev.blackilykat.pmp.MessageHandler
- MessageListener<T> - Class in dev.blackilykat.pmp
-
Class used to listen to messages from a specific connection.
- MessageListener(Class) - Constructor for class dev.blackilykat.pmp.MessageListener
- messageQueue - Variable in class dev.blackilykat.pmp.PMPConnection
-
The queue of non-serialized messages to be sent.
- messageReceivingThread - Variable in class dev.blackilykat.pmp.PMPConnection
-
The thread which reads incoming messages and calls their listeners and handlers.
- MessageReceivingThread() - Constructor for class dev.blackilykat.pmp.PMPConnection.MessageReceivingThread
- messageSendingThread - Variable in class dev.blackilykat.pmp.PMPConnection
-
The thread which serializes and writes outgoing messages.
- MessageSendingThread() - Constructor for class dev.blackilykat.pmp.PMPConnection.MessageSendingThread
- metadata - Variable in class dev.blackilykat.pmp.client.Server.TrackElement
- metadata - Variable in class dev.blackilykat.pmp.client.Track
-
All FLAC metadata contained in this track.
- metadata - Variable in class dev.blackilykat.pmp.server.Track
-
All FLAC metadata in the file.
- minBlockSize - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- minFrameSize - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- moveFilter(Filter, int) - Static method in class dev.blackilykat.pmp.client.Library
-
Move an existing filter to a new position and send the update to the server if possible.
- moveHeader(Header, int) - Static method in class dev.blackilykat.pmp.client.Library
-
Move an existing header to a new position.
- mpris - Static variable in class dev.blackilykat.pmp.client.MPRISController
- MPRISController - Class in dev.blackilykat.pmp.client
-
Handles exposing playback state to MPRIS.
- MPRISController() - Constructor for class dev.blackilykat.pmp.client.MPRISController
- msToBytes(long) - Method in class dev.blackilykat.pmp.client.Track.PlaybackInfo
N
- name - Variable in class dev.blackilykat.pmp.PMPConnection
-
The name of this connection, used to differentiate logging on the server side.
- name - Variable in class dev.blackilykat.pmp.server.Device
-
Hostname of the device's computer.
- name - Variable in class dev.blackilykat.pmp.storage.Storage
-
The name of the storage, used for logging and to determine the filename.
- NAME - Static variable in class dev.blackilykat.pmp.client.ClientStorage.Main
- NAME - Static variable in class dev.blackilykat.pmp.client.ClientStorage.Sensitive
- NAME - Static variable in class dev.blackilykat.pmp.server.ServerStorage.Main
- NAME - Static variable in class dev.blackilykat.pmp.server.ServerStorage.Sensitive
- NEGATIVE - Enum constant in enum class dev.blackilykat.pmp.client.FilterOption.State
-
All tracks with a metadata entry which matches the
FilterOption.parent'sFilter.keyandFilterOption.value(both case-insensitive) will not match, even if they match another option withFilterOption.State.POSITIVEstate. - negativeFilterOptions - Variable in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
The field for the
negativeFilterOptionsrecord component. - negativeFilterOptions - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
All filter options selected
FilterOption.State.NEGATIVEly. - negativeFilterOptions() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns the value of the
negativeFilterOptionsrecord component. - negativeOptions - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The list of selected negative options.
- negativeOptions - Variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
-
New negative filter options or null
- negativeOptions - Variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
-
The list of selected negative options or null if unchanged.
- newInstance() - Static method in class dev.blackilykat.pmp.util.ScopedValue
-
Creates a scoped value that is initially unbound for all threads.
- newMetadata - Variable in class dev.blackilykat.pmp.Action
-
Only present when
Action.actionType==Action.Type.CHANGE_METADATA. - newPosition - Variable in record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
The field for the
newPositionrecord component. - newPosition - Variable in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
The field for the
newPositionrecord component. - newPosition() - Method in record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
Returns the value of the
newPositionrecord component. - newPosition() - Method in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
Returns the value of the
newPositionrecord component. - newSelection - Variable in record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
The field for the
newSelectionrecord component. - newSelection() - Method in record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
Returns the value of the
newSelectionrecord component. - newState - Variable in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
The field for the
newStaterecord component. - newState() - Method in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Returns the value of the
newStaterecord component. - newWithPassword(String, int) - Static method in class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
-
Create a login request using a user-entered password.
- newWithToken(String, int) - Static method in class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
-
Create a login request using a previously stored token.
- next() - Static method in class dev.blackilykat.pmp.client.Player
-
Start playing the next track, or pause playback if there is none.
- nextTrack - Static variable in class dev.blackilykat.pmp.client.Player
- NO_DIRTY - Static variable in class dev.blackilykat.pmp.storage.Storage
-
Used while loading to prevent the setters of
Storedfields called while deserializing JSON from marking the loading storage as dirty. - NO_RELOAD_SELECTION - Static variable in class dev.blackilykat.pmp.client.Library
-
True when
Library.reloadSelection()should be prevented from running for performance reasons. - NO_SUCH_DEVICE - Enum constant in enum class dev.blackilykat.pmp.messages.LoginFailResponse.Reason
-
The client tried to log in with a device ID which does not exist.
- NONE - Enum constant in enum class dev.blackilykat.pmp.client.FilterOption.State
-
This option will not cause any track to match, but will not prevent any track from matching either.
O
- OFF - Enum constant in enum class dev.blackilykat.pmp.RepeatOption
-
When at the end of the track list, stop playing.
- OFF - Enum constant in enum class dev.blackilykat.pmp.ShuffleOption
-
Play tracks in sequential order based on the selected filters and sorting.
- oldPosition - Variable in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
The field for the
oldPositionrecord component. - oldPosition() - Method in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
Returns the value of the
oldPositionrecord component. - oldSelection - Variable in record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
The field for the
oldSelectionrecord component. - oldSelection() - Method in record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
Returns the value of the
oldSelectionrecord component. - oldState - Variable in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
The field for the
oldStaterecord component. - oldState() - Method in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Returns the value of the
oldStaterecord component. - ON - Enum constant in enum class dev.blackilykat.pmp.ShuffleOption
-
Randomly select a new track excluding the currently playing track.
- option - Variable in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
The field for the
optionrecord component. - option - Variable in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
The field for the
optionrecord component. - option - Variable in record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
The field for the
optionrecord component. - option() - Method in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
Returns the value of the
optionrecord component. - option() - Method in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Returns the value of the
optionrecord component. - option() - Method in record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
Returns the value of the
optionrecord component. - OPTION_EVERYTHING - Static variable in class dev.blackilykat.pmp.client.Filter
-
String used in filter options to represent matching every track for the filter.
- OPTION_UNKNOWN - Static variable in class dev.blackilykat.pmp.client.Filter
-
String used in filter options to represent matching tracks which do not have the metadata described by the filter.
- OptionAddedEvent(Filter, int, FilterOption) - Constructor for record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
Creates an instance of a
OptionAddedEventrecord class. - OptionChangedStateEvent(Filter, FilterOption, FilterOption.State, FilterOption.State) - Constructor for record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Creates an instance of a
OptionChangedStateEventrecord class. - OptionRemovedEvent(Filter, FilterOption) - Constructor for record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
Creates an instance of a
OptionRemovedEventrecord class. - options - Variable in class dev.blackilykat.pmp.client.Filter
-
The actual options in this filter, along with their state.
- order - Variable in record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
The field for the
orderrecord component. - order() - Method in record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
Returns the value of the
orderrecord component. - Order - Enum Class in dev.blackilykat.pmp
-
Enum specifying possible sorting orders.
- Order() - Constructor for enum class dev.blackilykat.pmp.Order
- orElse(T) - Method in class dev.blackilykat.pmp.util.ScopedValue
-
Returns the value of this scoped value if bound in the current thread, otherwise returns
other. - outputStream - Variable in class dev.blackilykat.pmp.PMPConnection
-
The output stream the raw serialized messages get written to.
- outputStreamLock - Variable in class dev.blackilykat.pmp.PMPConnection
-
The object used to keep exclusive access to
PMPConnection.outputStream. - OverridingSingleThreadExecutor - Class in dev.blackilykat.pmp.util
-
Single thread executor service which interrupts a previous task whenever a new one is submitted.
- OverridingSingleThreadExecutor() - Constructor for class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- owner - Static variable in class dev.blackilykat.pmp.server.Playback
-
The device which currently owns playback.
- ownerType - Variable in record class dev.blackilykat.pmp.util.ParType
-
The field for the
ownerTyperecord component. - ownerType() - Method in record class dev.blackilykat.pmp.util.ParType
-
Returns the value of the
ownerTyperecord component.
P
- Pair<T,
U> - Class in dev.blackilykat.pmp.util -
Basic utility generic class to store two values at once.
- Pair() - Constructor for class dev.blackilykat.pmp.util.Pair
- Pair(T, U) - Constructor for class dev.blackilykat.pmp.util.Pair
- parent - Variable in class dev.blackilykat.pmp.client.FilterOption
-
The filter this option is in.
- ParType - Record Class in dev.blackilykat.pmp.util
-
Instantiatable
ParameterizedType. - ParType(Type, Type[]) - Constructor for record class dev.blackilykat.pmp.util.ParType
- ParType(Type, Type, Type[]) - Constructor for record class dev.blackilykat.pmp.util.ParType
-
Creates an instance of a
ParTyperecord class. - paSimple - Variable in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- password - Variable in class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
-
The user-entered password, if a previous attempt at using the token has failed.
- password - Variable in class dev.blackilykat.pmp.messages.LoginAsNewDeviceRequest
-
The user entered password.
- password - Variable in class dev.blackilykat.pmp.server.ServerStorage.Sensitive
-
The password the user must enter to log in with a new device.
- pause() - Static method in class dev.blackilykat.pmp.client.Player
-
Pause playback.
- paused - Static variable in class dev.blackilykat.pmp.client.Player
- pcm - Static variable in class dev.blackilykat.pmp.client.Player
-
Decoded PCM data of the
Player.currentTrack, in its original audio format. - peek() - Method in class dev.blackilykat.pmp.storage.StoredBlockingDeque
-
Equivalent to
BlockingDeque.peek() - PENDING_ACTION - Static variable in class dev.blackilykat.pmp.server.Library
-
The library action which has been
ActionResponse.Type.APPROVEDbut which the server is still waiting for the client toActionResponse.Type.COMPLETED. - PendingAction(Action, Device) - Constructor for class dev.blackilykat.pmp.server.Library.PendingAction
-
Create a pending action that starts now
- PendingAction(Action, Device, long) - Constructor for class dev.blackilykat.pmp.server.Library.PendingAction
- pendingRequests - Variable in class dev.blackilykat.pmp.PMPConnection
-
All requests and their ids which are still pending a final response.
- picture - Variable in record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
The field for the
picturerecord component. - picture() - Method in record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
Returns the value of the
picturerecord component. - play() - Static method in class dev.blackilykat.pmp.client.Player
-
Start playing the current track.
- play(Track) - Static method in class dev.blackilykat.pmp.client.Player
-
Load the specified track and start playing.
- Playback - Class in dev.blackilykat.pmp.server
-
Management of the state of playback.
- Playback() - Constructor for class dev.blackilykat.pmp.server.Playback
- PLAYBACK_AUDIO_FORMAT - Static variable in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- PLAYBACK_BUFFER_SIZE - Static variable in class dev.blackilykat.pmp.client.Player
-
Buffer size when playing the already loaded audio.
- PLAYBACK_WRITE_COOLDOWN_MULTIPLIER - Static variable in class dev.blackilykat.pmp.client.Player
-
Cooldown multiplier when writing to audio lines.
- PlaybackControlMessage - Class in dev.blackilykat.pmp.messages
-
Used to indicate that a device is trying to control the playback owner
- PlaybackControlMessage() - Constructor for class dev.blackilykat.pmp.messages.PlaybackControlMessage
- PlaybackControlMessageHandler - Class in dev.blackilykat.pmp.client.handlers
- PlaybackControlMessageHandler - Class in dev.blackilykat.pmp.server.handlers
- PlaybackControlMessageHandler() - Constructor for class dev.blackilykat.pmp.client.handlers.PlaybackControlMessageHandler
- PlaybackControlMessageHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.PlaybackControlMessageHandler
- PlaybackDebugInfoEvent(int, int, int, int, int, double, double) - Constructor for record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Creates an instance of a
PlaybackDebugInfoEventrecord class. - playbackEpoch - Static variable in class dev.blackilykat.pmp.client.Player
-
Timestamp used to keep track of the current playback position when playing.
- playbackInfo - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Last known state of playback, including track, position, filters, repeat and shuffle.
- playbackInfo - Variable in class dev.blackilykat.pmp.client.Track
-
Audio format for this track
- PlaybackInfo(int, int, int, int, int, int, int, long) - Constructor for class dev.blackilykat.pmp.client.Track.PlaybackInfo
- PlaybackInfo(String, long, List, List, RepeatOption, ShuffleOption) - Constructor for record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Creates an instance of a
PlaybackInforecord class. - PlaybackInfo(StreamInfo) - Constructor for class dev.blackilykat.pmp.client.Track.PlaybackInfo
- playbackOwner - Static variable in class dev.blackilykat.pmp.client.Player
-
current playback owner's device ID.
- playbackOwner - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The device ID of the current playback owner.
- PlaybackOwnershipMessage - Class in dev.blackilykat.pmp.messages
-
Used to claim playback ownership and to indicate ownership has changed.
- PlaybackOwnershipMessage() - Constructor for class dev.blackilykat.pmp.messages.PlaybackOwnershipMessage
-
Create a message with no device ID
- PlaybackOwnershipMessage(int) - Constructor for class dev.blackilykat.pmp.messages.PlaybackOwnershipMessage
-
Create a message with the specified device ID
- PlaybackOwnershipMessageHandler - Class in dev.blackilykat.pmp.client.handlers
- PlaybackOwnershipMessageHandler - Class in dev.blackilykat.pmp.server.handlers
- PlaybackOwnershipMessageHandler() - Constructor for class dev.blackilykat.pmp.client.handlers.PlaybackOwnershipMessageHandler
- PlaybackOwnershipMessageHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.PlaybackOwnershipMessageHandler
- playbackPosition - Static variable in class dev.blackilykat.pmp.client.Player
-
Current playback position when paused.
- PlaybackUpdateMessage - Class in dev.blackilykat.pmp.messages
-
Used to indicate that the playback owner has updated information
- PlaybackUpdateMessage() - Constructor for class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
- PlaybackUpdateMessageHandler - Class in dev.blackilykat.pmp.client.handlers
- PlaybackUpdateMessageHandler - Class in dev.blackilykat.pmp.server.handlers
- PlaybackUpdateMessageHandler() - Constructor for class dev.blackilykat.pmp.client.handlers.PlaybackUpdateMessageHandler
- PlaybackUpdateMessageHandler() - Constructor for class dev.blackilykat.pmp.server.handlers.PlaybackUpdateMessageHandler
- Player - Class in dev.blackilykat.pmp.client
-
Handle playback and related state
- Player() - Constructor for class dev.blackilykat.pmp.client.Player
- Player.CurrentTrackLoadEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Player.EVENT_CURRENT_TRACK_LOAD - Player.PlaybackDebugInfoEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Player.EVENT_PLAYBACK_DEBUG_INFO - Player.TrackChangeEvent - Record Class in dev.blackilykat.pmp.client
-
Data for
Player.EVENT_TRACK_CHANGE - playing - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
Whether playback is playing or paused.
- playing - Variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
-
true to start playing, false to pause, or null
- playing - Variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
-
Whether playback is playing or paused or null if unchanged.
- playing - Static variable in class dev.blackilykat.pmp.server.Playback
-
True if playing, false if paused.
- playPause() - Static method in class dev.blackilykat.pmp.client.Player
-
Toggle between
Player.play()ing andPlayer.pause()ing. - PMPConnection - Class in dev.blackilykat.pmp
-
Defines a connection which uses PMP's protocol.
- PMPConnection(Socket, String) - Constructor for class dev.blackilykat.pmp.PMPConnection
-
Initiate a PMP connection:
- PMPConnection.MessageReceivingThread - Class in dev.blackilykat.pmp
-
The thread which reads incoming messages and calls their listeners and handlers.
- PMPConnection.MessageSendingThread - Class in dev.blackilykat.pmp
-
The thread which serializes and writes outgoing messages.
- PMPConnection.ReceivingMessageEvent - Class in dev.blackilykat.pmp
- position - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
-
Value that represents how far from the last OG sample the next converted sample is in the time domain, measured in OG samples.
- position - Variable in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
The field for the
positionrecord component. - position - Variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
-
Position in ms to seek to or null
- position - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
Position in the playing track in milliseconds.
- position() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns the value of the
positionrecord component. - positionOrEpoch - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
If playing the relative epoch of when the song started, else the position in milliseconds.
- positionOrEpoch - Variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
-
If playing the relative epoch of when the song started, else the position in milliseconds.
- positionOrEpoch - Static variable in class dev.blackilykat.pmp.server.Playback
-
If
Playback.playing, the epoch of when playback started. - POSITIVE - Enum constant in enum class dev.blackilykat.pmp.client.FilterOption.State
-
All tracks with a metadata entry which matches the
FilterOption.parent'sFilter.keyandFilterOption.value(both case-insensitive) will match, unless they also match an option withFilterOption.State.NEGATIVEstate. - positiveFilterOptions - Variable in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
The field for the
positiveFilterOptionsrecord component. - positiveFilterOptions - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
All filter options selected
FilterOption.State.POSITIVEly. - positiveFilterOptions() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns the value of the
positiveFilterOptionsrecord component. - positiveOptions - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The list of selected positive options.
- positiveOptions - Variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
-
New positive filter options or null
- positiveOptions - Variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
-
The list of selected positive options or null if unchanged.
- previous() - Static method in class dev.blackilykat.pmp.client.Player
-
Start playing the previous track, or pause playback if there is none.
- PROGRESS_EXECUTOR - Static variable in class dev.blackilykat.pmp.client.Player
-
Executor used to periodically call
Player.EVENT_PROGRESS. - proxy(PrintStream, String, Level) - Static method in class dev.blackilykat.pmp.util.LoggingProxy
-
Sets up a single logging proxy.
- PulseAudioBackend - Class in dev.blackilykat.pmp.client.audio
-
Audio backend using PulseAudio.
- PulseAudioBackend() - Constructor for class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- put(K, V) - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Put the given key and value in the map and mark storage as dirty.
Q
- QUEUE - Static variable in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- QUEUED - Enum constant in enum class dev.blackilykat.pmp.messages.ActionResponse.Type
-
Another client may or may not be currently performing an action and this one has been queued.
- QueueEntry(ClientConnection, ActionRequest) - Constructor for record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
Creates an instance of a
QueueEntryrecord class.
R
- rawType - Variable in record class dev.blackilykat.pmp.util.ParType
-
The field for the
rawTyperecord component. - rawType() - Method in record class dev.blackilykat.pmp.util.ParType
-
Returns the value of the
rawTyperecord component. - read() - Method in class dev.blackilykat.pmp.util.ConcatenatedInputStream
- readSample(InputStream, int, boolean) - Static method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- reason - Variable in class dev.blackilykat.pmp.messages.LoginFailResponse
-
Machine readable reason for why the login has failed.
- Reason() - Constructor for enum class dev.blackilykat.pmp.messages.LoginFailResponse.Reason
- ReceivingMessageEvent(Message, PMPConnection) - Constructor for class dev.blackilykat.pmp.PMPConnection.ReceivingMessageEvent
- RECONNECT_COOLDOWN_MS - Static variable in class dev.blackilykat.pmp.client.Server
- RECONNECT_TIMER - Static variable in class dev.blackilykat.pmp.client.Server
- register() - Method in class dev.blackilykat.pmp.MessageHandler
-
Irreversibly dd this handler to the list of registered handlers.
- register() - Method in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- register(Listener) - Method in class dev.blackilykat.pmp.event.EventSource
-
Register a listener to this source.
- register(Listener) - Method in class dev.blackilykat.pmp.event.RetroactiveEventSource
- registeredHandlers - Static variable in class dev.blackilykat.pmp.MessageHandler
-
Holds all registered handlers for the running program.
- registerHandlers() - Static method in class dev.blackilykat.pmp.server.Main
-
Register
MessageHandlers to handle incoming messages by clients and an event listener to block all non-login messages from non logged in clients. - registerListener(MessageListener) - Method in class dev.blackilykat.pmp.PMPConnection
-
Register a message listener for this connection.
- registerNewTrack(File) - Static method in class dev.blackilykat.pmp.client.Library
-
Start properly tracking a newly added track of which the file is already in the library.
- registerOneTime(EventSource, Listener) - Static method in interface dev.blackilykat.pmp.event.Listener
-
Creates a listener which unregisters itself after being called once
- reload() - Method in class dev.blackilykat.pmp.server.Track
-
Reload lastModified, checksum and metadata from file
- reloadSelection() - Static method in class dev.blackilykat.pmp.client.Library
-
Reloads the selection if
Library.NO_RELOAD_SELECTIONdoes not prevent it from doing so. - remove(String) - Static method in class dev.blackilykat.pmp.server.Library
-
Remove the track with the given filename from the library.
- remove(K) - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Remove the given key from the map and mark storage as dirty.
- remove(T) - Method in class dev.blackilykat.pmp.storage.StoredList
-
Remove
objectfrom the list and mark storage as dirty. - REMOVE - Enum constant in enum class dev.blackilykat.pmp.Action.Type
-
Remove a track from the library
- removeFilter(Filter) - Static method in class dev.blackilykat.pmp.client.Library
-
Remove an existing filter and send the update to the server if possible.
- removeHeader(Header) - Static method in class dev.blackilykat.pmp.client.Library
-
Remove an existing header.
- removeOption(FilterOption) - Method in class dev.blackilykat.pmp.client.Filter
-
Remove an option from this filter.
- removeTrack(Track) - Static method in class dev.blackilykat.pmp.client.Library
-
Remove an existing track from the library.
- repeat - Variable in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
The field for the
repeatrecord component. - repeat - Static variable in class dev.blackilykat.pmp.client.Player
- repeat - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The selected repeat option.
- repeat - Variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
-
New repeat state to set or null
- repeat - Variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
-
The selected repeat option or null if unchanged.
- repeat - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
State of playback repeat.
- repeat() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns the value of the
repeatrecord component. - RepeatOption - Enum Class in dev.blackilykat.pmp
-
Enum specifying the possible states of repeating playback.
- RepeatOption() - Constructor for enum class dev.blackilykat.pmp.RepeatOption
- REPLACE - Enum constant in enum class dev.blackilykat.pmp.Action.Type
-
Replace the file of a track with another one (would be the same song, this action would only happen if like someone changes the source, say, to get a higher quality version)
- request - Variable in record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
The field for the
requestrecord component. - request() - Method in record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
Returns the value of the
requestrecord component. - Request - Class in dev.blackilykat.pmp.messages
-
Any message that expects to receive a
Response. - Request() - Constructor for class dev.blackilykat.pmp.messages.Request
- requestId - Variable in class dev.blackilykat.pmp.messages.Request
-
A number that uniquely identifies the request for the side that is sending it.
- requestId - Variable in class dev.blackilykat.pmp.messages.Response
-
The id of the request this response is responding to.
- rerollToken() - Method in class dev.blackilykat.pmp.server.Device
-
Randomly generate and set a new token for this device.
- Response - Class in dev.blackilykat.pmp.messages
-
Any message that responds to a
Request. - Response(Integer) - Constructor for class dev.blackilykat.pmp.messages.Response
- responses - Variable in class dev.blackilykat.pmp.messages.Request
-
A queue containing the received responses to this request.
- RetroactiveEventSource<T> - Class in dev.blackilykat.pmp.event
-
An event source which stores the last event and calls newly registered listeners if a previous event was emitted.
- RetroactiveEventSource() - Constructor for class dev.blackilykat.pmp.event.RetroactiveEventSource
- run() - Method in class dev.blackilykat.pmp.client.Server.ActionHandlingThread
- run() - Method in class dev.blackilykat.pmp.client.Server.ActionSendingThread
- run() - Method in class dev.blackilykat.pmp.client.Server.ActionThreadDispatcher
- run() - Method in class dev.blackilykat.pmp.PMPConnection.MessageReceivingThread
- run() - Method in class dev.blackilykat.pmp.PMPConnection.MessageSendingThread
- run(PMPConnection, ActionMessage) - Method in class dev.blackilykat.pmp.client.handlers.ActionMessageHandler
- run(PMPConnection, ActionRequest) - Method in class dev.blackilykat.pmp.server.handlers.ActionRequestHandler
- run(PMPConnection, FilterListMessage) - Method in class dev.blackilykat.pmp.client.handlers.FilterListMessageHandler
- run(PMPConnection, FilterListMessage) - Method in class dev.blackilykat.pmp.server.handlers.FilterListMessageHandler
- run(PMPConnection, GetActionsRequest) - Method in class dev.blackilykat.pmp.server.handlers.GetActionsRequestHandler
- run(PMPConnection, LoginAsExistingDeviceRequest) - Method in class dev.blackilykat.pmp.server.handlers.LoginAsExistingDeviceRequestHandler
- run(PMPConnection, LoginAsNewDeviceRequest) - Method in class dev.blackilykat.pmp.server.handlers.LoginAsNewDeviceRequestHandler
- run(PMPConnection, LoginFailResponse) - Method in class dev.blackilykat.pmp.client.handlers.LoginFailResponseHandler
- run(PMPConnection, LoginSuccessResponse) - Method in class dev.blackilykat.pmp.client.handlers.LoginSuccessResponseHandler
- run(PMPConnection, PlaybackControlMessage) - Method in class dev.blackilykat.pmp.client.handlers.PlaybackControlMessageHandler
- run(PMPConnection, PlaybackControlMessage) - Method in class dev.blackilykat.pmp.server.handlers.PlaybackControlMessageHandler
- run(PMPConnection, PlaybackOwnershipMessage) - Method in class dev.blackilykat.pmp.client.handlers.PlaybackOwnershipMessageHandler
- run(PMPConnection, PlaybackOwnershipMessage) - Method in class dev.blackilykat.pmp.server.handlers.PlaybackOwnershipMessageHandler
- run(PMPConnection, PlaybackUpdateMessage) - Method in class dev.blackilykat.pmp.client.handlers.PlaybackUpdateMessageHandler
- run(PMPConnection, PlaybackUpdateMessage) - Method in class dev.blackilykat.pmp.server.handlers.PlaybackUpdateMessageHandler
- run(PMPConnection, T) - Method in class dev.blackilykat.pmp.MessageHandler
-
The method getting called upon receiving the specified message type.
- run(Runnable) - Method in class dev.blackilykat.pmp.util.ScopedValue.Carrier
-
Add
ScopedValue.Carrier.valueto the scoped value's stack, run the given code and removeScopedValue.Carrier.valuefrom the stack. - run(T) - Method in interface dev.blackilykat.pmp.event.Listener
- run(T, AtomicBoolean) - Method in class dev.blackilykat.pmp.MessageListener
-
The method getting called upon receiving the specified message type.
- runCasting(Message, AtomicBoolean) - Method in class dev.blackilykat.pmp.MessageListener
-
Run the listener casting Message to the generic type.
- runCasting(PMPConnection, Message) - Method in class dev.blackilykat.pmp.MessageHandler
-
Run the handler casting Message to the generic type.
S
- SAMPLE_FORMAT - Static variable in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- SAMPLE_RATE - Static variable in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- SAMPLE_RATE - Static variable in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- sampleRate - Variable in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
-
The target sample rate to convert to.
- sampleRate - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- save() - Method in class dev.blackilykat.pmp.storage.Storage
-
Saves storage to disk.
- SAVING_INTERVAL_MIN - Static variable in class dev.blackilykat.pmp.storage.Storage
-
How often storages should periodically save if dirty.
- SAVING_INTERVAL_MS - Static variable in class dev.blackilykat.pmp.storage.Storage
- savingTimer - Static variable in class dev.blackilykat.pmp.storage.Storage
- scheduleReconnect() - Static method in class dev.blackilykat.pmp.client.Server
-
Schedule an attempt at reconnecting in 10000L milliseconds.
- scopedValue - Variable in class dev.blackilykat.pmp.util.ScopedValue.Carrier
-
The scoped value to add the value in
- ScopedValue<T> - Class in dev.blackilykat.pmp.util
-
An alternative implementation of
ScopedValueto be able to run on older JREs - ScopedValue() - Constructor for class dev.blackilykat.pmp.util.ScopedValue
- ScopedValue.Carrier<T> - Class in dev.blackilykat.pmp.util
-
Class containing a value to be set.
- seek(long) - Static method in class dev.blackilykat.pmp.client.Player
-
Seek to the specified position in the track.
- selectedTracks - Static variable in class dev.blackilykat.pmp.client.Library
-
The current list of filtered and sorted tracks.
- SelectedTracksUpdatedEvent(List, List) - Constructor for record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
Creates an instance of a
SelectedTracksUpdatedEventrecord class. - selectNextTrack() - Static method in class dev.blackilykat.pmp.client.Player
-
Choose the track which will be played after the current track.
- send(Message) - Static method in class dev.blackilykat.pmp.client.Server
-
Send a message to the server.
- send(Message) - Method in class dev.blackilykat.pmp.PMPConnection
-
Adds a message to the message queue
- sendAction(Action) - Static method in class dev.blackilykat.pmp.client.Server.ActionSendingThread
- sendAddReplaceAction(Action) - Static method in class dev.blackilykat.pmp.client.Server.ActionSendingThread
- sendKeepalive() - Method in class dev.blackilykat.pmp.PMPConnection
-
Sends a keepalive on this thread.
- sendNow(Message) - Method in class dev.blackilykat.pmp.PMPConnection
-
Sends a message ignoring the message queue and writing to the socket on this thread.
- sendRemoveAction(Action) - Static method in class dev.blackilykat.pmp.client.Server.ActionSendingThread
- sendTrackList(HttpExchange) - Method in class dev.blackilykat.pmp.server.TransferHandler
-
Responds to a
GET /after verifying authorization headers and path. - Sensitive() - Constructor for class dev.blackilykat.pmp.client.ClientStorage.Sensitive
- Sensitive() - Constructor for class dev.blackilykat.pmp.server.ServerStorage.Sensitive
- SENSITIVE - Static variable in class dev.blackilykat.pmp.client.ClientStorage
-
The client sensitive file.
- SENSITIVE - Static variable in class dev.blackilykat.pmp.server.ServerStorage
- SensitiveStorage - Class in dev.blackilykat.pmp.storage
-
Sensitive storage contains particularly important information that should not be shared and must be saved as soon as possible.
- SensitiveStorage(String) - Constructor for class dev.blackilykat.pmp.storage.SensitiveStorage
- serialize(Stored, JsonGenerator, SerializerProvider) - Method in class dev.blackilykat.pmp.storage.Stored.Serializer
- Serializer() - Constructor for class dev.blackilykat.pmp.storage.Stored.Serializer
- Server - Class in dev.blackilykat.pmp.client
-
Handles the connection with the server.
- Server() - Constructor for class dev.blackilykat.pmp.client.Server
- Server.ActionHandlingThread - Class in dev.blackilykat.pmp.client
-
The thread responsible for handling incoming library actions.
- Server.ActionSendingThread - Class in dev.blackilykat.pmp.client
-
The thread responsible for performing outgoing actions.
- Server.ActionThreadDispatcher - Class in dev.blackilykat.pmp.client
-
Thread responsible for correctly starting
Server.ActionHandlingThreadandServer.ActionSendingThread. - Server.TrackElement - Class in dev.blackilykat.pmp.client
-
Used to deserialize the server's library
- serverAddress - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
The IP address or domain name of the server to connect to.
- serverFilePort - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
The file port of the HTTP server where track files are transferred.
- serverPort - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
The message port of the server where most communication happens.
- serverPublicKey - Variable in class dev.blackilykat.pmp.client.ClientStorage.Sensitive
-
The public encryption key of the server.
- ServerStorage - Class in dev.blackilykat.pmp.server
-
All storage used in the server.
- ServerStorage() - Constructor for class dev.blackilykat.pmp.server.ServerStorage
- ServerStorage.Main - Class in dev.blackilykat.pmp.server
-
Main storage used in the server.
- ServerStorage.Sensitive - Class in dev.blackilykat.pmp.server
-
Sensitive server storage, contains private values and values which must be stored as quickly as possible.
- serverTracks - Static variable in class dev.blackilykat.pmp.client.Server
- set(Integer) - Method in class dev.blackilykat.pmp.storage.StoredInt
- set(List) - Method in class dev.blackilykat.pmp.storage.StoredList
-
Set the value to a copy of the given list and mark storage as dirty.
- set(Map) - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Set the value to a copy of the given map and mark storage as dirty.
- set(T) - Method in class dev.blackilykat.pmp.storage.Stored
-
Set the inner stored value and mark storage as dirty.
- setAddress(String, int, int) - Static method in class dev.blackilykat.pmp.client.Server
-
Update the stored server address
- setClientConnection(ClientConnection) - Method in class dev.blackilykat.pmp.server.Device
-
Set
Device.clientConnectionand register a listener to set it back to null when disconnected. - setConnection(PMPConnection) - Method in class dev.blackilykat.pmp.messages.Request
-
Set the connection this request was sent in.
- setDecoded(Key) - Method in class dev.blackilykat.pmp.storage.StoredKey
-
Encode the given value to base64 and set it as the value.
- setFile(File) - Method in class dev.blackilykat.pmp.client.Track
- setKey(String) - Method in class dev.blackilykat.pmp.client.Header
- setLabel(String) - Method in class dev.blackilykat.pmp.client.Header
- setMetadata(List) - Method in class dev.blackilykat.pmp.client.Track
- setPendingActionIfPossible(Action, Device) - Static method in class dev.blackilykat.pmp.server.Library
-
If the pending action can be updated, sets it to the new value
- setPlaybackEpoch(long) - Static method in class dev.blackilykat.pmp.client.Player
- setPlaybackOwner(Integer) - Static method in class dev.blackilykat.pmp.client.Player
- setPosition(long) - Static method in class dev.blackilykat.pmp.client.Player
-
Sets the current playback position in milliseconds.
- setRepeat(RepeatOption) - Static method in class dev.blackilykat.pmp.client.Player
-
This method may send a
PlaybackControlMessageinstead to perform this on the playback owning device. - setShuffle(ShuffleOption) - Static method in class dev.blackilykat.pmp.client.Player
-
This method may send a
PlaybackControlMessageinstead to perform this on the playback owning device. - setSorting(Header, Order) - Static method in class dev.blackilykat.pmp.client.Library
-
Update the sorting header and order.
- setState(FilterOption.State) - Method in class dev.blackilykat.pmp.client.FilterOption
- setUpProxies() - Static method in class dev.blackilykat.pmp.util.LoggingProxy
-
Sets up logging proxies for
System.outandSystem.err. - setupTrack(Track) - Method in class dev.blackilykat.pmp.client.audio.AudioBackend
-
Do any needed setup for a track with the given stream info.
- setupTrack(Track) - Method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- setupTrack(Track) - Method in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- shouldCheckOwnership - Static variable in class dev.blackilykat.pmp.client.Player
- shouldNotReconnect - Static variable in class dev.blackilykat.pmp.client.Server
-
If true user has ordered to disconnect, do not automatically reconnect.
- shouldSeek - Static variable in class dev.blackilykat.pmp.client.Player
- shouldSendControl() - Static method in class dev.blackilykat.pmp.client.Player
-
Returns true if the user input should be forwarded to the playback owner through a
PlaybackControlMessage. - shouldSendUpdate() - Static method in class dev.blackilykat.pmp.client.Player
-
Returns true if this device should notify other devices of a playback update through a
PlaybackUpdateMessage. - shuffle - Variable in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
The field for the
shufflerecord component. - shuffle - Static variable in class dev.blackilykat.pmp.client.Player
- shuffle - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The selected shuffle option.
- shuffle - Variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
-
New shuffle state to set or null
- shuffle - Variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
-
The selected shuffle option or null if unchanged.
- shuffle - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
State of playback shuffle.
- shuffle() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns the value of the
shufflerecord component. - ShuffleOption - Enum Class in dev.blackilykat.pmp
-
Enum specifying the possible states of shuffling playback.
- ShuffleOption() - Constructor for enum class dev.blackilykat.pmp.ShuffleOption
- shutdown() - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- shutdown(boolean) - Static method in class dev.blackilykat.pmp.util.Shutdown
-
The shutdown procedure.
- Shutdown - Class in dev.blackilykat.pmp.util
-
Utility class to gracefully terminate the execution of the program.
- Shutdown() - Constructor for class dev.blackilykat.pmp.util.Shutdown
- shutdownNow() - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- shuttingDown - Static variable in class dev.blackilykat.pmp.util.Shutdown
-
True if the shutdown procedure has started.
- size() - Method in class dev.blackilykat.pmp.storage.StoredList
-
Returns the amount of elements in the list.
- socket - Variable in class dev.blackilykat.pmp.PMPConnection
-
The underlying TCP socket of this connection.
- sortingHeader - Static variable in class dev.blackilykat.pmp.client.Library
- SortingHeaderUpdatedEvent(Header, Order) - Constructor for record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
Creates an instance of a
SortingHeaderUpdatedEventrecord class. - sortingOrder - Static variable in class dev.blackilykat.pmp.client.Library
- sslContext - Static variable in class dev.blackilykat.pmp.client.Server
-
Shared SSL context object allows automatically reusing TCP connections in HTTP requests.
- sslContext - Static variable in class dev.blackilykat.pmp.server.Encryption
-
The SSL context which uses the server's private and public key.
- started - Variable in class dev.blackilykat.pmp.server.Library.PendingAction
-
Whether the HTTP request to complete this action has begun
- startPendingAction(Device, String) - Static method in class dev.blackilykat.pmp.server.Library
-
Checks whether the pending action matches the given details and if it may be started, then marks it as started.
- startTransferRequest(String, String) - Static method in class dev.blackilykat.pmp.client.Server
-
Creates an HTTP request to the server at its transfer port, filling required authentication headers.
- state - Variable in class dev.blackilykat.pmp.client.FilterOption
- State() - Constructor for enum class dev.blackilykat.pmp.client.FilterOption.State
- storage - Variable in class dev.blackilykat.pmp.storage.Stored
- Storage - Class in dev.blackilykat.pmp.storage
-
Storages are used to store data to disk to keep it throughout restarts of the program.
- Storage(String) - Constructor for class dev.blackilykat.pmp.storage.Storage
- Stored<T> - Class in dev.blackilykat.pmp.storage
-
A value which is stored in a
Storagefile. - Stored(Type, Storage, T) - Constructor for class dev.blackilykat.pmp.storage.Stored
- Stored.Serializer - Class in dev.blackilykat.pmp.storage
-
Jackson serializer which allows stored values to not be wrapped in unnecessary
Storedobjects. - StoredBlockingDeque<T> - Class in dev.blackilykat.pmp.storage
-
BlockingDequefor use in storage designed to have at most 1 consuming thread. - StoredBlockingDeque(Type, Storage) - Constructor for class dev.blackilykat.pmp.storage.StoredBlockingDeque
- StoredInt - Class in dev.blackilykat.pmp.storage
- StoredInt(Storage, int) - Constructor for class dev.blackilykat.pmp.storage.StoredInt
- StoredKey - Class in dev.blackilykat.pmp.storage
-
Stored
Keyobjects. - StoredKey(Storage) - Constructor for class dev.blackilykat.pmp.storage.StoredKey
- StoredList<T> - Class in dev.blackilykat.pmp.storage
-
Generic stored list for ease of use.
- StoredList(Type, Storage) - Constructor for class dev.blackilykat.pmp.storage.StoredList
-
Create a stored list with an empty list as default.
- StoredList(Type, Storage, List) - Constructor for class dev.blackilykat.pmp.storage.StoredList
-
Create a stored list with a specified default.
- StoredMap<K,
V> - Class in dev.blackilykat.pmp.storage -
Generic stored map for ease of use.
- StoredMap(Type, Type, Storage) - Constructor for class dev.blackilykat.pmp.storage.StoredMap
-
Create a stored map with an empty initial value.
- STRING - Enum constant in enum class dev.blackilykat.pmp.client.Header.Type
-
One or multiple string values, separated by commas.
- submit(Runnable) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- submit(Runnable, T) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- submit(Callable) - Method in class dev.blackilykat.pmp.util.OverridingSingleThreadExecutor
- submitPassword(String) - Static method in class dev.blackilykat.pmp.client.Server
-
Method called from UI once the user responds after
Server.EVENT_SHOULD_ASK_PASSWORDis called
T
- take() - Method in class dev.blackilykat.pmp.storage.StoredBlockingDeque
-
Equivalent to
BlockingDeque.take() - takeOwnership() - Static method in class dev.blackilykat.pmp.client.Player
-
Claim ownership if logged in, overriding any previous owner.
- takeOwnershipIfNeeded() - Static method in class dev.blackilykat.pmp.client.Player
-
Claim ownership if there is no playback owner and the user requested action requires a playback owner.
- takeResponse() - Method in class dev.blackilykat.pmp.messages.Request
-
Takes a response from this message's queue and returns it.
- title - Variable in class dev.blackilykat.pmp.client.Track
-
"title" value in
Track.metadata, or name based on file name if not present. - TITLE - Enum constant in enum class dev.blackilykat.pmp.client.Header.Type
-
Title of the track, as obtained in
Track.getTitle(). - token - Variable in class dev.blackilykat.pmp.client.ClientStorage.Sensitive
-
The private token of this device.
- token - Variable in class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
-
The previously stored token.
- token - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The new token just assigned by the server.
- token - Variable in class dev.blackilykat.pmp.server.Device
-
The secret token used to log in.
- TOKEN_CHARSET - Static variable in class dev.blackilykat.pmp.server.Device
-
All available characters used to generate a token.
- TOKEN_LENGTH - Static variable in class dev.blackilykat.pmp.server.Device
-
Length of a token, measured in characters.
- toString() - Method in class dev.blackilykat.pmp.Action
- toString() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Filter.OptionAddedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Filter.OptionChangedStateEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Filter.OptionRemovedEvent
-
Returns a string representation of this record class.
- toString() - Method in class dev.blackilykat.pmp.client.Filter
- toString() - Method in class dev.blackilykat.pmp.client.Header
- toString() - Method in record class dev.blackilykat.pmp.client.Library.FilterMovedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Library.HeaderMovedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Library.SelectedTracksUpdatedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Library.SortingHeaderUpdatedEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.FilterInfo
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.server.handlers.ActionRequestHandler.QueueEntry
-
Returns a string representation of this record class.
- toString() - Method in record class dev.blackilykat.pmp.util.ParType
-
Returns a string representation of this record class.
- total - Variable in record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
The field for the
totalrecord component. - total() - Method in record class dev.blackilykat.pmp.client.Player.CurrentTrackLoadEvent
-
Returns the value of the
totalrecord component. - totalOffset - Variable in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
The field for the
totalOffsetrecord component. - totalOffset() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns the value of the
totalOffsetrecord component. - totalSamples - Variable in class dev.blackilykat.pmp.client.Track.PlaybackInfo
- track - Variable in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
The field for the
trackrecord component. - track - Variable in record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
The field for the
trackrecord component. - track - Variable in class dev.blackilykat.pmp.messages.LoginSuccessResponse
-
The filename of the currently playing track.
- track - Variable in class dev.blackilykat.pmp.messages.PlaybackControlMessage
-
Filename of track to start playing or null
- track - Variable in class dev.blackilykat.pmp.messages.PlaybackUpdateMessage
-
The filename of the currently playing track or null if unchanged.
- track - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
The currently playing track's filename.
- track() - Method in record class dev.blackilykat.pmp.client.ClientStorage.PlaybackInfo
-
Returns the value of the
trackrecord component. - track() - Method in record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
Returns the value of the
trackrecord component. - Track - Class in dev.blackilykat.pmp.client
-
A track, containing all necessary information to identify, filter and sort without needing to parse the FLAC file.
- Track - Class in dev.blackilykat.pmp.server
-
A track in the library with information needed by the server.
- Track() - Constructor for class dev.blackilykat.pmp.client.Track
- Track(File) - Constructor for class dev.blackilykat.pmp.client.Track
-
Creates a track based on a file.
- Track(File) - Constructor for class dev.blackilykat.pmp.server.Track
-
Create a track with unknown details by reading
file. - Track(String, long, long, List) - Constructor for class dev.blackilykat.pmp.server.Track
-
Create a track with known details, used in storage deserialization.
- TRACK - Enum constant in enum class dev.blackilykat.pmp.RepeatOption
-
Repeat the currently playing track.
- Track.PlaybackInfo - Class in dev.blackilykat.pmp.client
-
Audio format contained in a track.
- TrackChangeEvent(Track, CompletableFuture) - Constructor for record class dev.blackilykat.pmp.client.Player.TrackChangeEvent
-
Creates an instance of a
TrackChangeEventrecord class. - TrackElement() - Constructor for class dev.blackilykat.pmp.client.Server.TrackElement
- trackLength - Variable in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
The field for the
trackLengthrecord component. - trackLength() - Method in record class dev.blackilykat.pmp.client.Player.PlaybackDebugInfoEvent
-
Returns the value of the
trackLengthrecord component. - TrackMixin() - Constructor for class dev.blackilykat.pmp.server.TransferHandler.TrackMixin
- TRACKNUMBER - Enum constant in enum class dev.blackilykat.pmp.client.Header.Type
-
Like
Header.Type.INTEGER, but it then sorts alphabetically by the "album" metadata key. - tracks - Variable in class dev.blackilykat.pmp.client.ClientStorage.Main
-
Information and metadata about all tracks int he library.
- tracks - Variable in class dev.blackilykat.pmp.server.ServerStorage.Main
-
All tracks in the server's library.
- TransferHandler - Class in dev.blackilykat.pmp.server
-
Manages the HTTP server for transferring files.
- TransferHandler() - Constructor for class dev.blackilykat.pmp.server.TransferHandler
- TransferHandler.TrackMixin - Class in dev.blackilykat.pmp.server
-
Jackson mixin used to omit
lastModifiedinTransferHandler.sendTrackList(HttpExchange) - type - Variable in class dev.blackilykat.pmp.client.Header
-
The data type of this header.
- type - Variable in class dev.blackilykat.pmp.MessageHandler
-
The class of the message getting handled.
- type - Variable in class dev.blackilykat.pmp.MessageListener
-
The class of the message getting listened to.
- type - Variable in class dev.blackilykat.pmp.messages.ActionResponse
-
The state of the request, based on which the client should decide how to complete the action.
- type - Variable in class dev.blackilykat.pmp.storage.Stored
- Type() - Constructor for enum class dev.blackilykat.pmp.Action.Type
- Type() - Constructor for enum class dev.blackilykat.pmp.client.Header.Type
- Type() - Constructor for enum class dev.blackilykat.pmp.messages.ActionResponse.Type
U
- unregister(Listener) - Method in class dev.blackilykat.pmp.event.EventSource
-
Unregister a listener to this source.
- unregisterListener(MessageListener) - Method in class dev.blackilykat.pmp.PMPConnection
-
Unregister a message listener for this connection.
- updateMetadataRedundancies() - Method in class dev.blackilykat.pmp.client.Track
- updateType() - Method in class dev.blackilykat.pmp.client.Header
-
Updates the
Header.typeof this header, either by looking at theHeader.key(i.e.
V
- value - Variable in class dev.blackilykat.pmp.client.FilterOption
-
The metadata value of this option.
- value - Variable in class dev.blackilykat.pmp.storage.Stored
- value - Variable in class dev.blackilykat.pmp.util.Pair
- value - Variable in class dev.blackilykat.pmp.util.ScopedValue.Carrier
-
The value to set
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.Action.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.client.FilterOption.State
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.client.Header.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.messages.ActionResponse.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.messages.LoginFailResponse.Reason
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.Order
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.RepeatOption
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.blackilykat.pmp.ShuffleOption
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.blackilykat.pmp.Action.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.blackilykat.pmp.client.FilterOption.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.blackilykat.pmp.client.Header.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.blackilykat.pmp.messages.ActionResponse.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.blackilykat.pmp.messages.LoginFailResponse.Reason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.blackilykat.pmp.Order
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.blackilykat.pmp.RepeatOption
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.blackilykat.pmp.ShuffleOption
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in class dev.blackilykat.pmp.storage.StoredMap
-
Returns a view of all values in the map.
- viewAll() - Method in class dev.blackilykat.pmp.storage.StoredBlockingDeque
-
Get a safely iterable copy of the list of all values in this queue.
W
- waitForFreePendingAction() - Static method in class dev.blackilykat.pmp.server.Library
-
Blocks until it is possible to update the pending action (until
Library.isPendingActionOverrideable()is true) - waitUntilLoaded() - Static method in class dev.blackilykat.pmp.client.Library
-
Block until library is initialized.
- where(ScopedValue, T) - Static method in class dev.blackilykat.pmp.util.ScopedValue
-
Create a new scope with the given value.
- withRedactedInfo() - Method in class dev.blackilykat.pmp.messages.LoginAsExistingDeviceRequest
- withRedactedInfo() - Method in class dev.blackilykat.pmp.messages.LoginAsNewDeviceRequest
- withRedactedInfo() - Method in class dev.blackilykat.pmp.messages.LoginSuccessResponse
- withRedactedInfo() - Method in class dev.blackilykat.pmp.messages.Message
- write(byte[], int, int) - Method in class dev.blackilykat.pmp.client.audio.AudioBackend
-
Write PCM data to the backend.
- write(byte[], int, int) - Method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
- writeConverted(byte[], int, int) - Method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
-
Write the converted PCM audio stream in the requested format.
- writeConverted(byte[], int, int) - Method in class dev.blackilykat.pmp.client.audio.LineAudioBackend
- writeConverted(byte[], int, int) - Method in class dev.blackilykat.pmp.client.audio.PulseAudioBackend
- writeSample(OutputStream, int, int, boolean) - Static method in class dev.blackilykat.pmp.client.audio.ConvertingAudioBackend
_
- _disconnect() - Method in class dev.blackilykat.pmp.PMPConnection
-
Internal disconnect method to terminate the connection without logging.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form