[asterisk-scf-commits] asterisk-scf/integration/slice.git branch "route_replica" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Apr 19 19:00:28 CDT 2011
branch "route_replica" has been updated
via 882257f26b18efc7d6b5f074fc82e13e8a30745e (commit)
from 493f06c8eb9b1f8f1e3c3fa259078eead3db7df4 (commit)
Summary of changes:
AsteriskSCF/Core/Routing/RoutingIf.ice | 118 ++++++++++----------
.../System/Component/ComponentServiceIf.ice | 34 ++++--
2 files changed, 82 insertions(+), 70 deletions(-)
- Log -----------------------------------------------------------------
commit 882257f26b18efc7d6b5f074fc82e13e8a30745e
Author: Ken Hunt <ken.hunt at digium.com>
Date: Tue Apr 19 18:59:41 2011 -0500
Routing replication support.
diff --git a/AsteriskSCF/Core/Routing/RoutingIf.ice b/AsteriskSCF/Core/Routing/RoutingIf.ice
index a2a1446..85ab304 100644
--- a/AsteriskSCF/Core/Routing/RoutingIf.ice
+++ b/AsteriskSCF/Core/Routing/RoutingIf.ice
@@ -18,8 +18,8 @@
#include <AsteriskSCF/Core/Endpoint/EndpointIf.ice>
-module AsteriskSCF
-{
+module AsteriskSCF
+{
module Core
{
@@ -94,7 +94,7 @@ module V1
*/
["amd"]
idempotent Endpoint::V1::EndpointSeq lookup(string destination)
- throws DestinationNotFoundException, InvalidParamsException;
+ throws DestinationNotFoundException, InvalidParamsException;
};
@@ -130,7 +130,7 @@ module V1
* @throws InvalidParamsException if any parameters are invalid.
*/
void addEndpointLocator(string id, RegExSeq destinationIdRangeList, EndpointLocator *locator)
- throws LocatorAlreadyRegisteredException, InvalidParamsException;
+ throws LocatorAlreadyRegisteredException, InvalidParamsException;
/**
* Method which unregisters an EndpointLocator.
@@ -154,7 +154,7 @@ module V1
* @throws InvalidParamsException if any parameters are invalid.
*/
void setEndpointLocatorDestinationIds(string id, RegExSeq deviceIdRangeList)
- throws DestinationNotFoundException, InvalidParamsException;
+ throws DestinationNotFoundException, InvalidParamsException;
};
@@ -184,8 +184,8 @@ module V1
*/
enum OperationResult
{
- SUCCESS,
- FAILURE
+ SUCCESS,
+ FAILURE
};
/**
@@ -198,58 +198,58 @@ module V1
*/
interface RoutingEvents
{
- /**
- * Notification that a lookup was attempted.
- *
- * @param destinationId The destination being looked up.
- *
- * @param result Indicates whether or not the attempt was successful.
- */
- void lookupEvent(string destinationId, OperationResult result);
-
- /**
- * Notification that an attempt to add an EndpointLocator was made.
- *
- * @param id The identifier of the EndpointLocator being added.
- *
- * @param destinationIdRangeList A set of regular expressions that define the endpoints available.
- *
- * @param result Indicates whether or not the attempt was successful.
- */
- void addEndpointLocatorEvent(string id, RegExSeq destinationIdRangeList, EndpointLocator *locator, OperationResult result);
-
- /**
- * Notification that an attempt was made to remove an EndpointLocator.
- *
- * @param id The identifier of the EndpointLocator being removed.
- *
- * @param result Indicates whether or not the attempt was successful.
- */
- void removeEndpointLocatorEvent(string id, OperationResult result);
-
- /**
- * Notification that an attempt was made to modify the range of destinationIds
- * accessible from a given EndpointLocator.
- *
- * @param id The destination being looked up.
- *
- * @param destinationIdRangeList A list of regular expressions to be representative of the new valid ids.
- *
- * @param result Indicates whether or not the attempt was successful.
- */
- void setEndpointLocatorDestinationIdsEvent(string id, RegExSeq destinationIdRangeList, OperationResult result);
-
- /**
- * Called when the EndpointLocator cache has been cleared by an administrative action.
- */
- void clearEndpointLocatorsEvent();
-
- /**
- * Called when an administration operation has set the routing service policy.
- *
- * @param policy The new policy.
- */
- void setPolicyEvent(string policy);
+ /**
+ * Notification that a lookup was attempted.
+ *
+ * @param destinationId The destination being looked up.
+ *
+ * @param result Indicates whether or not the attempt was successful.
+ */
+ void lookupEvent(string destinationId, OperationResult result);
+
+ /**
+ * Notification that an attempt to add an EndpointLocator was made.
+ *
+ * @param id The identifier of the EndpointLocator being added.
+ *
+ * @param destinationIdRangeList A set of regular expressions that define the endpoints available.
+ *
+ * @param result Indicates whether or not the attempt was successful.
+ */
+ void addEndpointLocatorEvent(string id, RegExSeq destinationIdRangeList, EndpointLocator *locator, OperationResult result);
+
+ /**
+ * Notification that an attempt was made to remove an EndpointLocator.
+ *
+ * @param id The identifier of the EndpointLocator being removed.
+ *
+ * @param result Indicates whether or not the attempt was successful.
+ */
+ void removeEndpointLocatorEvent(string id, OperationResult result);
+
+ /**
+ * Notification that an attempt was made to modify the range of destinationIds
+ * accessible from a given EndpointLocator.
+ *
+ * @param id The destination being looked up.
+ *
+ * @param destinationIdRangeList A list of regular expressions to be representative of the new valid ids.
+ *
+ * @param result Indicates whether or not the attempt was successful.
+ */
+ void setEndpointLocatorDestinationIdsEvent(string id, RegExSeq destinationIdRangeList, OperationResult result);
+
+ /**
+ * Called when the EndpointLocator cache has been cleared by an administrative action.
+ */
+ void clearEndpointLocatorsEvent();
+
+ /**
+ * Called when an administration operation has set the routing service policy.
+ *
+ * @param policy The new policy.
+ */
+ void setPolicyEvent(string policy);
};
};
diff --git a/AsteriskSCF/System/Component/ComponentServiceIf.ice b/AsteriskSCF/System/Component/ComponentServiceIf.ice
index c76a0f8..b6db122 100644
--- a/AsteriskSCF/System/Component/ComponentServiceIf.ice
+++ b/AsteriskSCF/System/Component/ComponentServiceIf.ice
@@ -17,7 +17,7 @@
#pragma once
module AsteriskSCF
-{
+{
module System
{
@@ -80,22 +80,34 @@ module V1
void shutdown() throws Suspended;
};
- /**
- * A base class to enable arbitary parameter passing to the ComponentTest inteface.
- */
- class ComponentTestParam {};
+ /**
+ * A base class to enable arbitary parameter passing to the ComponentTest inteface.
+ */
+ class ComponentTestParam {};
sequence<ComponentTestParam> ComponentTestParamSeq;
- const string ComponentTestFacet = "TestFacet";
+ const string ComponentTestFacet = "TestFacet";
/**
- * This interface is expsed as an optional facet on ComponentService. Release builds of components
- * will never have this interface present for security reasons.
+ * This interface is expsed as an optional facet on ComponentService.
*/
interface ComponentTest
- {
- void setTestMode(string mode);
- void setTestModeWithArgs(string mode, ComponentTestParamSeq params);
+ {
+ /**
+ * Set a test mode. The meaning of the mode is specific
+ * to a given component and it's tests.
+ */
+ void setTestMode(string mode);
+
+ /**
+ * Set a test mode with params. The meaning of the mode and paramters is specific
+ * to a given component and it's tests.
+ */
+ void setTestModeWithArgs(string mode, ComponentTestParamSeq params);
+
+ void clearTestMode(string mode);
+
+ void clearTestModes();
};
}; /* End of V1 */
-----------------------------------------------------------------------
--
asterisk-scf/integration/slice.git
More information about the asterisk-scf-commits
mailing list