SWRepositoryManager (Resource Management Portlet Common IS Operations Support Library 1.0.0-SNAPSHOT API)
Date: 2012-12-19

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gcube.resourcemanagement.support.managers.services
Class SWRepositoryManager

    java.lang.Object
      org.gcube.resourcemanagement.support.managers.services.SWRepositoryManager

    public class SWRepositoryManager

extends Object

A support library to handle and retrieve remote software repository manager.
Useful to handle the proxy for repository manager.
Usage:

      SWRepositoryManager repMgr = new SWRepositoryManager();
      // if needed sets the time out for socket connection
      // -- repMgr.setCallTimeOut(240000);
      SoftwareRepositoryPortType swrep = repMgr.getSoftwareRepository(scope);
      // Applies a deploy
      swrep.store(...);

Author:
  Daniele Strollo (ISTI-CNR)

Constructor Summary
`SWRepositoryManager()`

Method Summary
`int` | `getCallTimeOut()`
`org.gcube.vremanagement.softwarerepository.stubs.SoftwareRepositoryPortType` | `getSoftwareRepository(org.gcube.common.core.scope.GCUBEScope scope)` Retrieves form the current scope the list of registered software managers and returns one of them (random choice).
`void` | `setCallTimeOut(int callTimeOut)` Used to set the time out for socket connection with the software repository to update.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SWRepositoryManager

    public SWRepositoryManager()
                        throws ResourceAccessException

Throws:
  `ResourceAccessException`

Method Detail

### getSoftwareRepository

    public final org.gcube.vremanagement.softwarerepository.stubs.SoftwareRepositoryPortType getSoftwareRepository(org.gcube.common.core.scope.GCUBEScope scope)
                                                                                                            throws ResourceAccessException,
                                                                                                                   ResourceParameterException

  Retrieves form the current scope the list of registered software managers and returns one of them (random choice).

  Parameters:
    `scope` - the scope in which search the sw repository
  Returns:
    one randomly chosen repository manager (if many available).
  Throws:
    `ResourceAccessException` - if no sw manager found
    `ResourceParameterException` - if wrong parameters passed

### setCallTimeOut

    public final void setCallTimeOut(int callTimeOut)

  Used to set the time out for socket connection with the software repository to update.

  Parameters:
    `callTimeOut` -

### getCallTimeOut

    public final int getCallTimeOut()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.