public class AssetManagerEventClient extends Object implements AssetManagerEventInterface
| Constructor and Description |
|---|
AssetManagerEventClient(String serverName,
String serverPlatformURLRoot,
String serverUserId,
String serverPassword,
int maxPageSize,
AuditLog auditLog,
String callerId)
Create a new client that is to be used within an OMAG Server.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigurationServerName()
Return the name of the server where configuration is supposed to be stored.
|
void |
registerListener(String userId,
AssetManagerEventListener listener)
Register a listener object that will be passed each of the events published by
the Asset Manager OMAS.
|
public AssetManagerEventClient(String serverName, String serverPlatformURLRoot, String serverUserId, String serverPassword, int maxPageSize, AuditLog auditLog, String callerId) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversserverUserId - this server's userIdserverPassword - this server's userIdmaxPageSize - pre-initialized parameter limitauditLog - logging destinationcallerId - unique identifier of the callerInvalidParameterException - there is a problem with the information about the remote OMASpublic String getConfigurationServerName()
public void registerListener(String userId, AssetManagerEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
registerListener in interface AssetManagerEventInterfaceuserId - calling userlistener - listener objectInvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.