All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.terracotta.angela.common.tcconfig.holders.TcConfig8Holder Maven / Gradle / Ivy

/*
 * Copyright Terracotta, Inc.
 *
 * Licensed 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.terracotta.angela.common.tcconfig.holders;

import org.terracotta.angela.common.net.PortAllocator;
import org.terracotta.angela.common.tcconfig.ServerSymbolicName;
import org.terracotta.angela.common.tcconfig.TerracottaServer;
import org.terracotta.angela.common.tcconfig.TsaStripeConfig;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;

import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import java.io.File;
import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * Terracotta config for Terracotta 4.0.x
 * 

* 8 -> 4.0.x * * @author Aurelien Broszniowski */ public class TcConfig8Holder extends TcConfigHolder { private static final long serialVersionUID = 1L; public TcConfig8Holder(final TcConfig8Holder tcConfig8Holder) { super(tcConfig8Holder); } public TcConfig8Holder(final InputStream tcConfigInputStream) { super(tcConfigInputStream); } @Override protected NodeList getServersList(Document tcConfigXml, XPath xPath) throws XPathExpressionException { return (NodeList) xPath.evaluate("//*[name()='servers']//*[name()='server']", tcConfigXml.getDocumentElement(), XPathConstants.NODESET); } @Override public void updateSecurityRootDirectoryLocation(String securityRootDirectory) { throw new UnsupportedOperationException("security-root-directory configuration is not available in TcConfig8"); } @Override public void updateDataDirectory(final String rootId, final String newlocation) { throw new UnsupportedOperationException("Unimplemented"); } @Override public void updateHostname(final String serverName, final String hostname) { throw new UnsupportedOperationException("Unimplemented"); } @Override public void updateServerGroupPort(Map proxiedPorts) { throw new UnsupportedOperationException("Unimplemented"); } @Override public void updateServerTsaPort(Map proxiedPorts) { throw new UnsupportedOperationException("Unimplemented"); } @Override public List retrieveGroupMembers(String serverName, boolean updateProxy, PortAllocator portAllocator) { throw new UnsupportedOperationException("Unimplemented"); } @Override public Map retrieveTsaPorts(final boolean updateForProxy, PortAllocator portAllocator) { throw new UnsupportedOperationException("Unimplemented"); } @Override public void addOffheap(String resourceName, String size, String unit) { throw new UnsupportedOperationException(); } @Override public void addDataDirectory(List tsaDataDirectoryList) { throw new UnsupportedOperationException("Unimplemented"); } @Override public Map getDataDirectories() { throw new UnsupportedOperationException("Unimplemented"); } @Override public void addPersistencePlugin(String persistenceDataName) { throw new UnsupportedOperationException(); } @Override public List getPluginServices() { throw new UnsupportedOperationException(); } @Override public void updateAuditDirectoryLocation(final File kitDir, final int stripeId) { throw new UnsupportedOperationException("Unimplemented"); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy