public Object executeOperationOnServer(String serverId, Map<String, Object> operation) throws Exception { ICarbonOperationManager serverOperationManager = getServerOperationManager(serverId); if (!operation.containsKey(ICarbonOperationManager.PARAMETER_SERVER)) addServerToParameters(operation, getServer(serverId)); if (serverOperationManager == null) return null; else return serverOperationManager.executeOperation(operation); }
public String[] getServerRelativeLibraryPaths(String serverTypeId) throws Exception { String[] result = null; ICarbonOperationManager serverOperationManager = getServerOperationManagerByServerType(serverTypeId); HashMap<String, Object> operationParameters = new HashMap<String, Object>(); operationParameters.put( ICarbonOperationManager.PARAMETER_TYPE, ICarbonOperationManager.OPERATION_GET_LIBRARY_PATHS); Object r = serverOperationManager.executeOperation(operationParameters); if (r instanceof String[]) { result = (String[]) r; } return result; }
public String[] getServerAxis2Libraries(String serverTypeId, String wsasHome) throws Exception { String[] result = null; ICarbonOperationManager serverOperationManager = getServerOperationManagerByServerType(serverTypeId); HashMap<String, Object> operationParameters = new HashMap<String, Object>(); operationParameters.put( ICarbonOperationManager.PARAMETER_TYPE, ICarbonOperationManager.OPERATION_GET_AXIS2_LIBRARIES); operationParameters.put(ICarbonOperationManager.PARAMETER_PATH, wsasHome); Object r = serverOperationManager.executeOperation(operationParameters); if (r instanceof String[]) { result = (String[]) r; } return result; }
public static void registerAppServerPlugin(String serverId, ICarbonOperationManager opManager) { if (!getServerPlugin().containsKey(serverId)) { getServerPlugin().put(serverId, opManager); getServerRuntimeIdPlugin().put(opManager.getRuntimeId(), serverId); addExistingServers(); } }
public String[] getServerCodegenLibrariesFromRuntimeId(String runtimeId, String runtimePath) throws Exception { String serverTypeId = getServerTypeIdForRuntimeId(runtimeId); String[] result = null; HashMap<String, Object> operationParameters = new HashMap<String, Object>(); operationParameters.put( ICarbonOperationManager.PARAMETER_TYPE, ICarbonOperationManager.OPERATION_GET_CODEGEN_LIBRARIES); operationParameters.put(ICarbonOperationManager.PARAMETER_RUNTIME, runtimeId); operationParameters.put(ICarbonOperationManager.PARAMETER_PATH, runtimePath); ICarbonOperationManager wsasOperationManager = getServerOperationManagerByServerType(serverTypeId); Object r = wsasOperationManager.executeOperation( operationParameters); // getWSDLConversionResultUrl(resourceFile); if (r instanceof String[]) { result = (String[]) r; } return result; }