public class TestHook extends java.lang.Object implements IServerHook
Modifier and Type | Field and Description |
---|---|
static java.util.concurrent.CountDownLatch |
latch |
Constructor and Description |
---|
TestHook() |
Modifier and Type | Method and Description |
---|---|
void |
beforeCreate(BmContext context,
java.lang.String uid,
Server server) |
void |
beforeUpdate(BmContext context,
java.lang.String uid,
Server server,
Server previous) |
void |
onServerAssigned(BmContext context,
ItemValue<Server> itemValue,
ItemValue<Domain> domain,
java.lang.String tag)
This is called after a server is assigned to a domain for one of its
tags.
|
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 |
onServerPreUnassigned(BmContext context,
ItemValue<Server> itemValue,
ItemValue<Domain> domain,
java.lang.String tag)
This is called before an assignment is removed.
|
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 |
onServerUnassigned(BmContext context,
ItemValue<Server> itemValue,
ItemValue<Domain> domain,
java.lang.String tag)
This is called after an assignment is removed.
|
void |
onServerUntagged(BmContext context,
ItemValue<Server> itemValue,
java.lang.String tag)
This is called after a server is untagged in the database.
|
void |
onServerUpdated(BmContext context,
ItemValue<Server> previousValue,
Server value)
This is called after a server is updated in the database.
|
public void onServerCreated(BmContext context, ItemValue<Server> item) throws ServerFault
IServerHook
onServerCreated
in interface IServerHook
ServerFault
public void onServerUpdated(BmContext context, ItemValue<Server> previousValue, Server value) throws ServerFault
IServerHook
onServerUpdated
in interface IServerHook
ServerFault
public void onServerDeleted(BmContext context, ItemValue<Server> itemValue) throws ServerFault
IServerHook
onServerDeleted
in interface IServerHook
ServerFault
public void onServerTagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
IServerHook
onServerTagged
in interface IServerHook
ServerFault
public void onServerUntagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
IServerHook
onServerUntagged
in interface IServerHook
ServerFault
public void onServerAssigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
IServerHook
onServerAssigned
in interface IServerHook
ServerFault
public void onServerUnassigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
IServerHook
onServerUnassigned
in interface IServerHook
ServerFault
public void beforeCreate(BmContext context, java.lang.String uid, Server server) throws ServerFault
beforeCreate
in interface IServerHook
ServerFault
public void beforeUpdate(BmContext context, java.lang.String uid, Server server, Server previous) throws ServerFault
beforeUpdate
in interface IServerHook
ServerFault
public void onServerPreUnassigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
IServerHook
onServerPreUnassigned
in interface IServerHook
ServerFault
Copyright © 2021. All Rights Reserved.