summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java b/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java
index b5332af..7bf13f4 100644
--- a/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java
+++ b/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java
@@ -8,8 +8,7 @@ import org.openslx.libvirt.xml.LibvirtXmlNode;
* @author Manuel Bentele
* @version 1.0
*/
-public class HostdevUsb extends Hostdev implements HostdevAddressableSource<HostdevUsbDeviceDescription>,
- HostdevAddressableTarget<HostdevUsbDeviceAddress>
+public class HostdevUsb extends Hostdev implements HostdevAddressableSource<HostdevUsbDeviceDescription>
{
/**
* Creates an empty hostdev USB device.
@@ -51,8 +50,7 @@ public class HostdevUsb extends Hostdev implements HostdevAddressableSource<Host
this.setXmlElementAttributeValue( "source/address/product", "id", productId );
}
- @Override
- public HostdevUsbDeviceAddress getPciTarget()
+ public HostdevUsbDeviceAddress getUsbTarget()
{
final String usbBus = this.getXmlElementAttributeValue( "address", "bus" );
final String usbPort = this.getXmlElementAttributeValue( "address", "port" );
@@ -60,8 +58,7 @@ public class HostdevUsb extends Hostdev implements HostdevAddressableSource<Host
return HostdevUsbDeviceAddress.valueOf( usbBus, usbPort );
}
- @Override
- public void setPciTarget( HostdevUsbDeviceAddress address )
+ public void setUsbTarget( HostdevUsbDeviceAddress address )
{
this.setXmlElementAttributeValue( "address", "bus", Integer.toString( address.getUsbBus() ) );
this.setXmlElementAttributeValue( "address", "port", Integer.toString( address.getUsbPort() ) );