public class ChannelGroup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
ChannelGroup.ConnectionHandler |
Modifier and Type | Field and Description |
---|---|
protected ChannelWrapper[] |
_channelWrappers
array of channel wrappers
|
protected ChannelGroup.ConnectionHandler |
_connectionHandler
handler of channel connection events
|
protected double |
DEFAULT_LOGGING_PERIOD
default logging period (seconds) for the group
|
protected java.lang.String |
DESCRIPTION
description of the channel group
|
protected java.lang.String |
LABEL
label of the channel group
|
protected double |
RETENTION
retention time in days (or zero for permanent retention) for snapshots associated with this group
|
protected java.lang.String |
SERVICE_ID
service ID
|
Constructor and Description |
---|
ChannelGroup(java.lang.String groupLabel,
java.lang.String serviceID,
java.lang.String[] pvs,
double loggingPeriod)
Constructor
|
ChannelGroup(java.lang.String label,
java.lang.String serviceID,
java.lang.String description,
java.lang.String[] pvs,
double loggingPeriod)
Constructor
|
ChannelGroup(java.lang.String label,
java.lang.String serviceID,
java.lang.String description,
java.lang.String[] pvs,
double loggingPeriod,
double retention)
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose of this channel group's resources
|
int |
getChannelCount()
Get the number of channels in this group
|
java.util.Collection<Channel> |
getChannels()
Get the collection of channels which we attempt to monitor
|
ChannelWrapper[] |
getChannelWrappers()
Get the channel wrappers for the channels associated with this group.
|
double |
getDefaultLoggingPeriod()
Get the default logging period for this group
|
java.lang.String |
getDescription()
Get a description of the group
|
java.lang.String |
getLabel()
Get the group label.
|
java.util.Date |
getLastChannelEventTime()
Get the timestamp of the last channel event (e.g.
|
double |
getRetention()
get the retention in days (or 0 for permanent) of the snapshots associated with this group
|
java.lang.String |
getServiceID()
Get the service ID
|
void |
requestConnections()
Request connections to the channel wrappers.
|
java.lang.String |
toString()
Override toString() to return the group label and a description
|
protected void |
wrapPVs(java.lang.String[] pvs)
Create ChannelWrappers for the specified pvs.
|
protected final double DEFAULT_LOGGING_PERIOD
protected final double RETENTION
protected final java.lang.String LABEL
protected final java.lang.String SERVICE_ID
protected final java.lang.String DESCRIPTION
protected ChannelWrapper[] _channelWrappers
protected ChannelGroup.ConnectionHandler _connectionHandler
public ChannelGroup(java.lang.String label, java.lang.String serviceID, java.lang.String description, java.lang.String[] pvs, double loggingPeriod, double retention)
label
- The group's labeldescription
- A description of the grouppvs
- The PVs in the grouploggingPeriod
- The default logging period for the groupretention
- the rentention time in days (or zero for permanent retention) for snapshots associated with this grouppublic ChannelGroup(java.lang.String label, java.lang.String serviceID, java.lang.String description, java.lang.String[] pvs, double loggingPeriod)
label
- The group's labeldescription
- A description of the grouppvs
- The PVs in the grouploggingPeriod
- The default logging period for the grouppublic ChannelGroup(java.lang.String groupLabel, java.lang.String serviceID, java.lang.String[] pvs, double loggingPeriod)
groupLabel
- The group's labelpvs
- The PVs in the grouploggingPeriod
- The default logging period for the grouppublic void dispose()
public java.lang.String getLabel()
public java.lang.String getServiceID()
public java.lang.String getDescription()
public double getDefaultLoggingPeriod()
public double getRetention()
protected void wrapPVs(java.lang.String[] pvs)
pvs
- the list of PVs to wrappublic void requestConnections()
public ChannelWrapper[] getChannelWrappers()
public java.util.Collection<Channel> getChannels()
public int getChannelCount()
public java.util.Date getLastChannelEventTime()
public java.lang.String toString()
toString
in class java.lang.Object