|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.newisys.ova.OVAEngine
public final class OVAEngine
Class representing the underlying OVA engine. Contains methods for configuring and acting on the OVA engine. Also contains methods for adding callback listeners on OVA engine events.
| Constructor Summary | |
|---|---|
OVAEngine(OVAInterface ovaIntf)
Sole constructor. |
|
| Method Summary | |
|---|---|
void |
addListener(OVAEngineEventType eventType,
OVAEngineCallback handler)
Adds a callback handler for the specified event type. |
void |
addListener(Set<OVAEngineEventType> eventTypeSet,
OVAEngineCallback handler)
Adds a callback handler for the specified Set of event types. |
void |
configure(OVAConfigSwitch configSwitch,
boolean enable)
Configures the OVAEngine, enabling or disabling certain functionality. |
void |
doAction(OVAEngineAction action)
Perform the specified action on the OVAEngine. |
String |
getApiVersion()
Returns the OVA API version string from the underlying OVA implementation. |
OVAAssert |
getAssert(String name)
Returns the OVAAssert having the specified name. |
List<OVAAssert> |
getAsserts()
Returns the list of OVAAsserts registered with this OVAEngine. |
void |
removeListener(OVAEngineEventType eventType,
OVAEngineCallback handler)
Removes the specified handler associated with the specified event type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OVAEngine(OVAInterface ovaIntf)
ovaIntf - the OVAInterface to be used by this OVAEngine| Method Detail |
|---|
public String getApiVersion()
public void configure(OVAConfigSwitch configSwitch,
boolean enable)
configSwitch - the configuration switch to be setenable - true if configSwitch should be enabled,
false otherwisepublic void doAction(OVAEngineAction action)
action - the action to be performed on the OVAEnginepublic List<OVAAssert> getAsserts()
public OVAAssert getAssert(String name)
name - the name of the requested assert
null if
no such OVAAssert is registered with this OVAEngine
public void addListener(OVAEngineEventType eventType,
OVAEngineCallback handler)
eventType - the event type which will trigger handler
to be runhandler - the callback handler to be run when an event of
eventType occurs.
public void addListener(Set<OVAEngineEventType> eventTypeSet,
OVAEngineCallback handler)
eventTypeSet - the set of event types which will trigger
handler to be runhandler - the callback handler to be run when an event matching any
of the types in eventTypeSet occurs.
public void removeListener(OVAEngineEventType eventType,
OVAEngineCallback handler)
eventType occur. However, if the handler is registered to
be run when other types of events occur, it will still be run. Also,
if multiple handlers are associated with the specified event type, they
will not be affected by this call.
eventType - the event type from which to remove this handlerhandler - the handler to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||