com.eg.agent.android.NullMainInterface Maven / Gradle / Ivy
package com.eg.agent.android;
/**
* Created by Venkateswari.J on 4/24/2017.
*/
import com.eg.agent.android.common.TransactionData;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.locks.ReentrantLock;
public abstract class NullMainInterface implements MainInterface
{
//public static final NullMainInterface instance = new NullMainInterface();
private final AgentConfiguration agentConfiguration = new AgentConfiguration();
private final ReentrantLock lock = new ReentrantLock();
private int responseBodyLimit;
private long sessionStartTimeMillis = 0L;
public void addTransactionData(TransactionData paramTransactionData) {}
public void disable() {}
public List getAndClearTransactionData()
{
return new ArrayList();
}
/*public ApplicationInformation1 getApplicationInformation()
{
return new ApplicationInformation1("null", "0.0", "null", "0");
}
*/
public String getCrossProcessId()
{
return null;
}
/* public DeviceInformation1 getDeviceInformation()
{
DeviceInformation1 localDeviceInformation = new DeviceInformation1();
localDeviceInformation.setOsName("Android");
localDeviceInformation.setOsVersion("2.3");
localDeviceInformation.setOsBuild("a.b.c");
localDeviceInformation.setManufacturer("Fake");
localDeviceInformation.setModel("NullAgent");
localDeviceInformation.setAgentName("AndroidAgent");
localDeviceInformation.setAgentVersion("2.123");
localDeviceInformation.setDeviceId("389C9738-A761-44DE-8A66-1668CFD67DA1");
localDeviceInformation.setArchitecture("Fake Arch");
localDeviceInformation.setRunTime("1.7.0");
localDeviceInformation.setSize("Fake Size");
return localDeviceInformation;
}*/
/* public Encoder getEncoder()
{
new Encoder()
{
public String encode(byte[] paramAnonymousArrayOfByte)
{
return new String(paramAnonymousArrayOfByte);
}
};
}
*/
/* public EnvironmentInformation getEnvironmentInformation()
{
return new EnvironmentInformation(0L, 1, "none", "none", new long[] { 0L, 0L });
}
*/
public String getNetworkCarrier()
{
return "unknown";
}
public String getNetworkWanType()
{
return "unknown";
}
public int getResponseBodyLimit()
{
return this.responseBodyLimit;
}
public long getSessionDurationMillis()
{
return this.sessionStartTimeMillis;
}
public int getStackTraceLimit()
{
return 0;
}
public boolean isDisabled()
{
return true;
}
public void mergeTransactionData(List paramList) {}
public void setLocation(String paramString1, String paramString2) {}
public void setResponseBodyLimit(int paramInt)
{
this.responseBodyLimit = paramInt;
}
public void start() {}
public void stop() {}
public boolean updateSavedConnectInformation()
{
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy