public class RemoteService extends DomainWrapper<com.abiquo.server.core.infrastructure.RemoteServiceDto>
RemoteServiceDto
. The Remote Service resource offers the
functionality of managing the remote services of a datacenter in a logical way.
http://community.abiquo.com/display/ABI20/RemoteServiceResource
Modifier and Type | Class and Description |
---|---|
static class |
RemoteService.Builder |
context, target
Modifier | Constructor and Description |
---|---|
protected |
RemoteService(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.RemoteServiceDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
static RemoteService.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
Datacenter datacenter) |
void |
delete()
Delete the remote service.
|
Datacenter |
getDatacenter()
Retrieve the datacenter using this remotes service.
|
Integer |
getId() |
int |
getStatus() |
com.abiquo.model.enumerator.RemoteServiceType |
getType() |
String |
getUri() |
boolean |
isAvailable()
Check remote service availability.
|
void |
save()
Create the remote service.
|
void |
setStatus(int status) |
void |
setType(com.abiquo.model.enumerator.RemoteServiceType type) |
void |
setUri(String uri) |
String |
toString() |
void |
update()
Update remote service information in the server with the data from this remote service.
|
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected RemoteService(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.RemoteServiceDto target)
public void delete()
public void save()
public void update()
public boolean isAvailable()
public Datacenter getDatacenter()
public static RemoteService.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, Datacenter datacenter)
public Integer getId()
public com.abiquo.model.enumerator.RemoteServiceType getType()
public int getStatus()
public String getUri()
public void setStatus(int status)
public void setType(com.abiquo.model.enumerator.RemoteServiceType type)
public void setUri(String uri)
Copyright © 2009-2013 jclouds. All Rights Reserved.