com.pushtotest.testnetwork
Class Master

java.lang.Object
  extended by com.pushtotest.testnetwork.Master

public class Master
extends java.lang.Object

Version:
0.1
Author:
Todd A. Bradfute bradfute@pushtotest.com

Constructor Summary
Master(java.lang.String sServerURL)
           
 
Method Summary
 int compareVersions(java.lang.String sVsn1, java.lang.String sVsn2)
          Return 1 if version1 GT version2 Return 0 if version1 EQ version2 Return -1 if version1 LT version2.
protected  java.lang.Object decodeBody(javax.xml.soap.SOAPElement sb)
           
 int doAbandonScenario()
           
 int doAbortExecution()
           
 int doLoadScenario(java.lang.String sName, java.util.Hashtable htFilenames, java.lang.String sScript, java.lang.String[] asArgs)
           
 int doRelease()
           
protected  void dumpMessage(java.lang.String sMessage, javax.xml.soap.SOAPMessage sm)
           
 int Execute(java.lang.Integer usecase)
           
 boolean getFileFromNodeAndSaveIt(java.lang.String name, java.lang.String saveDir)
           
 java.lang.Object getNodeStatus()
           
 int getSyncFlag()
           
 java.lang.String getVersion()
          Take an object representing a hash containing a hash where the outer layer is the "Body" part of the SOAP message, and the next level is the request response identifier.
protected  boolean isErrorMessage(javax.xml.soap.SOAPMessage sm)
           
 int isMinNodeVersion(java.lang.String sWantVsn)
          Return 1 if TestNode version is at least equal to the indicated version.
protected  java.lang.Object normalizeStruct(java.lang.Object o)
          Take an object representing a hash whose value is an array of the same type of structure.
 int pushSnapshot(java.util.Hashtable htSnapshot)
           
 void runing()
           
 int setSyncFlag()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Master

public Master(java.lang.String sServerURL)
Method Detail

doLoadScenario

public int doLoadScenario(java.lang.String sName,
                          java.util.Hashtable htFilenames,
                          java.lang.String sScript,
                          java.lang.String[] asArgs)
                   throws java.lang.Exception
Throws:
java.lang.Exception

pushSnapshot

public int pushSnapshot(java.util.Hashtable htSnapshot)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setSyncFlag

public int setSyncFlag()
                throws java.lang.Exception
Throws:
java.lang.Exception

getSyncFlag

public int getSyncFlag()
                throws java.lang.Exception
Throws:
java.lang.Exception

getNodeStatus

public java.lang.Object getNodeStatus()
                               throws java.lang.Exception
Throws:
java.lang.Exception

runing

public void runing()

getFileFromNodeAndSaveIt

public boolean getFileFromNodeAndSaveIt(java.lang.String name,
                                        java.lang.String saveDir)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

Execute

public int Execute(java.lang.Integer usecase)
            throws java.lang.Exception
Throws:
java.lang.Exception

doRelease

public int doRelease()
              throws java.lang.Exception
Throws:
java.lang.Exception

doAbortExecution

public int doAbortExecution()
                     throws java.lang.Exception
Throws:
java.lang.Exception

doAbandonScenario

public int doAbandonScenario()
                      throws java.lang.Exception
Throws:
java.lang.Exception

compareVersions

public int compareVersions(java.lang.String sVsn1,
                           java.lang.String sVsn2)
Return 1 if version1 GT version2 Return 0 if version1 EQ version2 Return -1 if version1 LT version2.


isMinNodeVersion

public int isMinNodeVersion(java.lang.String sWantVsn)
                     throws java.lang.Exception
Return 1 if TestNode version is at least equal to the indicated version. Return 0 otherwise.

Throws:
java.lang.Exception

isErrorMessage

protected boolean isErrorMessage(javax.xml.soap.SOAPMessage sm)
                          throws javax.xml.soap.SOAPException
Throws:
javax.xml.soap.SOAPException

decodeBody

protected java.lang.Object decodeBody(javax.xml.soap.SOAPElement sb)

dumpMessage

protected void dumpMessage(java.lang.String sMessage,
                           javax.xml.soap.SOAPMessage sm)

normalizeStruct

protected java.lang.Object normalizeStruct(java.lang.Object o)
Take an object representing a hash whose value is an array of the same type of structure. Normalize this so that Array of hash becomes a simple hash. If there are duplicate keys, then the subtree doesn't get converted.


getVersion

public java.lang.String getVersion()
Take an object representing a hash containing a hash where the outer layer is the "Body" part of the SOAP message, and the next level is the request response identifier. Strip those two elements off leaving only the data that is to be returned.



Copyright © 2003 PushToTest. All Rights Reserved.