~ubuntu-branches/ubuntu/raring/eucalyptus/raring

« back to all changes in this revision

Viewing changes to clc/modules/storage-controller/src/main/java/com/eucalyptus/storage/AOEManager.java

  • Committer: Package Import Robot
  • Author(s): Brian Thomason
  • Date: 2011-11-29 13:17:52 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 185.
  • Revision ID: package-import@ubuntu.com-20111129131752-rq31al3ntutv2vvl
Tags: upstream-3.0.999beta1
Import upstream version 3.0.999beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 *    SOFTWARE, AND IF ANY SUCH MATERIAL IS DISCOVERED THE PARTY DISCOVERING
54
54
 *    IT MAY INFORM DR. RICH WOLSKI AT THE UNIVERSITY OF CALIFORNIA, SANTA
55
55
 *    BARBARA WHO WILL THEN ASCERTAIN THE MOST APPROPRIATE REMEDY, WHICH IN
56
 
 *    THE REGENTS’ DISCRETION MAY INCLUDE, WITHOUT LIMITATION, REPLACEMENT
 
56
 *    THE REGENTS' DISCRETION MAY INCLUDE, WITHOUT LIMITATION, REPLACEMENT
57
57
 *    OF THE CODE SO IDENTIFIED, LICENSING OF THE CODE SO IDENTIFIED, OR
58
58
 *    WITHDRAWAL OF THE CODE CAPABILITY TO THE EXTENT NEEDED TO COMPLY WITH
59
59
 *    ANY SUCH LICENSES OR RIGHTS.
78
78
 
79
79
import com.eucalyptus.entities.EntityWrapper;
80
80
import com.eucalyptus.util.EucalyptusCloudException;
81
 
import com.eucalyptus.util.ExecutionException;
 
81
import java.util.concurrent.ExecutionException;
82
82
import com.eucalyptus.util.StorageProperties;
83
83
 
84
84
public class AOEManager implements StorageExportManager {
87
87
        public native int exportVolume(String iface, String lvName, int major, int minor);
88
88
 
89
89
        @Override
90
 
        public void checkPreconditions() throws EucalyptusCloudException, ExecutionException {
 
90
        public void checkPreconditions() throws EucalyptusCloudException {
91
91
                String returnValue;
92
92
                returnValue = SystemUtil.run(new String[]{OverlayManager.eucaHome + StorageProperties.EUCA_ROOT_WRAPPER, "which", "vblade"});
93
93
                if(returnValue.length() == 0) {
108
108
                        output.start();
109
109
                        proc.waitFor();
110
110
                        output.join();
111
 
                } catch (Throwable t) {
 
111
                } catch (Exception t) {
112
112
                        LOG.error(t);
113
113
                }
114
114
        }
124
124
                        output.start();
125
125
                        proc.waitFor();
126
126
                        output.join();
127
 
                } catch (Throwable t) {
 
127
                } catch (Exception t) {
128
128
                        LOG.error(t);
129
129
                }
130
130
        }