PageBoxLib
Class AxisQuerier

java.lang.Object
  extended byPageBoxLib.AxisQuerier
All Implemented Interfaces:
QuerierIF, java.rmi.Remote, Repository.RepoQueryIF, Repository.RepoTokenIF, TokenIF

public class AxisQuerier
extends java.lang.Object
implements QuerierIF

Web service invoker for JWSDP.

Changes:

alexis.grandemange@pagebox.net

Copyright (c) 2002-2003 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

Nested Class Summary
 
Nested classes inherited from class Repository.RepoQueryIF
Repository.RepoQueryIF.AuthSub, Repository.RepoQueryIF.UrlStatus
 
Field Summary
private  java.lang.String cause
          setUrl exception cause
private  Log log
          Logging object
private  localhost.axis.RepoQuery_jws.RepoQuery repoquery
          Stub set in setUrl
private  localhost.axis.RepoQuery_jws.RepoQueryServiceLocator service
          Factory instance used in setUrl
 
Constructor Summary
AxisQuerier()
           
 
Method Summary
 DeployIF.Status frameSend(TokenFrame frame)
          Send the frame to the next station on the adjacency list.
 Repository.RepoQueryIF.AuthSub[] GetSubscribers(java.lang.String archive)
          Query API.
 void Notify(java.lang.String archive, Repository.RepoQueryIF.UrlStatus[] subscribers)
          Called by relay to notify the success or failure of a deployment.
 void NotifyFix(java.lang.String subscriber, Repository.FixArch[] archives)
          Called by Reinstall to change the archive status from PageBox err to installed.
 void setUrl(java.lang.String url, java.lang.String user, java.lang.String passwd, Log log)
          Set the Web service URI.
 void tokenRegister(java.lang.String subscriber)
          Token management method.
 void tokenUnregister(java.lang.String subscriber)
          Token management method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

private localhost.axis.RepoQuery_jws.RepoQueryServiceLocator service
Factory instance used in setUrl


repoquery

private localhost.axis.RepoQuery_jws.RepoQuery repoquery
Stub set in setUrl


cause

private java.lang.String cause
setUrl exception cause


log

private Log log
Logging object

Constructor Detail

AxisQuerier

public AxisQuerier()
Method Detail

setUrl

public void setUrl(java.lang.String url,
                   java.lang.String user,
                   java.lang.String passwd,
                   Log log)
Set the Web service URI.

Specified by:
setUrl in interface QuerierIF
Parameters:
url - Web service URI.
user - Web service account ID
passwd - Web service account password
log - logging object
See Also:
PageBoxLib.QuerierIF#setUrl(String, String, String)

GetSubscribers

public Repository.RepoQueryIF.AuthSub[] GetSubscribers(java.lang.String archive)
                                                throws java.rmi.RemoteException
Query API.

Specified by:
GetSubscribers in interface Repository.RepoQueryIF
Parameters:
archive - archive name
Returns:
array of AuthSub objects
Throws:
java.rmi.RemoteException
See Also:
RepoQueryIF.GetSubscribers(String)

Notify

public void Notify(java.lang.String archive,
                   Repository.RepoQueryIF.UrlStatus[] subscribers)
            throws java.rmi.RemoteException
Called by relay to notify the success or failure of a deployment.

Specified by:
Notify in interface Repository.RepoQueryIF
Parameters:
archive - archive name
Throws:
java.rmi.RemoteException
See Also:
Repository.RepoQueryIF#Notify(String, UrlStatus[])

NotifyFix

public void NotifyFix(java.lang.String subscriber,
                      Repository.FixArch[] archives)
               throws java.rmi.RemoteException
Called by Reinstall to change the archive status from PageBox err to installed.

Specified by:
NotifyFix in interface Repository.RepoQueryIF
Parameters:
subscriber - PageBox whose setting pb was fixed
archives - whose pb was fixed
Throws:
java.rmi.RemoteException
See Also:
RepoQueryIF.NotifyFix(String, FixArch[])

frameSend

public DeployIF.Status frameSend(TokenFrame frame)
                          throws java.rmi.RemoteException
Send the frame to the next station on the adjacency list.

Specified by:
frameSend in interface TokenIF
Parameters:
frame - sent frame
Returns:
status object
Throws:
java.rmi.RemoteException

tokenRegister

public void tokenRegister(java.lang.String subscriber)
                   throws java.rmi.RemoteException
Token management method. Inserts a PageBox on the ring.

Specified by:
tokenRegister in interface Repository.RepoTokenIF
Parameters:
subscriber - PageBox whose setting pb was fixed
Throws:
java.rmi.RemoteException

tokenUnregister

public void tokenUnregister(java.lang.String subscriber)
                     throws java.rmi.RemoteException
Token management method. Removes a PageBox from the ring.

Specified by:
tokenUnregister in interface Repository.RepoTokenIF
Parameters:
subscriber - PageBox whose setting pb was fixed
Throws:
java.rmi.RemoteException