Repository: incubator-reef Updated Branches: refs/heads/master e811e2267 -> 593690f93
[REEF-567] Remove deprecated WakeConfiguration This addressed the issue by * Deleting WakeConfiguration.java JIRA: [REEF-567](https://issues.apache.org/jira/browse/REEF-567) Pull Request: This closes #352 Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/593690f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/593690f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/593690f9 Branch: refs/heads/master Commit: 593690f933a6a0089c3209d0346be51519990bc4 Parents: e811e22 Author: Mariia Mykhailova <[email protected]> Authored: Fri Aug 7 12:30:10 2015 -0700 Committer: Markus Weimer <[email protected]> Committed: Fri Aug 7 13:39:59 2015 -0700 ---------------------------------------------------------------------- .../org/apache/reef/wake/WakeConfiguration.java | 60 -------------------- 1 file changed, 60 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/593690f9/lang/java/reef-wake/wake/src/main/java/org/apache/reef/wake/WakeConfiguration.java ---------------------------------------------------------------------- diff --git a/lang/java/reef-wake/wake/src/main/java/org/apache/reef/wake/WakeConfiguration.java b/lang/java/reef-wake/wake/src/main/java/org/apache/reef/wake/WakeConfiguration.java deleted file mode 100644 index 5c97e0f..0000000 --- a/lang/java/reef-wake/wake/src/main/java/org/apache/reef/wake/WakeConfiguration.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.reef.wake; - -import org.apache.reef.tang.Configuration; -import org.apache.reef.tang.annotations.Name; -import org.apache.reef.tang.annotations.NamedParameter; -import org.apache.reef.tang.annotations.Parameter; -import org.apache.reef.tang.exceptions.BindException; -import org.apache.reef.tang.formats.AvroConfigurationSerializer; -import org.apache.reef.wake.exception.WakeRuntimeException; - -import javax.inject.Inject; -import java.io.File; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * Wake parameter configuration. - * @deprecated in 0.12 Unused - */ -@Deprecated -public final class WakeConfiguration { - private static final Logger LOG = Logger.getLogger(WakeConfiguration.class.getName()); - - @Inject - public WakeConfiguration(@Parameter(FileName.class) final String confFileName) { - if (confFileName.equals("")) { - LOG.log(Level.WARNING, "The Wake configuration file is not specified."); - } else { - final AvroConfigurationSerializer avroSerializer = new AvroConfigurationSerializer(); - try { - final Configuration conf = avroSerializer.fromFile(new File(confFileName)); - } catch (final BindException | IOException e) { - throw new WakeRuntimeException(e); - } - } - } - - @NamedParameter(doc = "Configuration file name", default_value = "") - public static final class FileName implements Name<String> { - } -}
