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, onServerUntagged
public static java.util.concurrent.CompletableFuture<java.lang.Void> currentPromise
public void onServerCreated(BmContext context, ItemValue<Server> item) throws ServerFault
IServerHook
onServerCreated
in interface IServerHook
onServerCreated
in class DefaultServerHook
ServerFault
public void onServerUpdated(BmContext context, ItemValue<Server> previousValue, Server value) throws ServerFault
IServerHook
onServerUpdated
in interface IServerHook
onServerUpdated
in class DefaultServerHook
ServerFault
public void onServerDeleted(BmContext context, ItemValue<Server> itemValue) throws ServerFault
IServerHook
onServerDeleted
in interface IServerHook
onServerDeleted
in class DefaultServerHook
ServerFault
public void onServerTagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
IServerHook
onServerTagged
in interface IServerHook
onServerTagged
in class DefaultServerHook
ServerFault
Copyright © 2021. All Rights Reserved.