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
IServerHookonServerCreated in interface IServerHookServerFaultpublic void onServerUpdated(BmContext context, ItemValue<Server> previousValue, Server value) throws ServerFault
IServerHookonServerUpdated in interface IServerHookServerFaultpublic void onServerDeleted(BmContext context, ItemValue<Server> itemValue) throws ServerFault
IServerHookonServerDeleted in interface IServerHookServerFaultpublic void onServerTagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
IServerHookonServerTagged in interface IServerHookServerFaultpublic void onServerUntagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
IServerHookonServerUntagged in interface IServerHookServerFaultpublic void onServerAssigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
IServerHookonServerAssigned in interface IServerHookServerFaultpublic void onServerUnassigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
IServerHookonServerUnassigned in interface IServerHookServerFaultpublic void beforeCreate(BmContext context, java.lang.String uid, Server server) throws ServerFault
beforeCreate in interface IServerHookServerFaultpublic void beforeUpdate(BmContext context, java.lang.String uid, Server server, Server previous) throws ServerFault
beforeUpdate in interface IServerHookServerFaultpublic void onServerPreUnassigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
IServerHookonServerPreUnassigned in interface IServerHookServerFaultCopyright © 2022. All Rights Reserved.