public class PingDestination extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PingDestination.ResourceField |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_METHOD
The default method "GET"
|
static String |
URL_TYPE |
| Constructor and Description |
|---|
PingDestination(String tenantId,
String environmentId,
String resourceId,
String url)
Creates a new
PingDestination using the default method "GET". |
PingDestination(String tenantId,
String environmentId,
String resourceId,
String url,
String method)
Creates a new
PingDestination |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PingDestination |
from(org.hawkular.inventory.api.model.Resource r) |
String |
getEnvironmentId() |
String |
getMethod() |
String |
getResourceId() |
String |
getTenantId() |
String |
getUrl() |
int |
hashCode() |
static boolean |
isUrl(org.hawkular.inventory.api.model.Resource r) |
String |
toString() |
public static final String URL_TYPE
public static final String DEFAULT_METHOD
public PingDestination(String tenantId, String environmentId, String resourceId, String url)
PingDestination using the default method "GET".tenantId - the owner of the present PingDestinationenvironmentId - the environment (test/live) the present PingDestination belongs toresourceId - the resourceId of this destination as taken from Hawkular Inventoryurl - the URL to pingpublic PingDestination(String tenantId, String environmentId, String resourceId, String url, String method)
PingDestinationtenantId - the owner of the present PingDestinationenvironmentId - the environment (test/live) the present PingDestination belongs toresourceId - the resourceId of this destination as taken from Hawkular Inventoryurl - the URL to pingmethod - the HTTP method to use in the ping request or null to use the default method
"GET"public static boolean isUrl(org.hawkular.inventory.api.model.Resource r)
public static PingDestination from(org.hawkular.inventory.api.model.Resource r)
public String toString()
toString in class ObjectObject.toString()public String getTenantId()
public String getEnvironmentId()
public String getResourceId()
public String getUrl()
public String getMethod()
Copyright © 2015–2016 Red Hat. All rights reserved.