PageBoxLib
Class AxisDeploy

java.lang.Object
  extended byPageBoxLib.AxisDeploy
All Implemented Interfaces:
AxisDeployIF, java.rmi.Remote

public class AxisDeploy
extends java.lang.Object
implements AxisDeployIF

Axis implementation. Adapter for DeployImpl.

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)  DeployImpl di
          Embedded implementation
 
Constructor Summary
AxisDeploy()
           
 
Method Summary
 byte[] add(java.lang.String arch, java.lang.String downloadURL, java.lang.String owner, byte[] archData, java.lang.String date, java.lang.String oldDate, java.lang.String docURL, java.lang.String user, boolean isUpdate, boolean runInstall, byte[] relayed)
          Deploys an archive and returns a status.
 byte[] delete(java.lang.String arch, java.lang.String downloadURL, java.lang.String owner, java.lang.String user, boolean runRemove, boolean keepDir)
          Undeploys an archive and returns a status.
 void destroy()
          Method of the ServiceLifecycle interface.
 byte[] frameSend(byte[] frame)
          Send the frame to the next station on the adjacency list.
 java.lang.String getArchPath(java.lang.String arch)
          Returns an archive path: The URL of archive pages is normally /rootPath/archive_without_extension.
 java.lang.String getAudit(java.lang.String arch, java.lang.String owner, java.lang.String user, java.lang.String downloadURL)
          Returns the audit entries specific to an archive on a PageBox
 void init(java.lang.Object context)
          Method of the ServiceLifecycle interface.
 java.lang.String rename(java.lang.String oldDownloadURL, java.lang.String newDownloadURL, java.lang.String user)
          Change the repository URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

di

DeployImpl di
Embedded implementation

Constructor Detail

AxisDeploy

public AxisDeploy()
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.


add

public byte[] add(java.lang.String arch,
                  java.lang.String downloadURL,
                  java.lang.String owner,
                  byte[] archData,
                  java.lang.String date,
                  java.lang.String oldDate,
                  java.lang.String docURL,
                  java.lang.String user,
                  boolean isUpdate,
                  boolean runInstall,
                  byte[] relayed)
           throws java.rmi.RemoteException
Description copied from interface: AxisDeployIF
Deploys an archive and returns a status.

Specified by:
add in interface AxisDeployIF
Parameters:
arch - archive name.
downloadURL - download URL.
owner - user who published the archive.
archData - archive data.
date - publication date and time.
oldDate - publication date and time.
docURL - documentation URL.
user - user who subscribed the PageBox.
isUpdate - if true delta update
runInstall - if true run the Application server installer (Web application)
relayed - serialized PageBox instances to deploy
Returns:
serialized Status object
Throws:
java.rmi.RemoteException
See Also:
PageBoxLib.AxisDeployIF#add(String, String, String, byte[], String, String, String, boolean, boolean, byte[])

delete

public byte[] delete(java.lang.String arch,
                     java.lang.String downloadURL,
                     java.lang.String owner,
                     java.lang.String user,
                     boolean runRemove,
                     boolean keepDir)
              throws java.rmi.RemoteException
Description copied from interface: AxisDeployIF
Undeploys an archive and returns a status.

Specified by:
delete in interface AxisDeployIF
Parameters:
arch - archive name.
downloadURL - download URL.
owner - user who published the archive.
user - user who subscribed the PageBox.
runRemove - if true run the Application server installer (Web application)
keepDir - keep directory
Returns:
serialized Status object
Throws:
java.rmi.RemoteException
See Also:
AxisDeployIF.delete(String, String, String, String, boolean, boolean)

rename

public java.lang.String rename(java.lang.String oldDownloadURL,
                               java.lang.String newDownloadURL,
                               java.lang.String user)
                        throws java.rmi.RemoteException
Description copied from interface: AxisDeployIF
Change the repository URL.

Specified by:
rename in interface AxisDeployIF
Parameters:
oldDownloadURL - previous download URL for some archives
newDownloadURL - new download URL for these archives
user - user who subscribed the PageBox.
Returns:
status.
Throws:
java.rmi.RemoteException
See Also:
AxisDeployIF.rename(String, String, String)

getArchPath

public java.lang.String getArchPath(java.lang.String arch)
                             throws java.rmi.RemoteException
Description copied from interface: AxisDeployIF
Returns an archive path: The URL of archive pages is normally /rootPath/archive_without_extension. Method added for the PageBox API support.

Specified by:
getArchPath in interface AxisDeployIF
Parameters:
arch - archive name
Returns:
URL of archive pages
Throws:
java.rmi.RemoteException
See Also:
AxisDeployIF.getArchPath(String)

getAudit

public java.lang.String getAudit(java.lang.String arch,
                                 java.lang.String owner,
                                 java.lang.String user,
                                 java.lang.String downloadURL)
                          throws java.rmi.RemoteException
Description copied from interface: AxisDeployIF
Returns the audit entries specific to an archive on a PageBox

Specified by:
getAudit in interface AxisDeployIF
Parameters:
arch - archive name
owner - user who published the archive.
user - user who subscribed the PageBox.
downloadURL - download URL.
Returns:
audit entries
Throws:
java.rmi.RemoteException
See Also:
AxisDeployIF.getAudit(String, String, String, String)

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 AxisDeployIF
Parameters:
frame - serialized sent frame
Returns:
serialized Status object
Throws:
java.rmi.RemoteException