Package com.atlan.samples.events
Class PlaybookRunner
- java.lang.Object
-
- com.atlan.samples.events.PlaybookRunner
-
- All Implemented Interfaces:
com.atlan.events.AtlanEventHandler
public class PlaybookRunner extends java.lang.Object implements com.atlan.events.AtlanEventHandler
An experiment to dynamically run through playbooks and apply them to any of the assets flowing through events.
-
-
Constructor Summary
Constructors Constructor Description PlaybookRunner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<com.atlan.model.assets.Asset>
calculateChanges(com.atlan.model.assets.Asset original, org.slf4j.Logger log)
com.atlan.model.assets.Asset
getCurrentState(com.atlan.AtlanClient client, com.atlan.model.assets.Asset fromEvent, org.slf4j.Logger log)
static PlaybookRunner
getInstance()
-
-
-
Method Detail
-
getInstance
public static PlaybookRunner getInstance()
-
getCurrentState
public com.atlan.model.assets.Asset getCurrentState(com.atlan.AtlanClient client, com.atlan.model.assets.Asset fromEvent, org.slf4j.Logger log) throws com.atlan.exception.AtlanException
- Specified by:
getCurrentState
in interfacecom.atlan.events.AtlanEventHandler
- Throws:
com.atlan.exception.AtlanException
-
calculateChanges
public java.util.Collection<com.atlan.model.assets.Asset> calculateChanges(com.atlan.model.assets.Asset original, org.slf4j.Logger log) throws com.atlan.exception.AtlanException
- Specified by:
calculateChanges
in interfacecom.atlan.events.AtlanEventHandler
- Throws:
com.atlan.exception.AtlanException
-
-