Skip to content

Package: ClientInfoRegistryMediator

ClientInfoRegistryMediator

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.datastore.internal.mediator;
14:
15: import org.eclipse.kapua.KapuaIllegalArgumentException;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.datastore.internal.schema.Metadata;
18: import org.eclipse.kapua.service.datastore.model.ClientInfo;
19: import org.eclipse.kapua.service.elasticsearch.client.exception.ClientException;
20: import org.eclipse.kapua.service.storable.exception.MappingException;
21:
22: /**
23: * Client information registry mediator definition
24: *
25: * @since 1.0
26: */
27: public interface ClientInfoRegistryMediator {
28:
29: /**
30: * Get the client info metadata
31: *
32: * @param scopeId
33: * @param indexedOn
34: * @return
35: * @throws ClientException
36: */
37: Metadata getMetadata(KapuaId scopeId, long indexedOn) throws ClientException, MappingException;
38:
39: /**
40: * On after client info delete event handler
41: *
42: * @param scopeId
43: * @param clientInfo
44: * @throws KapuaIllegalArgumentException
45: * @throws ConfigurationException
46: * @throws ClientException
47: */
48: void onAfterClientInfoDelete(KapuaId scopeId, ClientInfo clientInfo)
49: throws KapuaIllegalArgumentException,
50: ConfigurationException,
51: ClientException;
52: }