public class ScriptUtil extends Object
| Constructor and Description |
|---|
ScriptUtil(RhqFacade remoteClient) |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> |
findResources(String string)
Deprecated.
|
byte[] |
getFileBytes(String fileName) |
void |
init(ScriptEngine scriptEngine)
This method is called before the instance is inserted into the script engine scope.
|
boolean |
isDefined(String identifier) |
void |
saveBytesToFile(byte[] bytes,
String filename) |
void |
sleep(long millis) |
String |
uploadContent(String filename) |
org.rhq.core.domain.operation.ResourceOperationHistory |
waitForScheduledOperationToComplete(org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule) |
org.rhq.core.domain.operation.ResourceOperationHistory |
waitForScheduledOperationToComplete(org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule,
long intervalDuration,
int maxIntervals) |
public ScriptUtil(RhqFacade remoteClient)
public void init(ScriptEngine scriptEngine)
scriptEngine - the script engine this instance is to be injected in@Deprecated public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> findResources(String string)
string - public void saveBytesToFile(byte[] bytes,
String filename)
throws IOException
IOExceptionpublic byte[] getFileBytes(String fileName)
public void sleep(long millis)
public org.rhq.core.domain.operation.ResourceOperationHistory waitForScheduledOperationToComplete(org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule)
throws InterruptedException
InterruptedExceptionpublic org.rhq.core.domain.operation.ResourceOperationHistory waitForScheduledOperationToComplete(org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule,
long intervalDuration,
int maxIntervals)
throws InterruptedException
InterruptedExceptionpublic boolean isDefined(String identifier)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.