Java 类com.vmware.vim25.InvalidDatastore 实例源码

项目:vijava    文件:VirtualMachineDeviceManager.java   
/**
 * Remove the device. Make sure the VM is powered off before calling this method.
 * If destroyDeviceBacking is true, it deletes backings for example files in datastore. BE CAREFUL! 
 */
public Task removeDevice(VirtualDevice device, boolean destroyDeviceBacking) throws InvalidName, VmConfigFault, DuplicateName, TaskInProgress, FileFault, InvalidState, ConcurrentAccess, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException
{
  ArrayList<VirtualDevice> deviceList = new ArrayList<VirtualDevice>();
  deviceList.add(device);
  return removeDevices(deviceList, destroyDeviceBacking); 
}
项目:vijava    文件:FileManager.java   
public Task copyDatastoreFile_Task(String sourceName, Datacenter sourceDatacenter, 
        String destinationName, Datacenter destinationDatacenter, boolean force) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException 
{
    ManagedObjectReference taskMor = getVimService().copyDatastoreFile_Task(getMOR(), 
            sourceName, sourceDatacenter==null? null : sourceDatacenter.getMOR(), 
            destinationName, sourceDatacenter==null? null : destinationDatacenter.getMOR(), force);
    return new Task(getServerConnection(), taskMor);
}
项目:vijava    文件:FileManager.java   
public Task moveDatastoreFile_Task(String sourceName, Datacenter sourceDatacenter, 
        String destinationName, Datacenter destinationDatacenter, boolean force) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException 
{
    ManagedObjectReference taskMor = getVimService().moveDatastoreFile_Task(getMOR(), 
            sourceName, sourceDatacenter==null? null : sourceDatacenter.getMOR(), 
            destinationName, destinationDatacenter==null? null : destinationDatacenter.getMOR(), force);
    return new Task(getServerConnection(), taskMor);
}
项目:vijava    文件:SearchIndex.java   
/**
 * Find a VM by its location on a datastore
 * @param datacenter The datacenter within which it searches.
 * @param dPath The datastore path, for example, "[storage1] WinXP/WinXP.vmx".
 * @return A VirtualMachine that pointed by the dPath
 * @throws RemoteException 
 * @throws RuntimeFault 
 * @throws InvalidDatastore 
 */
public VirtualMachine findByDatastorePath(Datacenter datacenter, String dPath) throws InvalidDatastore, RuntimeFault, RemoteException
{
    if(datacenter==null)
    {
        throw new IllegalArgumentException("datacenter must not be null.");
    }

    ManagedObjectReference mor = getVimService().findByDatastorePath(getMOR(), datacenter.getMOR(), dPath);
    return (VirtualMachine) MorUtil.createExactManagedEntity(getServerConnection(), mor);
}
项目:photon-model    文件:ObjectFactory.java   
/**
 * Create an instance of {@link JAXBElement }{@code <}{@link InvalidDatastore }{@code >}}
 * 
 */
@XmlElementDecl(namespace = "urn:pbm", name = "InvalidDatastoreFault")
public JAXBElement<InvalidDatastore> createInvalidDatastoreFault(InvalidDatastore value) {
    return new JAXBElement<InvalidDatastore>(_InvalidDatastoreFault_QNAME, InvalidDatastore.class, null, value);
}
项目:jcloud-vsphere    文件:VSphereFileManager.java   
@Override
public void changeOwner(String name, Datacenter datacenter, String owner) throws InvalidDatastore, FileFault, UserNotFound, RuntimeFault, RemoteException {
   //To change body of implemented methods use File | Settings | File Templates.
}
项目:jcloud-vsphere    文件:VSphereFileManager.java   
@Override
public Task copyDatastoreFileTask(String sourceName, Datacenter sourceDatacenter, String destinationName, Datacenter destinationDatacenter, boolean force) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException {
   return null;  //To change body of implemented methods use File | Settings | File Templates.
}
项目:jcloud-vsphere    文件:VSphereFileManager.java   
@Override
public Task deleteDatastoreFileTask(String name, Datacenter datacenter) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException {
   return null;  //To change body of implemented methods use File | Settings | File Templates.
}
项目:jcloud-vsphere    文件:VSphereFileManager.java   
@Override
public void makeDirectory(String name, Datacenter datacenter, boolean createParentDirectories) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException {
   //To change body of implemented methods use File | Settings | File Templates.
}
项目:jcloud-vsphere    文件:VSphereFileManager.java   
@Override
public Task moveDatastoreFileTask(String sourceName, Datacenter sourceDatacenter, String destinationName, Datacenter destinationDatacenter, boolean force) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException {
   return null;  //To change body of implemented methods use File | Settings | File Templates.
}
项目:vijava    文件:VirtualMachineDeviceManager.java   
/**
 * @param floppyImagePath - i.e. "[storage1] myVM/myFloppy.flp" Note: there is a space after ].
 */
