blob: 677fc788784391e248ca07d6fe3b80cb1a3eed48 [file] [log] [blame]
/*
* 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.asterix.common.config;
import java.util.List;
import java.util.Map;
import java.util.SortedMap;
import org.apache.asterix.common.cluster.ClusterPartition;
public class AsterixMetadataProperties extends AbstractAsterixProperties {
public AsterixMetadataProperties(AsterixPropertiesAccessor accessor) {
super(accessor);
}
public String getInstanceName() {
return accessor.getInstanceName();
}
public String getMetadataNodeName() {
return accessor.getMetadataNodeName();
}
public ClusterPartition getMetadataPartition() {
return accessor.getMetadataPartition();
}
public Map<String, String[]> getStores() {
return accessor.getStores();
}
public List<String> getNodeNames() {
return accessor.getNodeNames();
}
public String getCoredumpPath(String nodeId) {
return accessor.getCoredumpPath(nodeId);
}
public Map<String, String> getCoredumpPaths() {
return accessor.getCoredumpConfig();
}
public Map<String, ClusterPartition[]> getNodePartitions() {
return accessor.getNodePartitions();
}
public SortedMap<Integer, ClusterPartition> getClusterPartitions() {
return accessor.getClusterPartitions();
}
public Map<String, String> getTransactionLogDirs() {
return accessor.getTransactionLogDirs();
}
}