public class EC2MetadataServiceMock extends Object
Constructor and Description |
---|
EC2MetadataServiceMock(boolean tokenEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
setAvailableSecurityCredentials(String securityCredentialNames)
Accepts a newline delimited list of security credential names that the
mock metadata service should advertise as available.
|
void |
setResponseFileName(String responseFileName)
Sets the name of the file that should be sent back as the response from
this mock server.
|
void |
start() |
void |
stop() |
public void setResponseFileName(String responseFileName)
responseFileName
- The name of the file that should be sent back as the response
from this mock server.public void setAvailableSecurityCredentials(String securityCredentialNames)
securityCredentialNames
- A newline delimited list of security credentials that the
metadata service will advertise as available.public void start() throws IOException
IOException
public void stop()
Copyright © 2020. All rights reserved.