PageBoxLib
Class RepoTest

java.lang.Object
  extended byPageBoxLib.RepoTest

class RepoTest
extends java.lang.Object

Test of the Repository for miscellaneous errors.

Changes:

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 11
Author:
Alexis Grandemange

Field Summary
(package private) static int BEGIN_ADD
          Beginning of add method state
(package private) static int BEGIN_DEL
          Beginning of delete method state
(package private) static int END_ADD
          End of add method state
(package private) static int END_DEL
          Beginning of delete method state
(package private)  Log log
          Logging object
(package private)  java.lang.String workDir
          Directory where repotest.txt is defined
 
Constructor Summary
(package private) RepoTest(java.lang.String workDir, Log log)
          Constructor.
 
Method Summary
(package private)  DeployIF.Status exercise(java.lang.String arch, int state)
          Return a status according to the content of repotest.txt.
(package private)  boolean exercise2(java.lang.String repURL)
          Return true or false according to the content of repotest.txt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEGIN_ADD

static final int BEGIN_ADD
Beginning of add method state

See Also:
Constant Field Values

END_ADD

static final int END_ADD
End of add method state

See Also:
Constant Field Values

BEGIN_DEL

static final int BEGIN_DEL
Beginning of delete method state

See Also:
Constant Field Values

END_DEL

static final int END_DEL
Beginning of delete method state

See Also:
Constant Field Values

workDir

java.lang.String workDir
Directory where repotest.txt is defined


log

Log log
Logging object

Constructor Detail

RepoTest

RepoTest(java.lang.String workDir,
         Log log)
Constructor. Initializes homonymous member variables.

Parameters:
workDir - directory where repotest.txt is defined
log - logging object
Method Detail

exercise

DeployIF.Status exercise(java.lang.String arch,
                         int state)
Return a status according to the content of repotest.txt. Called by DeployImpl.

Format:.

  1. archive name with extension or * followed by return code NOTDEPLOYED or NOTRELAYED or ARCHPB or PBPB or NOTUNDEPLOYED or NOTCONTACTED
  2. @ URL of the RepoQueryIF Web service of a Repository or *

Parameters:
arch - archive name
state - BEGIN_ADD, BEGIN_DEL, END_ADD or END_DEL

exercise2

boolean exercise2(java.lang.String repURL)
Return true or false according to the content of repotest.txt.

Parameters:
repURL - URL of the RepoQueryIF web service of the repository
Returns:
false if the Repository is defined on an '@' line or if @ *