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)
|
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 |
SWRepositoryManager
public SWRepositoryManager()
throws ResourceAccessException
- Throws:
ResourceAccessException
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()
Copyright © 2012. All Rights Reserved.