|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.mainview.nvbapi.HostServer
com.bmc.mainview.nvbapi.Simulator
public class Simulator
A simulated host server. It gets its responses from a Properties object containing the XML to
be used as responses from the simulated mainframe. For each view there are two sets of entries:
Each set is concatenated together to create a response.
Field Summary |
---|
Fields inherited from class com.bmc.mainview.nvbapi.HostServer |
---|
connectTime, HOSTFORMAT, timeDelta, VERSION |
Constructor Summary | |
---|---|
Simulator(java.lang.Object logger,
java.util.Properties prop)
Creates a HostServer that generates responses |
Method Summary | |
---|---|
XML |
connect()
Opens the session with the mainframe |
Conversation |
conversationFactory()
Creates a new conversation using this host session |
Conversation |
conversationFactory(java.lang.String monitorId)
Creates a new conversation using this host session |
void |
disconnect()
Ends the session |
Methods inherited from class com.bmc.mainview.nvbapi.HostServer |
---|
getAddr, getCanonicalHostName, getHostLvl, getName, getPassword, getPort, getTimeout, getUserID, isConnected, isFunctional, loadTargets, loadTargets, setName, setNewPassword, setPassword, setTimeout, setUserID, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Simulator(java.lang.Object logger, java.util.Properties prop)
logger
- prop
- A properties object containing pieces of XML to satisfy requests.Method Detail |
---|
public XML connect() throws java.io.IOException
HostServer
connect
in class HostServer
java.io.IOException
- if the session cannot be established.HostServer.disconnect()
public void disconnect()
HostServer
disconnect
in class HostServer
public Conversation conversationFactory()
HostServer
conversationFactory
in class HostServer
public Conversation conversationFactory(java.lang.String monitorId)
HostServer
conversationFactory
in class HostServer
monitorId
- the related monitor ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |