Skip to content
Snippets Groups Projects
Commit c3006ba9 authored by Jan David Mol's avatar Jan David Mol
Browse files

bug 1362: forward PLC connection info into the Parset class

parent 44e88855
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
# #
# all ACC processes expect to be started with "ACC" as first parameter # all ACC processes expect to be started with "ACC" as first parameter
JOBNAME=$1
. /opt/lofar/etc/BlueGeneControl.conf . /opt/lofar/etc/BlueGeneControl.conf
# Select the newest parset in the list. Multiple file names are supported # Select the newest parset in the list. Multiple file names are supported
...@@ -30,5 +32,10 @@ done ...@@ -30,5 +32,10 @@ done
sed -i 's/.*OLAP.CNProc.integrationSteps.*//' $PARSET sed -i 's/.*OLAP.CNProc.integrationSteps.*//' $PARSET
sed -i 's/.*OLAP.IONProc.integrationSteps.*//' $PARSET sed -i 's/.*OLAP.IONProc.integrationSteps.*//' $PARSET
(
echo "OLAP.IONProc.PLC_ProcID = $JOBNAME"
echo "OLAP.IONProc.PLC_controlled = T"
) >> $PARSET
# Inject the parset into the correlator # Inject the parset into the correlator
$BINPATH/runParset.py -P $PARTITION parset=$PARSET >>/opt/lofar/log/run.runParset.py.log 2>&1 & $BINPATH/runParset.py -P $PARTITION parset=$PARSET >>/opt/lofar/log/run.runParset.py.log 2>&1 &
...@@ -191,6 +191,11 @@ public: ...@@ -191,6 +191,11 @@ public:
string constructSubbandFilename( const string &mask, unsigned subband ) const; string constructSubbandFilename( const string &mask, unsigned subband ) const;
string constructBeamFormedFilename( const string &mask, unsigned beam, unsigned stokes, unsigned file ) const; string constructBeamFormedFilename( const string &mask, unsigned beam, unsigned stokes, unsigned file ) const;
bool PLC_controlled() const;
string PLC_ProcID() const;
string PLC_Host() const;
uint32 PLC_Port() const;
private: private:
const std::string itsName; const std::string itsName;
...@@ -726,6 +731,31 @@ inline string Parset::targetHost(const string &prefix, const string &filename) c ...@@ -726,6 +731,31 @@ inline string Parset::targetHost(const string &prefix, const string &filename) c
return ""; return "";
} }
inline bool Parset::PLC_controlled() const
{
return getBool("OLAP.IONProc.PLC_controlled",false);
}
inline string Parset::PLC_ApplID() const
{
return getString("ApplCtrl.application","CorrAppl");
}
inline string Parset::PLC_ProcID() const
{
return getString("OLAP.IONProc.PLC_ProcID","CorrProc");
}
inline string Parset::PLC_Host() const
{
return getString(str(format("%s.%s._ACnode") % PLC_ApplID() % PLC_ProcID()));
}
inline uint32 Parset::PLC_Port() const
{
return getUint32(str(format("%s.%s._ACport") % PLC_ApplID() % PLC_ProcID()));
}
} // namespace RTCP } // namespace RTCP
} // namespace LOFAR } // namespace LOFAR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment