Example usage for java.util UUID toString

List of usage examples for java.util UUID toString

Introduction

In this page you can find the example usage for java.util UUID toString.

Prototype

public String toString() 

Source Link

Document

Returns a String object representing this UUID .

Usage

From source file:org.ovirt.engine.sdk.decorators.HostStatistics.java

/**
 * Fetches HostStatistic object by id./*ww  w. j  av  a2  s . com*/
 *
 * @return
 *     {@link HostStatistic }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public HostStatistic get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Statistic.class, HostStatistic.class);
}

From source file:org.ovirt.engine.sdk.decorators.JobStepStatistics.java

/**
 * Fetches JobStepStatistic object by id.
 *
 * @return//ww w  . j  av  a2 s.c  o m
 *     {@link JobStepStatistic }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public JobStepStatistic get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Statistic.class, JobStepStatistic.class);
}

From source file:org.ovirt.engine.sdk.decorators.NetworkVnicProfilePermissions.java

/**
 * Fetches NetworkVnicProfilePermission object by id.
 *
 * @return//from w w  w . j av a 2s .com
 *     {@link NetworkVnicProfilePermission }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public NetworkVnicProfilePermission get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Permission.class,
            NetworkVnicProfilePermission.class);
}

From source file:org.ovirt.engine.sdk.decorators.StorageDomainDiskPermissions.java

/**
 * Fetches StorageDomainDiskPermission object by id.
 *
 * @return//from  www.  j a  va 2  s.c  om
 *     {@link StorageDomainDiskPermission }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public StorageDomainDiskPermission get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Permission.class,
            StorageDomainDiskPermission.class);
}

From source file:org.ovirt.engine.sdk.decorators.StorageDomainImages.java

/**
 * Fetches StorageDomainImage object by id.
 *
 * @return/*ww w  . ja  v  a 2s  .c  om*/
 *     {@link StorageDomainImage }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public StorageDomainImage get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Image.class, StorageDomainImage.class);
}

From source file:org.ovirt.engine.sdk.decorators.TemplateCdRoms.java

/**
 * Fetches TemplateCdRom object by id./* ww w . java2 s . c  o  m*/
 *
 * @return
 *     {@link TemplateCdRom }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public TemplateCdRom get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.CdRom.class, TemplateCdRom.class);
}

From source file:org.ovirt.engine.sdk.decorators.TemplateDisks.java

/**
 * Fetches TemplateDisk object by id./*from   w  ww.  j  a  va 2s  . co  m*/
 *
 * @return
 *     {@link TemplateDisk }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public TemplateDisk get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Disk.class, TemplateDisk.class);
}

From source file:org.ovirt.engine.sdk.decorators.VMStatistics.java

/**
 * Fetches VMStatistic object by id./*from w  w w .j  a v a 2s . c  o m*/
 *
 * @return
 *     {@link VMStatistic }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public VMStatistic get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Statistic.class, VMStatistic.class);
}

From source file:eu.loopit.f2011.library.BitmapManager.java

private InputStream fetch(UUID uuid) throws IOException {
    if (context == null)
        return null;
    if (new File(context.getFilesDir() + "/" + uuid.toString()).exists() == false)
        return null;
    Log.i(TAG, "Found image in image cache");
    return context.openFileInput(uuid.toString());
}

From source file:org.ovirt.engine.sdk.decorators.HostNumaNodeStatistics.java

/**
 * Fetches HostNumaNodeStatistic object by id.
 *
 * @return//from w  w w  . j a  v  a 2s  .  co m
 *     {@link HostNumaNodeStatistic }
 *
 * @throws ClientProtocolException
 *             Signals that HTTP/S protocol error has occurred.
 * @throws ServerException
 *             Signals that an oVirt api error has occurred.
 * @throws IOException
 *             Signals that an I/O exception of some sort has occurred.
 */
@Override
public HostNumaNodeStatistic get(UUID id) throws ClientProtocolException, ServerException, IOException {
    String url = this.parent.getHref() + SLASH + getName() + SLASH + id.toString();
    return getProxy().get(url, org.ovirt.engine.sdk.entities.Statistic.class, HostNumaNodeStatistic.class);
}