Repository
Class RepoQueryImpl

java.lang.Object
  extended byRepository.RepoTokenImpl
      extended byRepository.RepoQueryImpl
All Implemented Interfaces:
java.rmi.Remote, RepoQueryIF, RepoTokenIF

public class RepoQueryImpl
extends RepoTokenImpl
implements RepoQueryIF

Query and Notification Web Service.

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

Nested Class Summary
 
Nested classes inherited from class Repository.RepoTokenImpl
RepoTokenImpl.Context, RepoTokenImpl.RepoTokenThread
 
Nested classes inherited from class Repository.RepoQueryIF
RepoQueryIF.AuthSub, RepoQueryIF.UrlStatus
 
Field Summary
 
Fields inherited from class Repository.RepoTokenImpl
ctx, period, sec, tt
 
Constructor Summary
RepoQueryImpl()
           
 
Method Summary
 void destroy()
          ServiceLifeCycle method.
 RepoQueryIF.AuthSub[] GetSubscribers(java.lang.String archive)
          Query API.
(package private)  RepoQueryIF.AuthSub[] GetSubscribers(java.lang.String archive, java.lang.String user)
          Core implementation.
 void init(java.lang.Object context)
          ServiceLifeCycle method.
(package private)  void init2(ServletContext ctx)
          Common initialization stuff.
 void Notify(java.lang.String archive, RepoQueryIF.UrlStatus[] subscribers)
          Query API.
 void Notify(java.lang.String archive, RepoQueryIF.UrlStatus[] subscribers, java.lang.String user)
          Core implementation.
 void NotifyFix(java.lang.String subscriber, FixArch[] archives)
          Query API.
 void NotifyFix(java.lang.String subscriber, FixArch[] archives, java.lang.String user)
          Core implementation.
 
Methods inherited from class Repository.RepoTokenImpl
end, frameSend, frameSend, frameSend2, frameSend2, test, tokenInit, tokenRegister, tokenRegister, tokenUnregister, tokenUnregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Repository.RepoTokenIF
tokenRegister, tokenUnregister
 

Constructor Detail

RepoQueryImpl

public RepoQueryImpl()
Method Detail

init

public void init(java.lang.Object context)
          throws ServiceException
ServiceLifeCycle method.

Called at initialization.

Parameters:
context - ServletEndpoint Context
Throws:
ServiceException

init2

void init2(ServletContext ctx)
Common initialization stuff.

Parameters:
ctx - servlet context

destroy

public void destroy()
ServiceLifeCycle method.

Called at destruction.


GetSubscribers

public RepoQueryIF.AuthSub[] GetSubscribers(java.lang.String archive)
Query API.

Specified by:
GetSubscribers in interface RepoQueryIF
Parameters:
archive - archive name
Returns:
array of AuthSub objects

GetSubscribers

RepoQueryIF.AuthSub[] GetSubscribers(java.lang.String archive,
                                     java.lang.String user)
Core implementation.

Parameters:
archive - archive name
user - user who made the request
Returns:
array of AuthSub objects

Notify

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

Specified by:
Notify in interface RepoQueryIF
Parameters:
archive - archive name

Notify

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

Parameters:
archive - archive name
user - user who made the request

NotifyFix

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

Specified by:
NotifyFix in interface RepoQueryIF
Parameters:
subscriber - PageBox whose setting pb was fixed
archives - whose pb was fixed

NotifyFix

public void NotifyFix(java.lang.String subscriber,
                      FixArch[] archives,
                      java.lang.String user)
Core implementation. Called by Reinstall to change the archive status from PageBox err to installed.

Parameters:
subscriber - PageBox whose setting pb was fixed
archives - whose pb was fixed
user - user who made the request