org.gcube.vremanagement.resourcemanager.impl.resources.software
Class SoftwareGatewayRequest

java.lang.Object
  extended by org.gcube.vremanagement.resourcemanager.impl.resources.software.SoftwareGatewayRequest

public final class SoftwareGatewayRequest
extends Object

Request for the Software Repository service to solve the service2package relationships

Author:
Manuele Simi (ISTI-CNR)

Field Summary
protected  org.gcube.common.core.utils.logging.GCUBELog logger
          Object logger
protected static String MISSING_DEPS_KEY
           
protected static String REPOSITORY_CLASS
          Target service class.
protected static String REPOSITORY_ENDPOINT
          Target port-type name.
protected static String REPOSITORY_NAME
          Target service name.
protected static String RESOLVED_DEPS_KEY
           
protected static int TIMEOUT
          Timeout for contacting the target service.
 
Constructor Summary
SoftwareGatewayRequest()
           
 
Method Summary
 void addSoftware(ScopedDeployedSoftware service)
          Adds a new service to the request
protected  Map<org.gcube.common.core.scope.GCUBEScope,Set<org.apache.axis.message.addressing.EndpointReferenceType>> findInstances()
          Finds instances of the Software Repository service in the current scope(s)
 List<ScopedDeployedSoftware> send(org.gcube.common.core.scope.GCUBEScope scope)
          Sends the request to the appropriate SG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOLVED_DEPS_KEY

protected static final String RESOLVED_DEPS_KEY
See Also:
Constant Field Values

MISSING_DEPS_KEY

protected static final String MISSING_DEPS_KEY
See Also:
Constant Field Values

REPOSITORY_ENDPOINT

protected static final String REPOSITORY_ENDPOINT
Target port-type name.

See Also:
Constant Field Values

REPOSITORY_NAME

protected static final String REPOSITORY_NAME
Target service name.

See Also:
Constant Field Values

REPOSITORY_CLASS

protected static final String REPOSITORY_CLASS
Target service class.

See Also:
Constant Field Values

TIMEOUT

protected static final int TIMEOUT
Timeout for contacting the target service.

See Also:
Constant Field Values

logger

protected final org.gcube.common.core.utils.logging.GCUBELog logger
Object logger

Constructor Detail

SoftwareGatewayRequest

public SoftwareGatewayRequest()
Method Detail

addSoftware

public void addSoftware(ScopedDeployedSoftware service)
Adds a new service to the request

Parameters:
service -

send

public List<ScopedDeployedSoftware> send(org.gcube.common.core.scope.GCUBEScope scope)
                                  throws Exception
Sends the request to the appropriate SG

Throws:
Exception

findInstances

protected Map<org.gcube.common.core.scope.GCUBEScope,Set<org.apache.axis.message.addressing.EndpointReferenceType>> findInstances()
                                                                                                                           throws Exception
Finds instances of the Software Repository service in the current scope(s)

Returns:
the list of scopes and the EPR of the available SR
Throws:
Exception


Copyright © 2012. All Rights Reserved.