com.seeq.link.agent.ClassFactory Maven / Gradle / Ivy
package com.seeq.link.agent;
import com.seeq.link.agent.interfaces.Agent;
import com.seeq.link.agent.interfaces.ConnectorLoader;
import com.seeq.link.agent.interfaces.LoginAuthManager;
import com.seeq.link.agent.interfaces.SeeqHttpConnection;
import com.seeq.link.agent.interfaces.SeeqWsConnectionPool;
import com.seeq.link.sdk.interfaces.CertificateService;
import com.seeq.link.sdk.interfaces.SeeqApiProvider;
public class ClassFactory {
public Program createProgram() {
return new Program();
}
public Agent createAgent() {
return new DefaultAgent();
}
public ConnectorLoader createConnectorLoader() {
return new DefaultConnectorLoader();
}
public SeeqWsConnectionPool createSeeqWsConnectionPool(String linkURL, LoginAuthManager loginAuthManager,
CertificateService certificateService, boolean isRemoteAgent, String agentIdentification,
SeeqApiProvider apiProvider) {
return new DefaultSeeqWsConnectionPool(linkURL, loginAuthManager, certificateService, isRemoteAgent,
agentIdentification, apiProvider);
}
public SeeqHttpConnection createSeeqHttpConnection(String restURL, LoginAuthManager loginAuthManager,
CertificateService certificateService, SeeqApiProvider apiProvider, SeeqApiProvider indexingApiProvider) {
return new DefaultSeeqHttpConnection(restURL, loginAuthManager, apiProvider, indexingApiProvider);
}
}