Skip to content
Snippets Groups Projects
Commit 23ae70a8 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 679

Weekly update.
parent fdde5a03
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,9 @@
#include <Common/lofar_list.h>
#include <set>
namespace LOFAR
{
namespace GCF
{
namespace Common
{
namespace LOFAR {
namespace GCF {
namespace Common {
void convListToString(std::string& listString,
const std::list<std::string>& stringList);
......@@ -22,7 +19,6 @@ void convStringToSet(std::set<std::string>& stringSet,
const std::string& setString);
bool isValidPropName(const char* propName);
bool isValidScope (const char* scopeName);
string myHostname (bool giveFullName = false);
} // namespace Common
} // namespace GCF
......
......@@ -143,25 +143,6 @@ bool isValidScope(const char* scopeName)
return valid;
}
//
// myHostname(giveFullname)
//
string myHostname(bool giveFullName)
{
char fullhostname[300];
if (gethostname(fullhostname, 300) != 0) {
return ("localhost");
}
if (!giveFullName) {
char* dot = strchr(fullhostname, '.');
if (dot) {
*dot='\0';
}
}
return (fullhostname);
}
} // namespace Common
} // namespace GCF
} // namespace LOFAR
......@@ -259,7 +259,7 @@ GCFEvent::TResult GPAController::waiting_state(GCFEvent& e, GCFPortInterface& p)
case F_TIMER:
{
GCFTimerEvent* pTimer = (GCFTimerEvent*)(&e);
LOG_DEBUG(formatString("Timer %d expired.", pTimer->id));
// LOG_DEBUG(formatString("Timer %d expired.", pTimer->id));
if (&p == &_distPmlPortProvider)
{
if (pTimer->id == _garbageTimerId)
......
......@@ -9,11 +9,17 @@ GCF/GCFCommon
with the new FileLocator classes of LCS/Common.
** GCF_ServiceInfo.h: Created a file containing all servicenames to be used in MAC
as well the well-known portnumber of any ServiceBroker.
** GCF_PVTypes.h: created file that includes all GCF_PVxxx files.
APL/APLCommon
============
** Added messages FINISH and FINISHED to LDprotocol to allow ObsCntlrs to tell
the MACSchedulers that they are ready.
** Added ANNOUNCEMENT messages to the StartDaemonProtocol to support shared
controller. Modified the other message to meet proposition [A].
** ControllerDefines.h replaces LogicalDevice.h. The file does not only define
constants for controllertypes and their errors but also a collection of
routines for creating and using controller names. See proposition [A].
GCF/TM
======
......@@ -51,8 +57,8 @@ GCF/PAL/PML
** GPMController: uses LofarLocators for parameterfiles.
GCF/APL/APLCommon
=================
APL/APLCommon
=============
Updated several sources for new ParameterSet.
Added several ; at end of LOG_xxx statements.
Added define LOFAR_SHARE_LOCATION /opt/lofar/share in APL_Defines.h
......@@ -78,13 +84,27 @@ Complete new implementation of the MACScheduler: It polls the OTDB itself
and only controls ObsControllers.
PROPOSITIONS
============
[A] The (task)names of the controllers are uniq within LOFAR. This means the name
must contain the instanceNr of the controller and the observationID.
The construction of the controller/task name is supported in the file
ControllerDefines. All tasks/programs/jobs/whatever must always use the
name that is returned by the call controllerName(type, iNr, ObsID).
(only the startDaemon uses the sharedControllerName).
Note: This proposition is used in ParentControl, ChildControl and the base-
source for shared controllers to do their administration.
PROBLEMS TO SOLVE
=================
** BOOST_SP_USE_PTHREADS is now in several .h and .cc file. Like to have a lofar_sharedptr.h.
** Can logical device use global parameterSet anywhere?
** Support SHARED LogicalDevices in the LDStartDaemon.
** GSB_Controller should be made fail save.
** GSB_Controller should assign the portnumbers round robin to maximize the
're-use interval'.
** GTM_ServiceBroker should support multihosts.
** GCFTasks are not scheduled right when an event is not handled.
** LDStartDaemon: when execv fails child LDSD keeps running.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment