Package com.tailf.dp
Interface DpServiceCallback
- All Known Implementing Classes:
ServiceCallbackProxy
public interface DpServiceCallback
This interface is used for the service callbacks.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Flags for the maskstatic final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ServiceContext context, NavuNode service, NavuNode root, Properties opaque) Create callback method.int
mask()
Mask of flags for each method that is supported by this callback:M_CREATE
M_PRE_MODIFICATION
M_POST_MODIFICATION
postModification
(ServiceContext context, ServiceOperationType operation, ConfPath path, Properties opaque) Post modification callback If registered this method will be called after a CREATE, UPDATE or DELETE of the service.preModification
(ServiceContext context, ServiceOperationType operation, ConfPath path, Properties opaque) Pre modification callback If registered this method will be called before a CREATE, UPDATE or DELETE of the service.The name of the servicepoint
-
Field Details
-
M_CREATE
static final int M_CREATEFlags for the mask- See Also:
-
M_PRE_MODIFICATION
static final int M_PRE_MODIFICATION- See Also:
-
M_POST_MODIFICATION
static final int M_POST_MODIFICATION- See Also:
-
-
Method Details
-
servicepoint
String servicepoint()The name of the servicepoint -
mask
int mask()Mask of flags for each method that is supported by this callback: -
preModification
Properties preModification(ServiceContext context, ServiceOperationType operation, ConfPath path, Properties opaque) throws DpCallbackException Pre modification callback If registered this method will be called before a CREATE, UPDATE or DELETE of the service. This is also called with a service context that is of the original transaction. This implies that changes written into this transaction will stay persistent outside of the fastmap algorithm. I.e. will be left untouched by the fastmap algorithm. This can be useful e.g. for allocations that should be stored and existing also when the service instance is removed.- Parameters:
context
- - The current ServiceContext objectoperation
- - Type of operation (CREATE,UPDATE,DELETE)path
- - ConfPath object referring to the services pathopaque
- - Parameter contains a Properties object. This object may be used to transfer additional information between consecutive calls to the create callback. It is always null in the first call. I.e. when the service is first created.- Returns:
- Properties - the returning opaque instance
- Throws:
DpCallbackException
-
postModification
Properties postModification(ServiceContext context, ServiceOperationType operation, ConfPath path, Properties opaque) throws DpCallbackException Post modification callback If registered this method will be called after a CREATE, UPDATE or DELETE of the service. This is also called with a service context that is of the original transaction. This implies that changes written into this transaction will stay persistent outside of the fastmap algorithm. I.e. will be left untouched by the fastmap algorithm. This can be useful e.g. for allocations that should be stored and existing also when the service instance is removed.- Parameters:
context
- - The current ServiceContext objectoperation
- - Type of operation (CREATE,UPDATE,DELETE)path
- - ConfPath object referring to the services pathopaque
- - Parameter contains a Properties object. This object may be used to transfer additional information between consecutive calls to the create callback. It is always null in the first call. I.e. when the service is first created.- Returns:
- Properties - the returning opaque instance
- Throws:
DpCallbackException
-