public final class ChannelStatus extends Object
ArchivingService
through the
ArchivingService.getChannelStatus(String)
and
ArchivingService.getChannelStatusForAllChannels()
methods.Modifier and Type | Class and Description |
---|---|
static class |
ChannelStatus.State
State of an archived channel.
|
Constructor and Description |
---|
ChannelStatus(ChannelMetaDataDAO.ChannelConfiguration channelConfiguration,
String errorMessage,
ChannelStatus.State state,
long totalSamplesDropped,
long totalSamplesSkippedBack,
long totalSamplesWritten)
Creates a channel status object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ChannelMetaDataDAO.ChannelConfiguration |
getChannelConfiguration()
Returns the configuration for the channel.
|
String |
getChannelName()
Returns the name of the channel.
|
String |
getErrorMessage()
Returns the error message associated with the channel.
|
ChannelStatus.State |
getState()
Returns the state of the channel.
|
long |
getTotalSamplesDropped()
Returns the total number of samples dropped for this channel.
|
long |
getTotalSamplesSkippedBack()
Returns the total number of samples that were discarded because they
skipped back in time.
|
long |
getTotalSamplesWritten()
Returns the total number of samples written for this channel.
|
int |
hashCode() |
String |
toString() |
public ChannelStatus(ChannelMetaDataDAO.ChannelConfiguration channelConfiguration, String errorMessage, ChannelStatus.State state, long totalSamplesDropped, long totalSamplesSkippedBack, long totalSamplesWritten)
channelConfiguration
- configuration of the channel.errorMessage
- error message associated with this channel. This parameter may
be null
. If the state
is not
ChannelStatus.State.ERROR
, it must be null
.state
- state of the channel.totalSamplesDropped
- total number of samples that have been dropped (discarded) for
the channel because they arrived to quickly and could not be
written in time. This counter is reset when a channel is
(re-)initialized (e.g. because its configuration has changed).totalSamplesSkippedBack
- total number of samples that have been dropped (discarded)
because their time-stamp was less than or equal to a sample
that was written earlier. This counter is reset when a channel
is (re-)initialized (e.g. because its configuration has
changed).totalSamplesWritten
- total number of samples that have been written (persisted) for
this channel. This counter is reset when a channel is
(re-)initialized (e.g. because its configuration has changed).IllegalArgumentException
- if the errorMessage
is not null
but
the state
is not ChannelStatus.State.ERROR
.NullPointerException
- if channelConfiguration
or state
is
null.public ChannelMetaDataDAO.ChannelConfiguration getChannelConfiguration()
null
.public String getChannelName()
null
.public String getErrorMessage()
ChannelStatus.State.ERROR
state, the error message is always
null
. Even if it is in the ChannelStatus.State.ERROR
state, the
error message is optional and might be null
.null
if
no error message is available.public ChannelStatus.State getState()
null
.public long getTotalSamplesDropped()
public long getTotalSamplesSkippedBack()
public long getTotalSamplesWritten()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.