Tabnine Logo
ConnectorInstance.dispose
Code IndexAdd Tabnine to your IDE (free)

How to use
dispose
method
in
com.evolveum.midpoint.provisioning.ucf.api.ConnectorInstance

Best Java code snippets using com.evolveum.midpoint.provisioning.ucf.api.ConnectorInstance.dispose (Showing top 3 results out of 315)

origin: Evolveum/midpoint

public void dispose() {
  for (Entry<ConfiguredConnectorCacheKey, ConfiguredConnectorInstanceEntry> connectorInstanceCacheEntry: connectorInstanceCache.entrySet()) {
    connectorInstanceCacheEntry.getValue().connectorInstance.dispose();
  }
}

origin: Evolveum/midpoint

/**
 * Returns fresh, unconfigured and uncached connector instance. NOT SUITABLE FOR GENERAL USE.
 * Should only be used by testConnection in Resource manager.
 */
ConnectorInstance createFreshConnectorInstance(ConnectorSpec connectorSpec, OperationResult result)
    throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException {
  ConfiguredConnectorCacheKey cacheKey = connectorSpec.getCacheKey();
  ConfiguredConnectorInstanceEntry configuredConnectorInstanceEntry = connectorInstanceCache.get(cacheKey);
  if (configuredConnectorInstanceEntry != null) {
    // This may seem redundant. But we want to make sure that old connector instance is disposed
    // before we try to create new connector instance.
    configuredConnectorInstanceEntry.connectorInstance.dispose();
    connectorInstanceCache.remove(cacheKey);
  }
  return createConnectorInstance(connectorSpec, result);
}

origin: Evolveum/midpoint

configuredConnectorInstanceEntry.connectorInstance.dispose();
connectorInstanceCache.remove(cacheKey);
com.evolveum.midpoint.provisioning.ucf.apiConnectorInstancedispose

Popular methods of ConnectorInstance

  • test
  • addObject
    TODO: This should return indication how the operation went, e.g. what changes were applied, what wer
  • configure
    The connector instance will be configured to the state that it can immediately access the resource.
  • deleteObject
  • fetchCapabilities
    Retrieves native connector capabilities. The capabilities specify what the connector can do without
  • fetchChanges
    Token may be null. That means "from the beginning of history".
  • fetchCurrentToken
    Returns the latest token. In other words, returns a token that corresponds to a current state of the
  • fetchObject
    Retrieves a specific object from the resource. This method is fetching an object from the resource t
  • fetchResourceSchema
    Retrieves the schema from the resource. The schema may be considered to be an XSD schema, but it is
  • getOperationalStatus
  • initialize
    Get necessary information from the remote system. This method will initialize the configured connect
  • modifyObject
    TODO: This should return indication how the operation went, e.g. what changes were applied, what wer
  • initialize,
  • modifyObject,
  • search,
  • count,
  • executeScript

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now