private synchronized AppReloadInfo findOrCreateAppReloadInfo(Application app) throws URISyntaxException { AppReloadInfo result = appReloadInfo.get(app.getName()); if (result == null) { logger.fine("[Reloader] Recording info for new app " + app.getName() + " at " + app.getLocation()); result = new AppReloadInfo(app); appReloadInfo.put(app.getName(), result); } return result; }
public static boolean isNamedSystemApplicationReferencedFrom(Domain d, String appName, String serverName) { List <Application> referencedApps = getSystemApplicationsReferencedFrom(d, serverName); for (Application app : referencedApps) { if (app.getName().equals(appName)) return true; } return false; }
public static boolean isNamedSystemApplicationReferencedFrom(String appName, String serverName) { List <Application> referencedApps = getSystemApplicationsReferencedFrom(serverName); for (Application app : referencedApps) { if (app.getName().equals(appName)) return true; } return false; }
public Application getSystemApplicationReferencedFrom(String sn, String appName) { //returns null in case there is none List<Application> allApps = getSystemApplicationsReferencedFrom(sn); for (Application app : allApps) { if (app.getName().equals(appName)) { return app; } } return null; } public boolean isNamedSystemApplicationReferencedFrom(String appName, String serverName) {
public boolean isNamedSystemApplicationReferencedFrom(String appName, String serverName) { List <Application> referencedApps = getSystemApplicationsReferencedFrom(serverName); for (Application app : referencedApps) { if (app.getName().equals(appName)) return true; } return false; }
public static Application getSystemApplicationReferencedFrom(Domain d, String sn, String appName) { //returns null in case there is none List<Application> allApps = getSystemApplicationsReferencedFrom(d, sn); for (Application app : allApps) { if (app.getName().equals(appName)) { return app; } } return null; }
public static Application getSystemApplicationReferencedFrom(Domain d, String sn, String appName) { //returns null in case there is none List<Application> allApps = getSystemApplicationsReferencedFrom(d, sn); for (Application app : allApps) { if (app.getName().equals(appName)) { return app; } } return null; }
public static boolean isNamedSystemApplicationReferencedFrom(Domain d, String appName, String serverName) { List <Application> referencedApps = getSystemApplicationsReferencedFrom(d, serverName); for (Application app : referencedApps) { if (app.getName().equals(appName)) return true; } return false; }
public static Application getSystemApplicationReferencedFrom(String sn, String appName) { //returns null in case there is none List<Application> allApps = getSystemApplicationsReferencedFrom(sn); for (Application app : allApps) { if (app.getName().equals(appName)) { return app; } } return null; } public static boolean isNamedSystemApplicationReferencedFrom(String appName, String serverName) {
public boolean isAppEnabled(Application app) { if (Boolean.valueOf(app.getEnabled())) { ApplicationRef appRef = server.getApplicationRef(app.getName()); if (appRef != null && Boolean.valueOf(appRef.getEnabled())) { return true; } } return false; }
public boolean isAppEnabled(Application app) { if (Boolean.valueOf(app.getEnabled())) { ApplicationRef appRef = server.getApplicationRef(app.getName()); if (appRef != null && Boolean.valueOf(appRef.getEnabled())) { return true; } } return false; }
public boolean isEnabled(Application application){ if(application == null){ return false; } boolean appEnabled = Boolean.valueOf(application.getEnabled()); ApplicationRef appRef = getServer().getApplicationRef(application.getName()); boolean appRefEnabled = false; if(appRef != null ){ appRefEnabled = Boolean.valueOf(appRef.getEnabled()); } return appEnabled && appRefEnabled; }
private String getLongStatus(Application app) { String message = ""; boolean isVersionEnabled = domain.isAppEnabledInTarget(app.getName(), target); if ( isVersionEnabled ) { message = localStrings.getLocalString("list.applications.verbose.enabled", "enabled"); } else { message = localStrings.getLocalString("list.applications.verbose.disabled", "disabled"); } return message; }
public Object run(Application application) throws PropertyVetoException, TransactionFailure { Module module = application.createChild(Module.class); module.setName(application.getName()); for (Engine engine : application.getEngine()) { module.getEngines().add(engine); } application.getModule().add(module); application.getEngine().clear(); return null; } }, app);
public Object run(Application application) throws PropertyVetoException, TransactionFailure { Module module = application.createChild(Module.class); module.setName(application.getName()); for (Engine engine : application.getEngine()) { module.getEngines().add(engine); } application.getModule().add(module); application.getEngine().clear(); return null; } }, app);
public static String getApplicationName(Resource resource){ String applicationName = null; if(resource.getParent() != null && resource.getParent().getParent() instanceof Application){ Application application = (Application)resource.getParent().getParent(); applicationName = application.getName(); } return applicationName; }
public static ResourceInfo getGenericResourceInfo(Resource resource, String resourceName){ if(resource.getParent() != null && resource.getParent().getParent() instanceof Application){ Application application = (Application)resource.getParent().getParent(); return new ResourceInfo(resourceName, application.getName()); }else if(resource.getParent() != null && resource.getParent().getParent() instanceof Module){ Module module = (Module)resource.getParent().getParent(); Application application = (Application)module.getParent(); return new ResourceInfo(resourceName, application.getName(), module.getName()); }else{ return new ResourceInfo(resourceName); } }
public static ResourceInfo getGenericResourceInfo(Resource resource, String resourceName){ if(resource.getParent() != null && resource.getParent().getParent() instanceof Application){ Application application = (Application)resource.getParent().getParent(); return new ResourceInfo(resourceName, application.getName()); }else if(resource.getParent() != null && resource.getParent().getParent() instanceof Module){ Module module = (Module)resource.getParent().getParent(); Application application = (Application)module.getParent(); return new ResourceInfo(resourceName, application.getName(), module.getName()); }else{ return new ResourceInfo(resourceName); } }
public static ResourceInfo getResourceInfo(BindableResource resource){ if(resource.getParent() != null && resource.getParent().getParent() instanceof Application){ Application application = (Application)resource.getParent().getParent(); return new ResourceInfo(resource.getJndiName(), application.getName()); }else if(resource.getParent() != null && resource.getParent().getParent() instanceof Module){ Module module = (Module)resource.getParent().getParent(); Application application = (Application)module.getParent(); return new ResourceInfo(resource.getJndiName(), application.getName(), module.getName()); }else{ return new ResourceInfo(resource.getJndiName()); } }
public static PoolInfo getPoolInfo(ResourcePool resource){ if(resource.getParent() != null && resource.getParent().getParent() instanceof Application){ Application application = (Application)resource.getParent().getParent(); return new PoolInfo(resource.getName(), application.getName()); }else if(resource.getParent() != null && resource.getParent().getParent() instanceof Module){ Module module = (Module)resource.getParent().getParent(); Application application = (Application)module.getParent(); return new PoolInfo(resource.getName(), application.getName(), module.getName()); }else{ return new PoolInfo(resource.getName()); } }