Package xal.service.pvlogger
Class ChannelGroup
java.lang.Object
xal.service.pvlogger.ChannelGroup
ChannelGroup is a wrapper for the PV_SET data source which defines a group of
related PVs.
- Author:
- tap
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChannelWrapper[]
array of channel wrappersprotected ChannelGroup.ConnectionHandler
handler of channel connection eventsprotected final double
default logging period (seconds) for the groupprotected final String
description of the channel groupprotected final String
label of the channel groupprotected final double
retention time in days (or zero for permanent retention) for snapshots associated with this groupprotected final String
service ID -
Constructor Summary
ConstructorsConstructorDescriptionChannelGroup
(String groupLabel, String serviceID, String[] pvs, double loggingPeriod) ConstructorChannelGroup
(String label, String serviceID, String description, String[] pvs, double loggingPeriod) ConstructorChannelGroup
(String label, String serviceID, String description, String[] pvs, double loggingPeriod, double retention) Primary Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose of this channel group's resourcesint
Get the number of channels in this groupGet the collection of channels which we attempt to monitorGet the channel wrappers for the channels associated with this group.double
Get the default logging period for this groupGet a description of the groupgetLabel()
Get the group label.Get the timestamp of the last channel event (e.g. channel connected/disconnected event)double
get the retention in days (or 0 for permanent) of the snapshots associated with this groupGet the service IDvoid
Request connections to the channel wrappers.toString()
Override toString() to return the group label and a descriptionprotected void
Create ChannelWrappers for the specified pvs.
-
Field Details
-
defaultLoggingPeriod
protected final double defaultLoggingPerioddefault logging period (seconds) for the group -
retention
protected final double retentionretention time in days (or zero for permanent retention) for snapshots associated with this group -
label
label of the channel group -
serviceId
service ID -
description
description of the channel group -
channelWrappers
array of channel wrappers -
connectionHandler
handler of channel connection events
-
-
Constructor Details
-
ChannelGroup
public ChannelGroup(String label, String serviceID, String description, String[] pvs, double loggingPeriod, double retention) Primary Constructor- Parameters:
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 group
-
ChannelGroup
public ChannelGroup(String label, String serviceID, String description, String[] pvs, double loggingPeriod) Constructor- Parameters:
label
- The group's labeldescription
- A description of the grouppvs
- The PVs in the grouploggingPeriod
- The default logging period for the group
-
ChannelGroup
Constructor- Parameters:
groupLabel
- The group's labelpvs
- The PVs in the grouploggingPeriod
- The default logging period for the group
-
-
Method Details
-
dispose
public void dispose()Dispose of this channel group's resources -
getLabel
Get the group label.- Returns:
- the group label.
-
getServiceID
Get the service ID- Returns:
- the service ID
-
getDescription
Get a description of the group- Returns:
- a description of this group
-
getDefaultLoggingPeriod
public double getDefaultLoggingPeriod()Get the default logging period for this group- Returns:
- the default logging period in seconds
-
getRetention
public double getRetention()get the retention in days (or 0 for permanent) of the snapshots associated with this group -
wrapPVs
Create ChannelWrappers for the specified pvs.- Parameters:
pvs
- the list of PVs to wrap
-
requestConnections
public void requestConnections()Request connections to the channel wrappers. -
getChannelWrappers
Get the channel wrappers for the channels associated with this group.- Returns:
- The array of channel wrappers of this group.
-
getChannels
Get the collection of channels which we attempt to monitor- Returns:
- a collection of channels corresponding to the channel wrappers
-
getChannelCount
public int getChannelCount()Get the number of channels in this group- Returns:
- The number of channels in this group
-
getLastChannelEventTime
Get the timestamp of the last channel event (e.g. channel connected/disconnected event)- Returns:
- the wall clock timestamp of the last channel event
-
toString
Override toString() to return the group label and a description
-