com.gemstone.gemfire.distributed.support.DistributedSystemAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gemfire-junit Show documentation
Show all versions of gemfire-junit Show documentation
SnappyData store based off Pivotal GemFireXD
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* 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. See accompanying
* LICENSE file.
*/
package com.gemstone.gemfire.distributed.support;
import java.io.IOException;
import java.io.Reader;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import com.gemstone.gemfire.CancelCriterion;
import com.gemstone.gemfire.LogWriter;
import com.gemstone.gemfire.StatisticDescriptor;
import com.gemstone.gemfire.Statistics;
import com.gemstone.gemfire.StatisticsType;
import com.gemstone.gemfire.distributed.DistributedMember;
import com.gemstone.gemfire.distributed.DistributedSystem;
/**
* The DistributedSystemAdapter class is an adapter extending DistributedSystem to provide default behavior for the
* abstract methods when testing.
*
* @author John Blum
* @see com.gemstone.gemfire.distributed.DistributedSystem
* @since 7.5
*/
@SuppressWarnings("unused")
public abstract class DistributedSystemAdapter extends DistributedSystem {
@Override
public LogWriter getLogWriter() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public LogWriter getSecurityLogWriter() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Properties getProperties() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Properties getSecurityProperties() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public CancelCriterion getCancelCriterion() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public void disconnect() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public boolean isConnected() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public boolean isReconnecting() {
return false;
}
public boolean waitUntilReconnected(long time, TimeUnit units) throws InterruptedException {
return false;
}
@Override
public void stopReconnecting() {
}
@Override
public DistributedSystem getReconnectedSystem() {
return null;
}
@Override
public long getId() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public String getMemberId() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public DistributedMember getDistributedMember() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Set getAllOtherMembers() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Set getGroupMembers(final String group) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public String getName() {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics createStatistics(final StatisticsType type) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics createStatistics(final StatisticsType type, final String textId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics createStatistics(final StatisticsType type, final String textId, final long numericId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics createAtomicStatistics(final StatisticsType type) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics createAtomicStatistics(final StatisticsType type, final String textId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics createAtomicStatistics(final StatisticsType type, final String textId, final long numericId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics[] findStatisticsByType(final StatisticsType type) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics[] findStatisticsByTextId(final String textId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics[] findStatisticsByNumericId(final long numericId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics createAtomicStatistics(StatisticsType type,
String textId, long numericId, long uniqueId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public Statistics findStatisticsByUniqueId(long uniqueId) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createIntCounter(final String name, final String description, final String units) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createLongCounter(final String name, final String description, final String units) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createDoubleCounter(final String name, final String description, final String units) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createIntGauge(final String name, final String description, final String units) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createLongGauge(final String name, final String description, final String units) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createDoubleGauge(final String name, final String description, final String units) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createIntCounter(final String name, final String description, final String units, final boolean largerBetter) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createLongCounter(final String name, final String description, final String units, final boolean largerBetter) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createDoubleCounter(final String name, final String description, final String units, final boolean largerBetter) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createIntGauge(final String name, final String description, final String units, final boolean largerBetter) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createLongGauge(final String name, final String description, final String units, final boolean largerBetter) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticDescriptor createDoubleGauge(final String name, final String description, final String units, final boolean largerBetter) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override
public StatisticsType createType(final String name, final String description, final StatisticDescriptor[] stats) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override public StatisticsType findType(final String name) {
throw new UnsupportedOperationException("Not Implemented!");
}
@Override public StatisticsType[] createTypesFromXml(final Reader reader) throws IOException {
throw new UnsupportedOperationException("Not Implemented!");
}
}