org.apache.axis2.deployment.repository.util
Class WSInfoList

java.lang.Object
  extended byorg.apache.axis2.deployment.repository.util.WSInfoList
All Implemented Interfaces:
DeploymentConstants

public class WSInfoList
extends java.lang.Object
implements DeploymentConstants


Field Summary
 java.util.List currentjars
          All the curently updated jars
 
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
WSInfoList(DeploymentEngine deploy_engine)
           
 
Method Summary
 void addWSInfoItem(java.io.File file, int type)
          First it check whether the file is already available in the system call isFileExist , if it is not deployed yet then it will add that to jarlist and to the deployment engine as new service or module in adding new item to jarlist it first create optimice and requird object to keep those infor call WSInfo and that will be added to jarist and actual jar file will be added to DeploymentEngine

If it is alredy exsit then it check whether it has been updated then change the last update date of the wsInfo and added two entries to DeploymentEngine one for New Deployment and other for undeployment

 void checkForUndeploye()
          this is to check , undeploye WS what this relly does is it caheck older jars files and current jars if name of the old jar file does not exit in the currecntjar list then it is assumed that the jar file has been removed that is hot undeployment
 WSInfo getFileItem(java.lang.String filename)
          This method is to use to check the file exist and if so it will return related wsinfo object to the file else return null;
 void init()
          This method is used to initialize the vector
 boolean isFileExist(java.lang.String filename)
          to check whether the file is alredy in the list
 boolean isModified(java.io.File file, WSInfo wsInfo)
          comapre the last update dates of both files and if those are differ that will assume as the file is been modified
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentjars

public java.util.List currentjars
All the curently updated jars

Constructor Detail

WSInfoList

public WSInfoList(DeploymentEngine deploy_engine)
Method Detail

init

public void init()
This method is used to initialize the vector


addWSInfoItem

public void addWSInfoItem(java.io.File file,
                          int type)
First it check whether the file is already available in the system call isFileExist , if it is not deployed yet then it will add that to jarlist and to the deployment engine as new service or module in adding new item to jarlist it first create optimice and requird object to keep those infor call WSInfo and that will be added to jarist and actual jar file will be added to DeploymentEngine

If it is alredy exsit then it check whether it has been updated then change the last update date of the wsInfo and added two entries to DeploymentEngine one for New Deployment and other for undeployment

Parameters:
file - actual jar files for either Module or service
type - indicate either Service or Module

getFileItem

public WSInfo getFileItem(java.lang.String filename)
This method is to use to check the file exist and if so it will return related wsinfo object to the file else return null;

Parameters:
filename -
Returns:

isModified

public boolean isModified(java.io.File file,
                          WSInfo wsInfo)
comapre the last update dates of both files and if those are differ that will assume as the file is been modified

Parameters:
file -
wsInfo -
Returns:

isFileExist

public boolean isFileExist(java.lang.String filename)
to check whether the file is alredy in the list

Parameters:
filename -
Returns:

checkForUndeploye

public void checkForUndeploye()
this is to check , undeploye WS what this relly does is it caheck older jars files and current jars if name of the old jar file does not exit in the currecntjar list then it is assumed that the jar file has been removed that is hot undeployment


update

public void update()