public class LatchHook extends DefaultServerHook
| Modifier and Type | Field and Description |
|---|---|
static java.util.concurrent.CompletableFuture<java.lang.Void> |
currentPromise |
| Constructor and Description |
|---|
LatchHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
onServerCreated(BmContext context,
ItemValue<Server> item)
This is called after a server is created in the database.
|
void |
onServerDeleted(BmContext context,
ItemValue<Server> itemValue)
This is called after a server is deleted in the database.
|
void |
onServerTagged(BmContext context,
ItemValue<Server> itemValue,
java.lang.String tag)
This is called after a server is tagged in the database (one server
update can trigger multiple onServerTagged events)
|
void |
onServerUpdated(BmContext context,
ItemValue<Server> previousValue,
Server value)
This is called after a server is updated in the database.
|
beforeCreate, beforeUpdate, onServerAssigned, onServerPreUnassigned, onServerUnassigned, onServerUntaggedpublic static java.util.concurrent.CompletableFuture<java.lang.Void> currentPromise
public void onServerCreated(BmContext context, ItemValue<Server> item) throws ServerFault
IServerHookonServerCreated in interface IServerHookonServerCreated in class DefaultServerHookServerFaultpublic void onServerUpdated(BmContext context, ItemValue<Server> previousValue, Server value) throws ServerFault
IServerHookonServerUpdated in interface IServerHookonServerUpdated in class DefaultServerHookServerFaultpublic void onServerDeleted(BmContext context, ItemValue<Server> itemValue) throws ServerFault
IServerHookonServerDeleted in interface IServerHookonServerDeleted in class DefaultServerHookServerFaultpublic void onServerTagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
IServerHookonServerTagged in interface IServerHookonServerTagged in class DefaultServerHookServerFaultCopyright © 2022. All Rights Reserved.