[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "basecomponent" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Jul 19 16:54:26 CDT 2011
branch "basecomponent" has been updated
via 5712921cfba3ccd4303f1da2bc0df19ba4c9e287 (commit)
from d424295ebb347315faab4253bd2498039963840d (commit)
Summary of changes:
include/AsteriskSCF/Component/Component.h | 8 ++++++++
.../Discovery/LocatorRegistrationWrapper.h | 5 +++++
src/Component/Component.cpp | 16 ++++++++++++++++
3 files changed, 29 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 5712921cfba3ccd4303f1da2bc0df19ba4c9e287
Author: Ken Hunt <ken.hunt at digium.com>
Date: Tue Jul 19 16:54:05 2011 -0500
Updates from testing.
diff --git a/include/AsteriskSCF/Component/Component.h b/include/AsteriskSCF/Component/Component.h
index 9da9c57..e243d4b 100644
--- a/include/AsteriskSCF/Component/Component.h
+++ b/include/AsteriskSCF/Component/Component.h
@@ -70,6 +70,14 @@ protected:
virtual void onStart() {}
virtual void onActivated() {}
virtual void onStandby() {}
+ virtual void onRegisterPrimaryServices() {}
+ virtual void onRegisterBackplaneServices() {}
+ virtual void onUnregisterPrimaryServices() {}
+ virtual void onUnregisterBackplaneServices() {}
+ virtual void onSuspendPrimaryServices() {}
+ virtual void onSuspendBackplaneServices() {}
+ virtual void onUnsuspendPrimaryServices() {}
+ virtual void onUnsuspendBackplaneServices() {}
/////////////////////////////////////////////////////////////////////
// Every component must provide custom
diff --git a/include/AsteriskSCF/Discovery/LocatorRegistrationWrapper.h b/include/AsteriskSCF/Discovery/LocatorRegistrationWrapper.h
index aff7c60..f3be9d8 100644
--- a/include/AsteriskSCF/Discovery/LocatorRegistrationWrapper.h
+++ b/include/AsteriskSCF/Discovery/LocatorRegistrationWrapper.h
@@ -122,6 +122,11 @@ public:
mServiceManagement->unsuspend();
}
+ AsteriskSCF::Core::Discovery::V1::ServiceManagementPrx getServiceMangement()
+ {
+ return mServiceManagement;
+ }
+
private:
//
diff --git a/src/Component/Component.cpp b/src/Component/Component.cpp
index d26e389..7ce9efe 100644
--- a/src/Component/Component.cpp
+++ b/src/Component/Component.cpp
@@ -396,6 +396,8 @@ void Component::registerPrimaryServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << e.what();
}
}
+
+ onRegisterPrimaryServices();
}
/**
@@ -419,6 +421,8 @@ void Component::unregisterPrimaryServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << "Some unknown exception.";
}
}
+
+ onUnregisterPrimaryServices();
}
/**
@@ -438,6 +442,8 @@ void Component::registerBackplaneServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << e.what();
}
}
+
+ onRegisterBackplaneServices();
}
/**
@@ -457,6 +463,8 @@ void Component::unregisterBackplaneServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << e.what();
}
}
+
+ onUnregisterBackplaneServices();
}
/**
@@ -479,6 +487,8 @@ void Component::suspendPrimaryServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << e.what();
}
}
+
+ onSuspendPrimaryServices();
}
/**
@@ -500,6 +510,8 @@ void Component::unsuspendPrimaryServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << e.what();
}
}
+
+ onUnsuspendPrimaryServices();
}
/**
@@ -521,6 +533,8 @@ void Component::suspendBackplaneServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << e.what();
}
}
+
+ onSuspendBackplaneServices();
}
/**
@@ -542,6 +556,8 @@ void Component::unsuspendBackplaneServices()
mLogger(Error) << BOOST_CURRENT_FUNCTION << e.what();
}
}
+
+ onUnsuspendBackplaneServices();
}
/**
-----------------------------------------------------------------------
--
asterisk-scf/integration/ice-util-cpp.git
More information about the asterisk-scf-commits
mailing list