public class TargetWsDelegate extends Object
| Constructor and Description |
|---|
TargetWsDelegate(com.sun.jersey.api.client.WebResource resource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
associateTarget(net.roboconf.core.model.beans.AbstractApplication app,
String instancePathOrComponentName,
String targetId,
boolean bind)
Associates or dissociates an application and a target.
|
String |
createTarget(String targetContent)
Creates a new target.
|
void |
deleteTarget(String targetId)
Deletes a target.
|
List<net.roboconf.core.model.runtime.TargetWrapperDescriptor> |
listAllTargets()
Lists all the targets.
|
public TargetWsDelegate(com.sun.jersey.api.client.WebResource resource)
resource - a web resourcepublic List<net.roboconf.core.model.runtime.TargetWrapperDescriptor> listAllTargets()
public String createTarget(String targetContent) throws TargetWsException
targetContent - non-null target propertiesTargetWsException - if the creation failedpublic void deleteTarget(String targetId) throws TargetWsException
targetId - a target IDTargetWsException - if the creation failedpublic void associateTarget(net.roboconf.core.model.beans.AbstractApplication app,
String instancePathOrComponentName,
String targetId,
boolean bind)
throws TargetWsException
app - an application or application templatetargetId - a target IDinstancePathOrComponentName - an instance path or a component name (can be null)bind - true to create a binding, false to delete oneTargetWsExceptionCopyright © 2017. All rights reserved.