Repository
Class AxisRepoQuery

java.lang.Object
  extended byRepository.AxisRepoQuery
All Implemented Interfaces:
AxisRepoQueryIF, java.rmi.Remote

public class AxisRepoQuery
extends java.lang.Object
implements AxisRepoQueryIF

Axis implementation. Adapter for RepoQueryImpl.

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, 1, 1
Author:
Alexis Grandemange

Field Summary
(package private)  RepoQueryImpl rqi
          Embedded implementation
 
Constructor Summary
AxisRepoQuery()
           
 
Method Summary
 void destroy()
          Method of the ServiceLifecycle interface.
 byte[] frameSend(byte[] frame)
          Send the frame to the next station on the adjacency list.
 byte[] GetSubscribers(java.lang.String archive)
          Query API.
 void init(java.lang.Object context)
          Method of the ServiceLifecycle interface.
 void Notify(java.lang.String archive, byte[] subscribers)
          Called by relay to notify the success or failure of a deployment.
 void NotifyFix(java.lang.String subscriber, byte[] archives)
          Called by Reinstall to change the archive status from PageBox err to installed.
 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

rqi

RepoQueryImpl rqi
Embedded implementation

Constructor Detail

AxisRepoQuery

public AxisRepoQuery()
Method Detail

init

public void init(java.lang.Object context)
          throws ServiceException
Method of the ServiceLifecycle interface.

Parameters:
context - endpoint context
Throws:
ServiceException

destroy

public void destroy()
Method of the ServiceLifecycle interface.


GetSubscribers

public byte[] GetSubscribers(java.lang.String archive)
                      throws java.rmi.RemoteException
Description copied from interface: AxisRepoQueryIF
Query API.

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

Notify

public void Notify(java.lang.String archive,
                   byte[] subscribers)
            throws java.rmi.RemoteException
Description copied from interface: AxisRepoQueryIF
Called by relay to notify the success or failure of a deployment.

Specified by:
Notify in interface AxisRepoQueryIF
Parameters:
archive - archive name
Throws:
java.rmi.RemoteException
See Also:
AxisRepoQueryIF.Notify(String, byte[])

NotifyFix

public void NotifyFix(java.lang.String subscriber,
                      byte[] archives)
               throws java.rmi.RemoteException
Description copied from interface: AxisRepoQueryIF
Called by Reinstall to change the archive status from PageBox err to installed.

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

frameSend

public byte[] frameSend(byte[] frame)
                 throws java.rmi.RemoteException
Send the frame to the next station on the adjacency list.

Specified by:
frameSend in interface AxisRepoQueryIF
Parameters:
frame - serialized sent frame
Returns:
serialized 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 AxisRepoQueryIF
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 AxisRepoQueryIF
Parameters:
subscriber - PageBox whose setting pb was fixed
Throws:
java.rmi.RemoteException