com.atlassian.aws.ec2
Interface EC2InstanceListener


public interface EC2InstanceListener

A listener to changes in the state of one or more RemoteEC2Instances.


Method Summary
 void ec2InstanceStateChanged(RemoteEC2Instance ec2Instance, EC2InstanceState previousState, EC2InstanceState newState, String details, Throwable throwable)
          Notification that the EC2InstanceState of an observed RemoteEC2Instance has changed.
 void onInstanceAddressChange(String previousAddress, String newAddress)
           
 

Method Detail

ec2InstanceStateChanged

void ec2InstanceStateChanged(RemoteEC2Instance ec2Instance,
                             EC2InstanceState previousState,
                             EC2InstanceState newState,
                             @Nullable
                             String details,
                             @Nullable
                             Throwable throwable)

Notification that the EC2InstanceState of an observed RemoteEC2Instance has changed.

Parameters:
ec2Instance - The RemoteEC2Instance that has undergone the change in EC2InstanceState.
previousState - The previous EC2InstanceState of ec2Instance.
newState - The new EC2InstanceState of ec2Instance.
details - Details accompanying the state change, or null if none are available. Suitable for inclusion in a user-visible event log.
throwable - The Throwable that caused the state change, if applicable. Othewise, null.

onInstanceAddressChange

void onInstanceAddressChange(String previousAddress,
                             String newAddress)


Copyright © 2015 Atlassian. All rights reserved.