![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.vcloud.api.rest.client.EventViewer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vcd-api-client-java Show documentation
Show all versions of vcd-api-client-java Show documentation
REST API Client for vCloud Director
/* **********************************************************
* api-extension-template-vcloud-director
* Copyright 2018 VMware, Inc.
* SPDX-License-Identifier: BSD-2-Clause
* **********************************************************/
package com.vmware.vcloud.api.rest.client;
import com.vmware.vcloud.api.rest.schema_v1_5.QueryResultEventRecordType;
/**
* Helper methods to search for events.
*/
public interface EventViewer {
/**
* Returns an event of specified type for the specified entity.
*
* This method fails if it cannot find the event or if more than one event match the criteria.
*
* @param eventType
* Event type to match
* @param entityHref
* Entity URL to match
* @return matching event
*/
QueryResultEventRecordType getSingleEvent(final String eventType, final String entityHref);
/**
* Returns the latest event of specified type.
*
* This method fails if there are no events of the specified type.
*
* @param eventType
* Event type to match
* @return matching event
*/
QueryResultEventRecordType getLatestEvent(final String eventType);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy