Class ArchivePVState
- java.lang.Object
-
- org.epics.archiverappliance.mgmt.archivepv.ArchivePVState
-
public class ArchivePVState extends Object
State for the archive PV workflow- Author:
- mshankar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArchivePVState.ArchivePVStateMachine
-
Constructor Summary
Constructors Constructor Description ArchivePVState(String pvName, ConfigService configService)
-
Method Summary
Modifier and Type Method Description void
confirmedStartedArchivingPV()
void
errorGettingMetaInfo()
String
getAbortReason()
ArchivePVState.ArchivePVStateMachine
getCurrentState()
Timestamp
getMetaInfoRequestedSubmitted()
String
getPvName()
Timestamp
getStartOfWorkflow()
boolean
hasNotConnectedSoFar()
void
metaInfoObtained(MetaInfo metaInfo)
void
metaInfoRequestAcknowledged()
void
nextStep()
void
setAbortReason(String abortReason)
static void
startArchivingPV(String pvName, ConfigService configService, ApplianceInfo applianceInfoForPV)
Start archiving the PV as specified in the PVTypeInfo in configService.
-
-
-
Constructor Detail
-
ArchivePVState
public ArchivePVState(String pvName, ConfigService configService)
-
-
Method Detail
-
nextStep
public void nextStep()
-
hasNotConnectedSoFar
public boolean hasNotConnectedSoFar()
-
startArchivingPV
public static void startArchivingPV(String pvName, ConfigService configService, ApplianceInfo applianceInfoForPV) throws IOException
Start archiving the PV as specified in the PVTypeInfo in configService. This method expects to be called after the PVTypeInfo for this PV has been completely determined and has settled in the cache.- Parameters:
pvName
- The name of PVconfigService
- ConfigServiceapplianceInfoForPV
- ApplianceInfo- Throws:
IOException
-
-
getStartOfWorkflow
public Timestamp getStartOfWorkflow()
-
metaInfoRequestAcknowledged
public void metaInfoRequestAcknowledged()
-
metaInfoObtained
public void metaInfoObtained(MetaInfo metaInfo)
-
errorGettingMetaInfo
public void errorGettingMetaInfo()
-
confirmedStartedArchivingPV
public void confirmedStartedArchivingPV()
-
getCurrentState
public ArchivePVState.ArchivePVStateMachine getCurrentState()
- Returns:
- The current archiving state machine state
-
getPvName
public String getPvName()
-
getMetaInfoRequestedSubmitted
public Timestamp getMetaInfoRequestedSubmitted()
-
getAbortReason
public String getAbortReason()
-
setAbortReason
public void setAbortReason(String abortReason)
-
-