Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (c) 2011-2013 INRIA.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
**/
package fr.inria.eventcloud.webservices.factories;
import java.util.HashMap;
import org.objectweb.proactive.core.node.Node;
import org.objectweb.proactive.extensions.p2p.structured.deployment.DeploymentConfiguration;
import org.objectweb.proactive.extensions.p2p.structured.deployment.NodeProvider;
import org.objectweb.proactive.extensions.p2p.structured.factories.AbstractFactory;
import org.objectweb.proactive.extensions.p2p.structured.utils.ComponentUtils;
import org.objectweb.proactive.gcmdeployment.GCMVirtualNode;
import fr.inria.eventcloud.api.EventCloudId;
import fr.inria.eventcloud.api.PublishApi;
import fr.inria.eventcloud.api.PutGetApi;
import fr.inria.eventcloud.api.SubscribeApi;
import fr.inria.eventcloud.api.properties.AlterableElaProperty;
import fr.inria.eventcloud.exceptions.EventCloudIdNotManaged;
import fr.inria.eventcloud.factories.ProxyFactory;
import fr.inria.eventcloud.proxies.PublishProxyImpl;
import fr.inria.eventcloud.proxies.PutGetProxyImpl;
import fr.inria.eventcloud.proxies.SubscribeProxyImpl;
import fr.inria.eventcloud.webservices.proxies.PublishWsProxyImpl;
import fr.inria.eventcloud.webservices.proxies.PutGetWsProxyImpl;
import fr.inria.eventcloud.webservices.proxies.SubscribeWsProxyImpl;
/**
* WsProxyFactory is used to create a new instance of a proxy component (e.g.
* subscribe proxy component, publish proxy component or put/get proxy
* component) that can be exposed as a web service.
*
* @author bsauvan
*/
public final class WsProxyFactory extends ProxyFactory {
static {
publishProxyAdl = PublishWsProxyImpl.PUBLISH_WEBSERVICE_PROXY_ADL;
subscribeProxyAdl = SubscribeWsProxyImpl.SUBSCRIBE_WEBSERVICE_PROXY_ADL;
putgetProxyAdl = PutGetWsProxyImpl.PUTGET_WEBSERVICE_PROXY_ADL;
}
/**
* Creates a new generic publish web service proxy component deployed on the
* local JVM.
* The proxy is not initialized and not started.
*
* @return the reference on the {@link PublishApi} interface of the new
* generic publish web service proxy component created.
*/
public static PublishApi newGenericPublishProxy() {
return ProxyFactory.createGenericPublishProxy(
publishProxyAdl, new HashMap());
}
/**
* Creates a new generic publish web service proxy component deployed on the
* specified {@code node}.
* The proxy is not initialized and not started.
*
* @param node
* the node to be used for deployment.
*
* @return the reference on the {@link PublishApi} interface of the new
* generic web service publish proxy component created.
*/
public static PublishApi newGenericPublishProxy(Node node) {
return WsProxyFactory.createGenericPublishProxy(
publishProxyAdl, ComponentUtils.createContext(node));
}
/**
* Creates a new generic publish web service proxy component deployed on the
* specified {@code GCM virtual node}.
* The proxy is not initialized and not started.
*
* @param vn
* the GCM virtual node to be used for deployment.
*
* @return the reference on the {@link PublishApi} interface of the new
* generic publish web service proxy component created.
*/
public static PublishApi newGenericPublishProxy(GCMVirtualNode vn) {
return WsProxyFactory.createGenericPublishProxy(
publishProxyAdl, ComponentUtils.createContext(vn));
}
/**
* Creates a new generic publish web service proxy component deployed on a
* node provided by the specified {@code node provider}.
* The proxy is not initialized and not started.
*
* @param nodeProvider
* the node provider to be used for deployment.
*
* @return the reference on the {@link PublishApi} interface of the new
* generic publish web service proxy component created.
*/
public static PublishApi newGenericPublishProxy(NodeProvider nodeProvider) {
return WsProxyFactory.createGenericPublishProxy(
publishProxyAdl, AbstractFactory.getContextFromNodeProvider(
nodeProvider, PublishProxyImpl.PUBLISH_PROXY_VN));
}
/**
* Creates a new publish web service proxy component deployed on the local
* JVM.
*
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPublishProxy(
publishProxyAdl, new HashMap(), null,
registryUrl, id);
}
/**
* Creates a new publish web service proxy component deployed on the local
* JVM by using the specified deployment configuration.
*
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPublishProxy(
publishProxyAdl, new HashMap(),
deploymentConfiguration, registryUrl, id);
}
/**
* Creates a new publish web service proxy component deployed on the
* specified {@code node}.
*
* @param node
* the node to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(Node node, String registryUrl,
EventCloudId id)
throws EventCloudIdNotManaged {
return WsProxyFactory.newPublishProxy(node, null, registryUrl, id);
}
/**
* Creates a new publish web service proxy component deployed on the
* specified {@code node} by using the specified deployment configuration.
*
* @param node
* the node to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(Node node,
DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPublishProxy(
publishProxyAdl, ComponentUtils.createContext(node),
deploymentConfiguration, registryUrl, id);
}
/**
* Creates a new publish web service proxy component deployed on the
* specified {@code GCM virtual node}.
*
* @param vn
* the GCM virtual node to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(GCMVirtualNode vn,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return WsProxyFactory.newPublishProxy(vn, null, registryUrl, id);
}
/**
* Creates a new publish web service proxy component deployed on the
* specified {@code GCM virtual node} by using the specified deployment
* configuration.
*
* @param vn
* the GCM virtual node to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(GCMVirtualNode vn,
DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPublishProxy(
publishProxyAdl, ComponentUtils.createContext(vn),
deploymentConfiguration, registryUrl, id);
}
/**
* Creates a new publish web service proxy component deployed on a node
* provided by the specified {@code node provider}.
*
* @param nodeProvider
* the node provider to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(NodeProvider nodeProvider,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return WsProxyFactory.newPublishProxy(
nodeProvider, null, registryUrl, id);
}
/**
* Creates a new publish web service proxy component deployed on a node
* provided by the specified {@code node provider} by using the specified
* deployment configuration.
*
* @param nodeProvider
* the node provider to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PublishApi} interface of the new
* publish web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PublishApi newPublishProxy(NodeProvider nodeProvider,
DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPublishProxy(
publishProxyAdl, AbstractFactory.getContextFromNodeProvider(
nodeProvider, PublishProxyImpl.PUBLISH_PROXY_VN),
deploymentConfiguration, registryUrl, id);
}
/**
* Creates a new generic subscribe web service proxy component deployed on
* the local JVM.
* The proxy is not initialized and not started.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* generic subscribe web service proxy component created.
*/
public static SubscribeApi newGenericSubscribeProxy() {
return ProxyFactory.createGenericSubscribeProxy(
subscribeProxyAdl, new HashMap());
}
/**
* Creates a new generic subscribe web service proxy component deployed on
* the specified {@code node}.
* The proxy is not initialized and not started.
*
* @param node
* the node to be used for deployment.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* generic subscribe web service proxy component created.
*/
public static SubscribeApi newGenericSubscribeProxy(Node node) {
return WsProxyFactory.createGenericSubscribeProxy(
subscribeProxyAdl, ComponentUtils.createContext(node));
}
/**
* Creates a new generic subscribe web service proxy component deployed on
* the specified {@code GCM virtual node}.
* The proxy is not initialized and not started.
*
* @param vn
* the GCM virtual node to be used for deployment.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* generic subscribe web service proxy component created.
*/
public static SubscribeApi newGenericSubscribeProxy(GCMVirtualNode vn) {
return WsProxyFactory.createGenericSubscribeProxy(
subscribeProxyAdl, ComponentUtils.createContext(vn));
}
/**
* Creates a new generic subscribe web service proxy component deployed on a
* node provided by the specified {@code node provider}.
* The proxy is not initialized and not started.
*
* @param nodeProvider
* the node provider to be used for deployment.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* generic subscribe web service proxy component created.
*/
public static SubscribeApi newGenericSubscribeProxy(NodeProvider nodeProvider) {
return WsProxyFactory.createGenericSubscribeProxy(
subscribeProxyAdl, AbstractFactory.getContextFromNodeProvider(
nodeProvider, SubscribeProxyImpl.SUBSCRIBE_PROXY_VN));
}
/**
* Creates a new subscribe web service proxy component deployed on the local
* JVM and by registering the proxy to the registry in order to have the
* possibility to receive notification.
*
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return ProxyFactory.createSubscribeProxy(
subscribeProxyAdl, new HashMap(), null,
registryUrl, id, properties);
}
/**
* Creates a new subscribe web service proxy component deployed on the local
* JVM by using the specified deployment configuration and by registering
* the proxy to the registry in order to have the possibility to receive
* notification.
*
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(DeploymentConfiguration deploymentConfiguration,
String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return ProxyFactory.createSubscribeProxy(
subscribeProxyAdl, new HashMap(),
deploymentConfiguration, registryUrl, id, properties);
}
/**
* Creates a new subscribe web service proxy component deployed on the
* specified {@code node} and by registering the proxy to the registry in
* order to have the possibility to receive notification.
*
* @param node
* the node to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(Node node,
String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return WsProxyFactory.newSubscribeProxy(
node, null, registryUrl, id, properties);
}
/**
* Creates a new subscribe web service proxy component deployed on the
* specified {@code node} by using the specified deployment configuration
* and by registering the proxy to the registry in order to have the
* possibility to receive notification.
*
* @param node
* the node to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(Node node,
DeploymentConfiguration deploymentConfiguration,
String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return ProxyFactory.createSubscribeProxy(
subscribeProxyAdl, ComponentUtils.createContext(node),
deploymentConfiguration, registryUrl, id, properties);
}
/**
* Creates a new subscribe web service proxy component deployed on the
* specified {@code GCM virtual node} and by registering the proxy to the
* registry in order to have the possibility to receive notification.
*
* @param vn
* the GCM virtual node to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(GCMVirtualNode vn,
String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return WsProxyFactory.newSubscribeProxy(
vn, null, registryUrl, id, properties);
}
/**
* Creates a new subscribe web service proxy component deployed on the
* specified {@code GCM virtual node} by using the specified deployment
* configuration and by registering the proxy to the registry in order to
* have the possibility to receive notification.
*
* @param vn
* the GCM virtual node to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(GCMVirtualNode vn,
DeploymentConfiguration deploymentConfiguration,
String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return ProxyFactory.createSubscribeProxy(
subscribeProxyAdl, ComponentUtils.createContext(vn),
deploymentConfiguration, registryUrl, id, properties);
}
/**
* Creates a new subscribe web service proxy component deployed on a node
* provided by the specified {@code node provider} and by registering the
* proxy to the registry in order to have the possibility to receive
* notification.
*
* @param nodeProvider
* the node provider to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(NodeProvider nodeProvider,
String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return WsProxyFactory.newSubscribeProxy(
nodeProvider, null, registryUrl, id, properties);
}
/**
* Creates a new subscribe web service proxy component deployed on a node
* provided by the specified {@code node provider} by using the specified
* deployment configuration and by registering the proxy to the registry in
* order to have the possibility to receive notification.
*
* @param nodeProvider
* the node provider to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
* @param properties
* the ELA properties to set.
*
* @return the reference on the {@link SubscribeApi} interface of the new
* subscribe web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static SubscribeApi newSubscribeProxy(NodeProvider nodeProvider,
DeploymentConfiguration deploymentConfiguration,
String registryUrl,
EventCloudId id,
AlterableElaProperty... properties)
throws EventCloudIdNotManaged {
return ProxyFactory.createSubscribeProxy(
subscribeProxyAdl, AbstractFactory.getContextFromNodeProvider(
nodeProvider, SubscribeProxyImpl.SUBSCRIBE_PROXY_VN),
deploymentConfiguration, registryUrl, id, properties);
}
/**
* Creates a new generic put/get web service proxy component deployed on the
* local JVM.
* The proxy is not initialized and not started.
*
* @return the reference on the {@link PutGetApi} interface of the new
* generic put/get web service proxy component created.
*/
public static PutGetApi newGenericPutGetProxy() {
return ProxyFactory.createGenericPutGetProxy(
putgetProxyAdl, new HashMap());
}
/**
* Creates a new generic put/get web service proxy component deployed on the
* specified {@code node}.
* The proxy is not initialized and not started.
*
* @param node
* the node to be used for deployment.
*
* @return the reference on the {@link PutGetApi} interface of the new
* generic put/get web service proxy component created.
*/
public static PutGetApi newGenericPutGetProxy(Node node) {
return WsProxyFactory.createGenericPutGetProxy(
putgetProxyAdl, ComponentUtils.createContext(node));
}
/**
* Creates a new generic put/get web service proxy component deployed on the
* specified {@code GCM virtual node}.
* The proxy is not initialized and not started.
*
* @param vn
* the GCM virtual node to be used for deployment.
*
* @return the reference on the {@link PutGetApi} interface of the new
* generic put/get web service proxy component created.
*/
public static PutGetApi newGenericPutGetProxy(GCMVirtualNode vn) {
return WsProxyFactory.createGenericPutGetProxy(
putgetProxyAdl, ComponentUtils.createContext(vn));
}
/**
* Creates a new generic put/get web service proxy component deployed on a
* node provided by the specified {@code node provider}.
* The proxy is not initialized and not started.
*
* @param nodeProvider
* the node provider to be used for deployment.
*
* @return the reference on the {@link PutGetApi} interface of the new
* generic put/get web service proxy component created.
*/
public static PutGetApi newGenericPutGetProxy(NodeProvider nodeProvider) {
return WsProxyFactory.createGenericPutGetProxy(
putgetProxyAdl, AbstractFactory.getContextFromNodeProvider(
nodeProvider, PutGetProxyImpl.PUTGET_PROXY_VN));
}
/**
* Creates a new put/get web service proxy component deployed on the local
* JVM.
*
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPutGetProxy(
putgetProxyAdl, new HashMap(), null,
registryUrl, id);
}
/**
* Creates a new put/get web service proxy component deployed on the local
* JVM by using the specified deployment configuration.
*
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPutGetProxy(
putgetProxyAdl, new HashMap(),
deploymentConfiguration, registryUrl, id);
}
/**
* Creates a new put/get web service proxy component deployed on the
* specified {@code node}.
*
* @param node
* the node to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(Node node, String registryUrl,
EventCloudId id)
throws EventCloudIdNotManaged {
return WsProxyFactory.newPutGetProxy(node, null, registryUrl, id);
}
/**
* Creates a new put/get web service proxy component deployed on the
* specified {@code node} by using the specified deployment configuration.
*
* @param node
* the node to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(Node node,
DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPutGetProxy(
putgetProxyAdl, ComponentUtils.createContext(node),
deploymentConfiguration, registryUrl, id);
}
/**
* Creates a new put/get web service proxy component deployed on the
* specified {@code GCM virtual node}.
*
* @param vn
* the GCM virtual node to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(GCMVirtualNode vn,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return WsProxyFactory.newPutGetProxy(vn, null, registryUrl, id);
}
/**
* Creates a new put/get web service proxy component deployed on the
* specified {@code GCM virtual node} by using the specified deployment
* configuration.
*
* @param vn
* the GCM virtual node to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(GCMVirtualNode vn,
DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPutGetProxy(
putgetProxyAdl, ComponentUtils.createContext(vn),
deploymentConfiguration, registryUrl, id);
}
/**
* Creates a new put/get web service proxy component deployed on a node
* provided by the specified {@code node provider}.
*
* @param nodeProvider
* the node provider to be used for deployment.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(NodeProvider nodeProvider,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return WsProxyFactory.newPutGetProxy(
nodeProvider, null, registryUrl, id);
}
/**
* Creates a new put/get web service proxy component deployed on a node
* provided by the specified {@code node provider} by using the specified
* deployment configuration.
*
* @param nodeProvider
* the node provider to be used for deployment.
* @param deploymentConfiguration
* the deployment configuration to use.
* @param registryUrl
* the EventClouds registry URL.
* @param id
* the identifier that identify the EventCloud to work on.
*
* @return the reference on the {@link PutGetApi} interface of the new
* put/get web service proxy component created.
*
* @throws EventCloudIdNotManaged
* if the specified registry does not managed the specified id.
*/
public static PutGetApi newPutGetProxy(NodeProvider nodeProvider,
DeploymentConfiguration deploymentConfiguration,
String registryUrl, EventCloudId id)
throws EventCloudIdNotManaged {
return ProxyFactory.createPutGetProxy(
putgetProxyAdl, AbstractFactory.getContextFromNodeProvider(
nodeProvider, PutGetProxyImpl.PUTGET_PROXY_VN),
deploymentConfiguration, registryUrl, id);
}
}