-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
732 additions
and
915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
...com/microsoft/applicationinsights/agent/bootstrap/customExceptions/FriendlyException.java
This file was deleted.
Oops, something went wrong.
106 changes: 53 additions & 53 deletions
106
...microsoft/applicationinsights/agent/bootstrap/diagnostics/ApplicationMetadataFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
package com.microsoft.applicationinsights.agent.bootstrap.diagnostics; | ||
|
||
import java.util.Arrays; | ||
import java.util.Iterator; | ||
|
||
public class ApplicationMetadataFactory implements Iterable<DiagnosticsValueFinder> { | ||
|
||
private final DiagnosticsValueFinder[] finders = new DiagnosticsValueFinder[] { | ||
new AgentExtensionVersionFinder(), // 0 | ||
new InstrumentationKeyFinder(), // 1 | ||
new MachineNameFinder(), // 2 | ||
new PidFinder(), // 3 | ||
new SiteNameFinder(), // 4 | ||
new SubscriptionIdFinder(), // 5 | ||
new SdkVersionFinder(), // 6 | ||
}; | ||
|
||
|
||
ApplicationMetadataFactory() {} | ||
|
||
public DiagnosticsValueFinder getExtensionVersion() { | ||
return finders[0]; | ||
} | ||
|
||
public DiagnosticsValueFinder getInstrumentationKey() { | ||
return finders[1]; | ||
} | ||
|
||
public DiagnosticsValueFinder getMachineName() { | ||
return finders[2]; | ||
} | ||
|
||
public DiagnosticsValueFinder getPid() { | ||
return finders[3]; | ||
} | ||
|
||
public DiagnosticsValueFinder getSiteName() { | ||
return finders[4]; | ||
} | ||
|
||
public DiagnosticsValueFinder getSubscriptionId() { | ||
return finders[5]; | ||
} | ||
|
||
public DiagnosticsValueFinder getSdkVersion() { | ||
return finders[6]; | ||
} | ||
|
||
@Override | ||
public Iterator<DiagnosticsValueFinder> iterator() { | ||
return Arrays.asList(finders).iterator(); | ||
} | ||
|
||
package com.microsoft.applicationinsights.agent.bootstrap.diagnostics; | ||
|
||
import java.util.Arrays; | ||
import java.util.Iterator; | ||
|
||
public class ApplicationMetadataFactory implements Iterable<DiagnosticsValueFinder> { | ||
|
||
private final DiagnosticsValueFinder[] finders = new DiagnosticsValueFinder[] { | ||
new AgentExtensionVersionFinder(), // 0 | ||
new InstrumentationKeyFinder(), // 1 | ||
new MachineNameFinder(), // 2 | ||
new PidFinder(), // 3 | ||
new SiteNameFinder(), // 4 | ||
new SubscriptionIdFinder(), // 5 | ||
new SdkVersionFinder(), // 6 | ||
}; | ||
|
||
|
||
ApplicationMetadataFactory() {} | ||
|
||
public DiagnosticsValueFinder getExtensionVersion() { | ||
return finders[0]; | ||
} | ||
|
||
public DiagnosticsValueFinder getInstrumentationKey() { | ||
return finders[1]; | ||
} | ||
|
||
public DiagnosticsValueFinder getMachineName() { | ||
return finders[2]; | ||
} | ||
|
||
public DiagnosticsValueFinder getPid() { | ||
return finders[3]; | ||
} | ||
|
||
public DiagnosticsValueFinder getSiteName() { | ||
return finders[4]; | ||
} | ||
|
||
public DiagnosticsValueFinder getSubscriptionId() { | ||
return finders[5]; | ||
} | ||
|
||
public DiagnosticsValueFinder getSdkVersion() { | ||
return finders[6]; | ||
} | ||
|
||
@Override | ||
public Iterator<DiagnosticsValueFinder> iterator() { | ||
return Arrays.asList(finders).iterator(); | ||
} | ||
|
||
} |
Oops, something went wrong.