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

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

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

origin: Evolveum/midpoint

public List<ConnectorOperationalStatus> getConnectorOperationalStatus(PrismObject<ResourceType> resource, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException {
  List<ConnectorOperationalStatus> statuses = new ArrayList<>();
  for (ConnectorSpec connectorSpec: getAllConnectorSpecs(resource)) {
    ConnectorInstance connectorInstance = connectorManager.getConfiguredConnectorInstance(connectorSpec, false, result);
    ConnectorOperationalStatus operationalStatus = connectorInstance.getOperationalStatus();
    if (operationalStatus != null) {
      operationalStatus.setConnectorName(connectorSpec.getConnectorName());
      statuses.add(operationalStatus);
    }
  }
  return statuses;
}
 
origin: Evolveum/midpoint

@Test
public void test110SearchNonBlocking() throws Exception {
  final String TEST_NAME = "test100SearchNonBlocking";
  TestUtil.displayTestTitle(TEST_NAME);
  // GIVEN
  final ObjectClassComplexTypeDefinition accountDefinition = resourceSchema.findDefaultObjectClassDefinition(ShadowKindType.ACCOUNT);
  // Determine object class from the schema
  final List<PrismObject<ShadowType>> searchResults = new ArrayList<>();
  ShadowResultHandler handler = new ShadowResultHandler() {
    @Override
    public boolean handle(PrismObject<ShadowType> shadow) {
      System.out.println("Search: found: " + shadow);
      checkUcfShadow(shadow, accountDefinition);
      searchResults.add(shadow);
      return true;
    }
  };
  OperationResult result = new OperationResult(this.getClass().getName() + "." + TEST_NAME);
  // WHEN
  cc.search(accountDefinition, null, handler, null, null, null, null, result);
  // THEN
  assertEquals("Unexpected number of search results", 1, searchResults.size());
  ConnectorOperationalStatus opStat = cc.getOperationalStatus();
  display("stats", opStat);
  assertEquals("Wrong pool active", (Integer)0, opStat.getPoolStatusNumActive());
  assertEquals("Wrong pool active", (Integer)1, opStat.getPoolStatusNumIdle());
}
origin: Evolveum/midpoint

ConnectorOperationalStatus opStat = cc.getOperationalStatus();
display("stats (blocked)", opStat);
assertEquals("Wrong pool active", (Integer)1, opStat.getPoolStatusNumActive());
opStat = cc.getOperationalStatus();
display("stats (final)", opStat);
assertEquals("Wrong pool active", (Integer)0, opStat.getPoolStatusNumActive());
origin: Evolveum/midpoint

ConnectorOperationalStatus opStat = cc.getOperationalStatus();
display("stats (blocked 1)", opStat);
assertEquals("Wrong pool active", (Integer)1, opStat.getPoolStatusNumActive());
opStat = cc.getOperationalStatus();
display("stats (blocked 2)", opStat);
assertEquals("Wrong pool active", (Integer)2, opStat.getPoolStatusNumActive());
assertEquals("Unexpected number of search results 2", 1, searchResults2.size());
opStat = cc.getOperationalStatus();
display("stats (final)", opStat);
assertEquals("Wrong pool active", (Integer)0, opStat.getPoolStatusNumActive());
origin: Evolveum/midpoint

@Test
public void test022ConnectorStatsConfigured() throws Exception {
  final String TEST_NAME = "test022ConnectorStatsConfigured";
  TestUtil.displayTestTitle(TEST_NAME);
  // WHEN
  ConnectorOperationalStatus operationalStatus = cc.getOperationalStatus();
  // THEN
  display("Connector operational status", operationalStatus);
  assertNotNull("null operational status", operationalStatus);
  assertEquals("Wrong connectorClassName", DummyConnector.class.getName(), operationalStatus.getConnectorClassName());
  assertEquals("Wrong poolConfigMinSize", null, operationalStatus.getPoolConfigMinSize());
  assertEquals("Wrong poolConfigMaxSize", (Integer)10, operationalStatus.getPoolConfigMaxSize());
  assertEquals("Wrong poolConfigMinIdle", (Integer)1, operationalStatus.getPoolConfigMinIdle());
  assertEquals("Wrong poolConfigMaxIdle", (Integer)10, operationalStatus.getPoolConfigMaxIdle());
  assertEquals("Wrong poolConfigWaitTimeout", (Long)150000L, operationalStatus.getPoolConfigWaitTimeout());
  assertEquals("Wrong poolConfigMinEvictableIdleTime", (Long)120000L, operationalStatus.getPoolConfigMinEvictableIdleTime());
  assertEquals("Wrong poolStatusNumIdle", (Integer)0, operationalStatus.getPoolStatusNumIdle());
  assertEquals("Wrong poolStatusNumActive", (Integer)0, operationalStatus.getPoolStatusNumActive());
}
origin: Evolveum/midpoint

@Test
public void test033ConnectorStatsInitialized() throws Exception {
  final String TEST_NAME = "test033ConnectorStatsInitialized";
  TestUtil.displayTestTitle(TEST_NAME);
  // WHEN
  ConnectorOperationalStatus operationalStatus = cc.getOperationalStatus();
  // THEN
  display("Connector operational status", operationalStatus);
  assertNotNull("null operational status", operationalStatus);
  assertEquals("Wrong connectorClassName", DummyConnector.class.getName(), operationalStatus.getConnectorClassName());
  assertEquals("Wrong poolConfigMinSize", null, operationalStatus.getPoolConfigMinSize());
  assertEquals("Wrong poolConfigMaxSize", (Integer)10, operationalStatus.getPoolConfigMaxSize());
  assertEquals("Wrong poolConfigMinIdle", (Integer)1, operationalStatus.getPoolConfigMinIdle());
  assertEquals("Wrong poolConfigMaxIdle", (Integer)10, operationalStatus.getPoolConfigMaxIdle());
  assertEquals("Wrong poolConfigWaitTimeout", (Long)150000L, operationalStatus.getPoolConfigWaitTimeout());
  assertEquals("Wrong poolConfigMinEvictableIdleTime", (Long)120000L, operationalStatus.getPoolConfigMinEvictableIdleTime());
  assertEquals("Wrong poolStatusNumIdle", (Integer)1, operationalStatus.getPoolStatusNumIdle());
  assertEquals("Wrong poolStatusNumActive", (Integer)0, operationalStatus.getPoolStatusNumActive());
}
com.evolveum.midpoint.provisioning.ucf.apiConnectorInstancegetOperationalStatus

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
  • 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
  • search
    Execute iterative search operation. This method will execute search operation on the resource and wi
  • modifyObject,
  • search,
  • count,
  • dispose,
  • executeScript

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top plugins for WebStorm
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