org.distributeme.agents.transporter.generated.RemoteTransporterServiceSkeleton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of distributeme-agents Show documentation
Show all versions of distributeme-agents Show documentation
Support for mobile agents in DistributeMe.
package org.distributeme.agents.transporter.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;
// Generated by org.distributeme.generator.SkeletonGenerator
@SuppressWarnings("PMD")
public class RemoteTransporterServiceSkeleton implements RemoteTransporterService {
private static Logger log = LoggerFactory.getLogger(RemoteTransporterServiceSkeleton.class);
private org.distributeme.agents.transporter.TransporterService implementation;
private long lastAccess;
private long created;
// CONCURRENCY CONTROL
// Class wide concurrency control strategy
private ConcurrencyControlStrategy clazzWideCCStrategy = Defaults.getDefaultConcurrencyControlStrategy();
private ConcurrencyControlStrategy receiveAndAwakeAgentCCStrategy_orgdistributemeagentsAgentPackageagent = clazzWideCCStrategy;
// CONCURRENCY CONTROL end
public RemoteTransporterServiceSkeleton(){
this(null);
}
public RemoteTransporterServiceSkeleton(org.distributeme.agents.transporter.TransporterService anImplementation){
created = System.currentTimeMillis();
implementation = anImplementation;
}
public List receiveAndAwakeAgent(org.distributeme.agents.AgentPackage agent, Map,?> __transportableCallContext) throws org.distributeme.agents.transporter.TransporterServiceException{
lastAccess = System.currentTimeMillis();
ServerSideCallContext diMeCallContext = new ServerSideCallContext("receiveAndAwakeAgent", __transportableCallContext);
diMeCallContext.setServiceId(TransporterServiceConstants.getServiceId());
ArrayList