manual-instantiateJava サーバレストレーサのインスタンス化
RequestStreamHandler自動インスタンス化は インターフェイスと互換性があります。他のすべてのインターフェイスでは、手動でのインスタンス化が必要です。
RequestStreamHandler は、AWS によって提供される事前定義されたハンドラです。詳細については、AWS のマニュアルを参照してください。
トレーサを自動的にインスタンス化する場合:
Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.
Release NotesCollect, index, and visualize your data in the cloud for better operational intelligence.
Release NotesDiscover, share, and install apps and add-ons with the Splunk community on Splunkbase. Publish your own or add others to your Splunk platform instance.
Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.
Release NotesStreamline your security operations with a SOAR system that integrates orchestration, playbook automation, and case management to enhance threat response.
Release NotesPrevent disruptions and optimize operations when you monitor and analyze your IT service with predictive analytics and machine learning.
Release NotesCollect, index, and visualize your data in the cloud for better operational intelligence.
Release NotesGain end-to-end visibility, troubleshoot in real-time, and optimize performance across infrastructure, applications, and user interfaces.
Release NotesMonitor business application performance for cloud environments and IT infrastructure.
Release NotesMonitor business application performance for cloud environments and IT infrastructure.
Release NotesAn on-premises solution using AppDynamics On-Premises or Appdynamics Virtual Appliance (self hosted).
Release NotesBuild and deliver apps and integrations with SDKs, APIs and tools.
Access and share apps and add-ons with the Splunk community on Splunkbase. Publish your own apps, or download and install others on your Splunk platform instance.
Explore information on best practices, connect with community, or contact support.
RequestStreamHandler自動インスタンス化は インターフェイスと互換性があります。他のすべてのインターフェイスでは、手動でのインスタンス化が必要です。
RequestStreamHandler は、AWS によって提供される事前定義されたハンドラです。詳細については、AWS のマニュアルを参照してください。
トレーサを自動的にインスタンス化する場合:
MonitoredRequestStreamHandler に拡張します。ハンドラクラスの既存のメソッド handleMonitoredRequest の名前を変更します。
package <MyTestPackage>;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
//AppDynamics tracer imports
import com.appdynamics.serverless.tracers.aws.api.AppDynamics;
import com.appdynamics.serverless.tracers.aws.api.MonitoredRequestStreamHandler;
import com.appdynamics.serverless.tracers.aws.api.ExitCall;
import com.appdynamics.serverless.tracers.aws.api.Tracer;
import com.appdynamics.serverless.tracers.aws.api.Transaction;
//Keyword extends makes MonitoredRequestStreamHanlder your project's superclass
public class <MaryHadALittleLambda> extends MonitoredRequestStreamHandler {
@Override
//Change your method to handleMonitoredRequest
public void handleMonitoredRequest(InputStream input, OutputStream output, Context context) throws IOException {
}
// Your AWS Lambda function code starts here, for example
int letter = 0;
while((letter = input.read()) >= 0) {
output.write(Character.toUpperCase(letter));
}
}