package com.x.program.center.jaxrs.applicationserver;

import com.x.base.core.project.server.ApplicationServer;

public class ActionGet extends ActionBase {

	public ApplicationServer execute(String name) throws Exception {
		// ApplicationServer applicationServer = null;
		// for (ApplicationServer o : ThisApplication.applicationServers) {
		// if (Objects.equals(o.getName(), name)) {
		// applicationServer = o;
		// }
		// }
		// if (null == applicationServer) {
		// throw new Exception("applicationServer{name:" + name + "} not
		// existed.");
		// }
		// try {
		// Deployer deployer = this.getDeployer(applicationServer);
		// applicationServer.setContextList(this.listDeployed(deployer));
		// applicationServer.setStatus(Status.connected);
		// } catch (Exception e) {
		// applicationServer.setMessage(e.getMessage());
		// applicationServer.setStatus(Status.disconnected);
		// }
		// ApplicationServers.store(ThisApplication.applicationServers);
		// return applicationServer;
		return null;
	}

}
