org.distributeme.test.blacklisting.generated.RemoteBlacklistingTestServiceSkeleton Maven / Gradle / Ivy
package org.distributeme.test.blacklisting.generated;
//BEGIN GENERATED CODE
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import org.distributeme.core.Verbosity;
import org.distributeme.core.Defaults;
import org.distributeme.core.ServerSideCallContext;
import org.distributeme.core.interceptor.ServerSideRequestInterceptor;
import org.distributeme.core.interceptor.InterceptorResponse;
import org.distributeme.core.interceptor.InterceptionContext;
import org.distributeme.core.interceptor.InterceptorRegistry;
import org.distributeme.core.interceptor.InterceptionPhase;
import org.distributeme.core.concurrencycontrol.ConcurrencyControlStrategy;
import net.anotheria.moskito.core.dynamic.MoskitoInvokationProxy;
import net.anotheria.moskito.core.predefined.ServiceStatsCallHandler;
import net.anotheria.moskito.core.predefined.ServiceStatsFactory;
import net.anotheria.moskito.core.registry.IProducerRegistryAPI;
import net.anotheria.moskito.core.registry.ProducerRegistryAPIFactory;
import net.anotheria.moskito.core.producers.IStatsProducer;
import net.anotheria.moskito.core.logging.LoggerUtil;
// Generated by org.distributeme.generator.SkeletonGenerator
@SuppressWarnings("PMD")
public class RemoteBlacklistingTestServiceSkeleton implements RemoteBlacklistingTestService {
private static Logger log = LoggerFactory.getLogger(RemoteBlacklistingTestServiceSkeleton.class);
private org.distributeme.test.blacklisting.BlacklistingTestService implementation;
private long lastAccess;
private long created;
// CONCURRENCY CONTROL
// Class wide concurrency control strategy
private ConcurrencyControlStrategy clazzWideCCStrategy = Defaults.getDefaultConcurrencyControlStrategy();
private ConcurrencyControlStrategy doSomeThingCCStrategy_intmod = clazzWideCCStrategy;
// CONCURRENCY CONTROL end
public RemoteBlacklistingTestServiceSkeleton(){
this(null);
}
public RemoteBlacklistingTestServiceSkeleton(org.distributeme.test.blacklisting.BlacklistingTestService anImplementation){
created = System.currentTimeMillis();
MoskitoInvokationProxy proxy = new MoskitoInvokationProxy(
anImplementation,
new ServiceStatsCallHandler(),
new ServiceStatsFactory(),
"BlacklistingTestService",
"service",
"default",
org.distributeme.test.blacklisting.BlacklistingTestService.class, net.anotheria.anoprise.metafactory.Service.class
);
implementation = (org.distributeme.test.blacklisting.BlacklistingTestService) proxy.createProxy();
// add moskito logger
LoggerUtil.createSLF4JDefaultAndIntervalStatsLogger(proxy.getProducer());
//end moskito logger
// //ADD LOGGING FOR ALL BUILTIN PRODUCERS
IProducerRegistryAPI api = new ProducerRegistryAPIFactory().createProducerRegistryAPI();
List stats = api.getAllProducersBySubsystem("builtin");
for (IStatsProducer producer : stats){
LoggerUtil.createSLF4JDefaultAndIntervalStatsLogger(producer);
}
}
public List doSomeThing(int mod, Map,?> __transportableCallContext){
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("doSomeThing", __transportableCallContext);
diMeCallContext.setServiceId(BlacklistingTestServiceConstants.getServiceId());
ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy