org.apache.axis2.deployment.listener
Class RepositoryListenerImpl

java.lang.Object
  extended byorg.apache.axis2.deployment.listener.RepositoryListenerImpl
All Implemented Interfaces:
DeploymentConstants, RepositoryListener

public class RepositoryListenerImpl
extends java.lang.Object
implements RepositoryListener, DeploymentConstants


Field Summary
protected  Log log
           
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
AFTER, ATQNAME, ATTLOCKED, ATTNAME, ATUSE, AXIS_STORAGE, AXIS2CONFIG, BEANMAPPINGST, BEFORE, CLASSNAME, CONTEXTPATHNAME, DESCRIPTION, DIPSTCH_ORDER, DIPSTCHER, EXTRACTSERVICEARCHIVE, HANDERST, HOTDEPLOYMENT, HOTUPDATE, IN_FAILTFLOW, INFLOWST, JWS_EXTENSION, LISTENERST, MEP, MESSAGERECEIVER, META_INF, MODULE, MODULE_PATH, MODULECONFIG, MODULEST, MODULEXML, OPRATIONST, ORDER, OUT_FAILTFLOW, OUTFLOWST, PARAMETERST, PHASE, PHASE_ORDER, PHASEFIRST, PHASELAST, PHASEST, REF, SERVICE, SERVICE_ELEMENT, SERVICE_GROUP_ELEMENT, SERVICE_PATH, SERVICETAG, SERVICEWSDL, SERVICEXML, STYLENAME, TRANSPORTRECEIVER, TRANSPORTSENDER, TRANSPORTSTAG, TRANSPORTTAG, TYPE, TYPEMAPPINGST
 
Constructor Summary
RepositoryListenerImpl(java.lang.String folderName, DeploymentEngine deploy_engine)
          This constructor take two argumnets folder name and referance to Deployment Engine Fisrt it initilize the syetm , by loading all the modules in the /modules directory and also create a WSInfoList to keep infor about available modules and services
 
Method Summary
 void checkModules()
          this method ask serachWS to serch for the folder to caheck for updates
 void checkServices()
          this method ask serachWS to serch for the folder to caheck for updates
 void extarctServiceArchive(java.io.File infile, java.io.File outdirctory)
          Will extarct given file , into same dirctory with the name of archive file (removing file extension)
 void init()
          First it call to initalize method of WSInfoList to initilizat that then it call to checkModules to load all the module.jar s and then it call to update() method inorder to update the Deployment engine and engine regsitry
 void startListent()
          this is the actual method that is call from scheduler
 void update()
          call to update method of WSInfoList object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Log log
Constructor Detail

RepositoryListenerImpl

public RepositoryListenerImpl(java.lang.String folderName,
                              DeploymentEngine deploy_engine)
This constructor take two argumnets folder name and referance to Deployment Engine Fisrt it initilize the syetm , by loading all the modules in the /modules directory and also create a WSInfoList to keep infor about available modules and services

Parameters:
folderName - path to parent directory that the listener should listent
deploy_engine - refearnce to engine registry inorder to inform the updates
Method Detail

checkModules

public void checkModules()
this method ask serachWS to serch for the folder to caheck for updates

Specified by:
checkModules in interface RepositoryListener

checkServices

public void checkServices()
this method ask serachWS to serch for the folder to caheck for updates

Specified by:
checkServices in interface RepositoryListener

update

public void update()
call to update method of WSInfoList object

Specified by:
update in interface RepositoryListener

init

public void init()
First it call to initalize method of WSInfoList to initilizat that then it call to checkModules to load all the module.jar s and then it call to update() method inorder to update the Deployment engine and engine regsitry

Specified by:
init in interface RepositoryListener

startListent

public void startListent()
this is the actual method that is call from scheduler


extarctServiceArchive

public void extarctServiceArchive(java.io.File infile,
                                  java.io.File outdirctory)
Will extarct given file , into same dirctory with the name of archive file (removing file extension)

Parameters:
infile - java.io.File Archive file
outdirctory - java.io.File output file