Methods Summary |
---|
public void | addApplication(java.lang.String appID, com.sun.enterprise.deployment.Application app)
if (app != null) {
cachedApps.put(appID, app);
}
|
public com.sun.enterprise.deployment.Application | getApplication(java.lang.String appID)
return cachedApps.get(appID);
|
public com.sun.enterprise.config.ConfigContext | getConfigContext()returns the stored configContext
return configContext;
|
public com.sun.enterprise.deployment.phasing.DeploymentContext$SavedApplicationRefInfo | getSavedAppRef(java.lang.String appID, java.lang.String targetName)Retrieves a saved app ref, if one was saved, for the specified target.
SavedApplicationRefInfo result = getSavedApplicationRefInfo(appID, targetName);
return result;
|
private com.sun.enterprise.deployment.phasing.DeploymentContext$SavedApplicationRefInfo | getSavedApplicationRefInfo(java.lang.String appID, java.lang.String targetName)
SavedApplicationRefInfo result = null;
synchronized(savedAppRefsByApp) {
/*
*Try to find saved references for this application.
*/
HashMap<String,SavedApplicationRefInfo> refMapForApp = savedAppRefsByApp.get(appID);
if (refMapForApp != null) {
result = refMapForApp.get(targetName);
}
}
return result;
|
public com.sun.enterprise.deployment.Application | removeApplication(java.lang.String appID)
return cachedApps.remove(appID);
|
public com.sun.enterprise.deployment.phasing.DeploymentContext$SavedApplicationRefInfo | removeSavedAppRef(java.lang.String appID, java.lang.String targetName)Removes the saved ApplicationRef for a given app and target.
As a side effect, if the application's map to targets becomes empty,
remove that map from the map of app IDs to saved result maps.
SavedApplicationRefInfo result = null;
synchronized(savedAppRefsByApp) {
result = getSavedApplicationRefInfo(appID, targetName);
if (result != null) {
HashMap<String,SavedApplicationRefInfo> refMapForApp= savedAppRefsByApp.get(appID);
refMapForApp.remove(targetName);
if (refMapForApp.isEmpty()) {
savedAppRefsByApp.remove(appID);
}
}
}
return result;
|
public com.sun.enterprise.deployment.phasing.DeploymentContext$SavedApplicationRefInfo | saveAppRef(java.lang.String appID, java.lang.String targetName, com.sun.enterprise.config.serverbeans.ApplicationRef ref, com.sun.enterprise.deployment.backend.DeploymentRequest req)Saves an app ref for retrieval during a later phase of the deployment.
SavedApplicationRefInfo result = null;
synchronized(savedAppRefsByApp) {
/*
*Try to locate this app's HashMap of targets to refs.
*/
HashMap<String,SavedApplicationRefInfo> refMapForApp = savedAppRefsByApp.get(appID);
if (refMapForApp == null) {
refMapForApp = new HashMap<String,SavedApplicationRefInfo>();
savedAppRefsByApp.put(appID, refMapForApp);
}
result = new SavedApplicationRefInfo(ref, req);
refMapForApp.put(targetName, result);
}
return result;
|
public void | setConfigContext(com.sun.enterprise.config.ConfigContext configContext)Set the config context as specified
this.configContext = configContext;
|