public interface IServerHook
Server
changes (including tagging and domain
assignments).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> server,
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.
|
void beforeCreate(BmContext context, java.lang.String uid, Server server) throws ServerFault
ServerFault
void beforeUpdate(BmContext context, java.lang.String uid, Server server, Server previous) throws ServerFault
ServerFault
void onServerCreated(BmContext context, ItemValue<Server> item) throws ServerFault
context
- item
- ServerFault
void onServerUpdated(BmContext context, ItemValue<Server> previousValue, Server value) throws ServerFault
context
- previousValue
- value
- ServerFault
void onServerDeleted(BmContext context, ItemValue<Server> itemValue) throws ServerFault
context
- itemValue
- ServerFault
void onServerTagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
context
- itemValue
- tag
- ServerFault
void onServerUntagged(BmContext context, ItemValue<Server> itemValue, java.lang.String tag) throws ServerFault
context
- itemValue
- tag
- ServerFault
void onServerAssigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
context
- itemValue
- domain
- tag
- ServerFault
void onServerPreUnassigned(BmContext context, ItemValue<Server> server, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
context
- itemValue
- domain
- tag
- ServerFault
void onServerUnassigned(BmContext context, ItemValue<Server> itemValue, ItemValue<Domain> domain, java.lang.String tag) throws ServerFault
context
- itemValue
- domain
- tag
- ServerFault
Copyright © 2021. All Rights Reserved.