public class EngineInstance extends java.lang.Object implements ConfigChangeListener, Pollable
Constructor and Description |
---|
EngineInstance(java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
addBusynessListener(BusynessListener listener) |
void |
addCase(java.lang.String caseid,
YSpecificationID specID) |
void |
addCases(java.util.Map<java.lang.String,YSpecificationID> caseMap) |
void |
addComplexityMetric(double metric) |
void |
close() |
void |
configChanged(java.util.Map<java.lang.String,java.lang.String> changedValues) |
double |
getBusyness(boolean verbose) |
int |
getLastCaseNbr() |
java.lang.String |
getName() |
int |
getPort() |
double |
getRunningCasesComplexityMetric() |
java.lang.String |
getSessionHandle() |
java.lang.String |
getURL(java.lang.String path) |
boolean |
hasCase(java.lang.String caseid) |
boolean |
isActive() |
boolean |
isAuthenticator() |
boolean |
isInitialized() |
boolean |
isRestored() |
void |
pingUntilActive() |
YSpecificationID |
removeCase(java.lang.String caseid) |
void |
removeComplexityMetric(double metric) |
void |
scheduledEvent() |
void |
setActive(boolean active) |
void |
setArffWriter(ArffOutputter writer) |
void |
setAuthenticator(boolean authenticator) |
void |
setCombinedOutputter(CombinedBusynessOutputter outputter) |
void |
setRestored(boolean restored) |
void |
setSessionHandle(java.lang.String handle) |
public void configChanged(java.util.Map<java.lang.String,java.lang.String> changedValues)
configChanged
in interface ConfigChangeListener
public void scheduledEvent()
scheduledEvent
in interface Pollable
public void addBusynessListener(BusynessListener listener)
public void setArffWriter(ArffOutputter writer)
public void setCombinedOutputter(CombinedBusynessOutputter outputter)
public java.lang.String getURL(java.lang.String path)
public java.lang.String getName()
public int getPort()
public void close()
public boolean isInitialized()
public boolean isActive()
public void setActive(boolean active)
public boolean isRestored()
public void setRestored(boolean restored)
public boolean isAuthenticator()
public void setAuthenticator(boolean authenticator)
public java.lang.String getSessionHandle()
public void setSessionHandle(java.lang.String handle)
public void addCase(java.lang.String caseid, YSpecificationID specID)
public void addCases(java.util.Map<java.lang.String,YSpecificationID> caseMap)
public YSpecificationID removeCase(java.lang.String caseid)
public boolean hasCase(java.lang.String caseid)
public void addComplexityMetric(double metric)
public void removeComplexityMetric(double metric)
public double getRunningCasesComplexityMetric()
public int getLastCaseNbr()
public void pingUntilActive()
public double getBusyness(boolean verbose) throws java.io.IOException, org.json.JSONException
java.io.IOException
org.json.JSONException
Copyright © 2004-2014 The YAWL Foundation.