339340341342343344345346347348349
client.activateServer(serverID, subscriptionID); } catch (BAMException e) { throw e; } finally { if (client != null) { client.cleanup(); } } }
354355356357358359360361362363364
try { client = BAMUtil.getBAMConfigurationDSClient(); client.addService(service); } finally { if (client != null) { client.cleanup(); } } } public ServiceDO getService(int serviceID) throws BAMException {
374375376377378379380381382383384
} return service; } finally { if (client != null) { client.cleanup(); } } } public ServiceDO getService(int serverID, String serviceName) throws BAMException {
421422423424425426427428429430431
return service; } catch (BAMException e) { throw e; } finally { if (configurationDSClient != null) { configurationDSClient.cleanup(); } } } public List<ServiceDO> getAllServices(int serverID) throws BAMException {
446447448449450451452453454455456
} return services; } finally { if (client != null) { client.cleanup(); } } } public List<OperationDO> getAllOperations(int serviceID) throws BAMException {
466467468469470471472473474475476
operations.addAll(Arrays.asList(operationsArray)); } return operations; } finally { if (client != null) { client.cleanup(); } } } public void syncServer(ServerDO server) throws BAMException {
497498499500501502503504505506507
try { client = BAMUtil.getBAMConfigurationDSClient(); client.addOperation(operation); } finally { if (client != null) { client.cleanup(); } } } public OperationDO getOperation(int serviceID, String operationName) throws BAMException {
525526527528529530531532533534535
} return operation; } finally { if (client != null) { client.cleanup(); } } }
543544545546547548549550551552553
} BAMConfigurationCache.addOperation(operation); return operation; } finally { if (client != null) { client.cleanup(); } } } public List<MediationDataDO> getEndpoints(int serverId) throws BAMException {
558559560561562563564565566567568
List<MediationDataDO> endpointList = new ArrayList<MediationDataDO>(endpoints.length); endpointList.addAll(Arrays.asList(endpoints)); return endpointList; } finally { if (client != null) { client.cleanup(); } } } public List<MediationDataDO> getSequences(int serverId) throws BAMException {