-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version=0.4.3 | ||
release=1 | ||
libvirt.required=0.8.0 | ||
libvirt.required=0.8.1 | ||
java.required=1:1.5.0 | ||
rpm.topdir=/home/bkearney/rpmbuild | ||
jar.dir=/usr/share/java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.libvirt; | ||
|
||
import org.libvirt.jna.virDomainBlockInfo; | ||
|
||
public class DomainBlockInfo { | ||
protected long capacity; | ||
protected long allocation; | ||
protected long physical; | ||
|
||
public DomainBlockInfo(virDomainBlockInfo info) { | ||
capacity = info.capacity; | ||
allocation = info.allocation; | ||
physical = info.physical; | ||
} | ||
|
||
public long getAllocation() { | ||
return allocation; | ||
} | ||
|
||
public long getCapacity() { | ||
return capacity; | ||
} | ||
|
||
public long getPhysical() { | ||
return physical; | ||
} | ||
|
||
public void setAllocation(long allocation) { | ||
this.allocation = allocation; | ||
} | ||
|
||
public void setCapacity(long capacity) { | ||
this.capacity = capacity; | ||
} | ||
|
||
public void setPhysical(long physical) { | ||
this.physical = physical; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.libvirt.jna; | ||
|
||
import com.sun.jna.Structure; | ||
|
||
public class virDomainBlockInfo extends Structure { | ||
public long capacity; | ||
public long allocation; | ||
public long physical; | ||
|
||
} |