org.apache.axis2.deployment.repository.util
Class WSInfoList
java.lang.Object
org.apache.axis2.deployment.repository.util.WSInfoList
- All Implemented Interfaces:
- DeploymentConstants
- public class WSInfoList
- extends Object
- implements DeploymentConstants
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants |
ATTRIBUTE_DEFAULT_VERSION, ATTRIBUTE_LOCKED, ATTRIBUTE_NAME, ATTRIBUTE_SCOPE, AXIS2_CONFIGURATION_RESOURCE, AXIS2_CONFIGURATION_XML, BOOLEAN_FALSE, BOOLEAN_TRUE, DIRECTORY_AXIS2_HOME, DIRECTORY_MODULES, DIRECTORY_SERVICES, META_INF, MODULE_PATH, MODULE_XML, POLICY_NS_URI, PROPERTY_TEMP_DIR, RESOURCE_MODULES, SEPARATOR_COLON, SEPARATOR_DOT, SERVICE_PATH, SERVICES_XML, SUFFIX_JAR, SUFFIX_MAR, SUFFIX_WSDL, TAG_AFTER, TAG_BEFORE, TAG_CLASS_NAME, TAG_DEFAULT_MODULE_VERSION, TAG_DESCRIPTION, TAG_DISPATCH_ORDER, TAG_DISPATCHER, TAG_EXTRACT_SERVICE_ARCHIVE, TAG_FLOW_IN, TAG_FLOW_IN_FAULT, TAG_FLOW_OUT, TAG_FLOW_OUT_FAULT, TAG_HANDLER, TAG_HOST_CONFIG, TAG_HOT_DEPLOYMENT, TAG_HOT_UPDATE, TAG_LABEL, TAG_LISTENER, TAG_MEP, TAG_MESSAGE, TAG_MESSAGE_RECEIVER, TAG_MESSAGE_RECEIVERS, TAG_MODULE, TAG_MODULE_CONFIG, TAG_OPERATION, TAG_ORDER, TAG_PARAMETER, TAG_PHASE, TAG_PHASE_FIRST, TAG_PHASE_LAST, TAG_PHASE_ORDER, TAG_POLICY, TAG_POLICY_REF, TAG_REFERENCE, TAG_SERVICE, TAG_SERVICE_GROUP, TAG_TRANSPORT_RECEIVER, TAG_TRANSPORT_SENDER, TAG_TYPE, TYPE_MODULE, TYPE_SERVICE |
Method Summary |
void |
addWSInfoItem(File file,
int type)
First checks whether the file is already available by the
system call isFileExist. |
void |
checkForUndeployedServices()
Checks undeployed Services. |
WSInfo |
getFileItem(String filename)
Gets the WSInfo object related to a file if it exists, null otherwise. |
void |
init()
Clears the jarlist. |
boolean |
isFileExist(String filename)
Checks whether the file already exists in the list. |
boolean |
isModified(File file,
WSInfo wsInfo)
Checks if a file has been modified by comparing the last update date of
both files and WSInfo. |
void |
update()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentJars
public List currentJars
- All the curently updated jars
WSInfoList
public WSInfoList(DeploymentEngine deploy_engine)
addWSInfoItem
public void addWSInfoItem(File file,
int type)
- First checks whether the file is already available by the
system call isFileExist. If it is not deployed yet then adds to the jarList
and to the deployment engine as a new service or module.
While adding new item to jarList, first creates the WSInfo object and
then adds to the jarlist and actual jar file is added to DeploymentEngine.
If the files already exists, then checks whether it has been updated
then changes the last update date of the wsInfo and adds two entries to
DeploymentEngine - one for New Deployment and other for undeployment.
- Parameters:
file
- actual jar files for either Module or servicetype
- indicate either Service or Module
checkForUndeployedServices
public void checkForUndeployedServices()
- Checks undeployed Services. Checks old jars files and current jars.
If name of the old jar file does not exist in the current jar
list then it is assumed that the jar file has been removed
and that is hot undeployment.
init
public void init()
- Clears the jarlist.
update
public void update()
getFileItem
public WSInfo getFileItem(String filename)
- Gets the WSInfo object related to a file if it exists, null otherwise.
- Parameters:
filename
-
isFileExist
public boolean isFileExist(String filename)
- Checks whether the file already exists in the list.
- Parameters:
filename
-
isModified
public boolean isModified(File file,
WSInfo wsInfo)
- Checks if a file has been modified by comparing the last update date of
both files and WSInfo. If they are different, the file is assumed to have
been modified.
- Parameters:
file
- wsInfo
-