public Task addFloppyDriveFromISO(String floppyImagePath, boolean startConnected) throws InvalidName, VmConfigFault, DuplicateName, TaskInProgress, FileFault, InvalidState, ConcurrentAccess, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException
{
  return addFloppyDrive(floppyImagePath, null, null, startConnected);
}
项目:vijava    文件:VirtualMachineDeviceManager.java   
/**
 * @param hostDevice - i.e. "/dev/fd0" 
 */
public Task addFloppyDriveFromHost(String hostDevice, boolean startConnected) throws InvalidName, VmConfigFault, DuplicateName, TaskInProgress, FileFault, InvalidState, ConcurrentAccess, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException
{
  return addFloppyDrive(null, null, hostDevice, startConnected);
}
项目:vijava    文件:VirtualMachineDeviceManager.java   
public Task createFloppyDrive(String floppyImagePath, boolean startConnected) throws InvalidName, VmConfigFault, DuplicateName, TaskInProgress, FileFault, InvalidState, ConcurrentAccess, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException
{
  return addFloppyDrive(null, floppyImagePath, null, startConnected);
}
项目:vijava    文件:FileManager.java   
/**
 * @since 4.0
 */
public void changeOwner(String name, Datacenter datacenter, String owner) throws InvalidDatastore, FileFault, UserNotFound, RuntimeFault, RemoteException
{
    getVimService().changeOwner(getMOR(), name, 
            datacenter==null?null:datacenter.getMOR(), owner);
}
项目:vijava    文件:FileManager.java   
public Task deleteDatastoreFile_Task(String name, Datacenter datacenter) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException 
{
    ManagedObjectReference taskMor = getVimService().deleteDatastoreFile_Task(getMOR(), 
            name, datacenter==null? null : datacenter.getMOR());
    return new Task(getServerConnection(), taskMor);
}
项目:vijava    文件:FileManager.java   
public void makeDirectory(String name, Datacenter datacenter, boolean createParentDirectories) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException 
{
    getVimService().makeDirectory(getMOR(), name, datacenter==null? null : datacenter.getMOR(), createParentDirectories);
}
项目:vijava    文件:OvfManager.java   
public OvfCreateImportSpecResult createImportSpec(String ovfDescriptor, ResourcePool resourcePool, Datastore datastore, OvfCreateImportSpecParams cisp) throws TaskInProgress, VmConfigFault, ConcurrentAccess, FileFault, InvalidState, InvalidDatastore, RuntimeFault, RemoteException
{
    return getVimService().createImportSpec(getMOR(), ovfDescriptor, resourcePool.getMOR(), datastore.getMOR(), cisp);
}
项目:vijava    文件:VirtualApp.java   
public Task cloneVApp_Task(String name, ManagedObjectReference target, VAppCloneSpec spec) throws InvalidState, InvalidDatastore, TaskInProgress, VmConfigFault, FileFault, MigrationFault, InsufficientResourcesFault, RuntimeFault, RemoteException
{
    ManagedObjectReference taskMor = getVimService().cloneVApp_Task(getMOR(), name, target, spec);
    return new Task(getServerConnection(), taskMor);
}
项目:vijava    文件:VirtualApp.java   
public void updateVAppConfig(VAppConfigSpec spec) throws TaskInProgress, VmConfigFault, ConcurrentAccess, FileFault, InvalidName, DuplicateName, InvalidState, InsufficientResourcesFault, InvalidDatastore, RuntimeFault, RemoteException
{
    getVimService().updateVAppConfig(getMOR(), spec);
}
项目:jcloud-vsphere    文件:FileManagerApi.java   
/**
 * Change oner of one file on datastore.
 *
 * @param name
 * @param datacenter
 * @param owner
 * @throws InvalidDatastore
 * @throws FileFault
 * @throws UserNotFound
 * @throws RuntimeFault
 * @throws RemoteException
 */
void changeOwner(String name, Datacenter datacenter, String owner) throws InvalidDatastore, FileFault, UserNotFound, RuntimeFault, RemoteException;
项目:jcloud-vsphere    文件:FileManagerApi.java   
Task copyDatastoreFileTask(String sourceName, Datacenter sourceDatacenter, String destinationName, Datacenter destinationDatacenter, boolean force) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException;
项目:jcloud-vsphere    文件:FileManagerApi.java   
Task deleteDatastoreFileTask(String name, Datacenter datacenter) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException;
项目:jcloud-vsphere    文件:FileManagerApi.java   
void makeDirectory(String name, Datacenter datacenter, boolean createParentDirectories) throws FileFault, InvalidDatastore, RuntimeFault, java.rmi.RemoteException;
项目:jcloud-vsphere    文件:FileManagerApi.java   
Task moveDatastoreFileTask(String sourceName, Datacenter sourceDatacenter, String destinationName, Datacenter destinationDatacenter, boolean force) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException;