agave-apps/apps-core/src/main/java/org/iplantc/service/apps/queue/actions/CloneAction.java
/**
     * Verifies the existence and availability of the source {@link Software#getStorageSystem()}.
     *   
     * @param storageSystem
     * @throws SystemUnknownException
     * @throws SystemUnavailableException
     */
Verifies the existence and availability of the source  Software#getStorageSystem().


Verifies the existence and availability of the source Software#getStorageSystem () .
protected void verifySourceSoftwareStorageSystem(StorageSystem storageSystem) throws SystemUnknownException, SystemUnavailableException {
        if (storageSystem == null) {
            throw new SystemUnknownException("The deployment system containing the assets of"
                    + "the public app was not found as a registered system. Cloning of this app cannot proceed.");
        }
        else if (!storageSystem.isAvailable()) {
            throw new SystemUnknownException("The public deployment system " 
                    + storageSystem.getSystemId() 
                    + " is not currently available. Cloning of apps whose "
                    + "assets reside on this system will fail until " 
                    + "the system comes back online.");
        } 
        else if (storageSystem.getStatus() != SystemStatusType.UP)
        {
            throw new SystemUnavailableException("The public deployment system " 
                    + storageSystem.getSystemId() 
                    + " is currently " + storageSystem.getStatus().name() 
                    + ". Cloning of apps whose assets reside on this system will fail until " 
                    + "the system returns to service.");
        }
    }
protected void verifySourceSoftwareStorageSystem ( StorageSystem storageSystem ) throws SystemUnknownException , SystemUnavailableException { if ( storageSystem == null ) { throw new SystemUnknownException ( "The deployment system containing the assets of" + "the public app was not found as a registered system. Cloning of this app cannot proceed." ) ; } else if ( ! storageSystem . isAvailable ( ) ) { throw new SystemUnknownException ( "The public deployment system " + storageSystem . getSystemId ( ) + " is not currently available. Cloning of apps whose " + "assets reside on this system will fail until " + "the system comes back online." ) ; } else if ( storageSystem . getStatus ( ) != SystemStatusType . UP ) { throw new SystemUnavailableException ( "The public deployment system " + storageSystem . getSystemId ( ) + " is currently " + storageSystem . getStatus ( ) . name ( ) + ". Cloning of apps whose assets reside on this system will fail until " + "the system returns to service." ) ; } }
Verifies the existence and availability of the source {@link Software#getStorageSystem()}.
Verifies the existence and availability of the source { @link Software#getStorageSystem () } .
// apps must be saved on a public default storage system // if the public deployment host is unavailable // if the system is in down time or otherwise unavailable...