Tabnine Logo
SchemaMeta.getOperations
Code IndexAdd Tabnine to your IDE (free)

How to use
getOperations
method
in
io.servicecomb.core.definition.SchemaMeta

Best Java code snippets using io.servicecomb.core.definition.SchemaMeta.getOperations (Showing top 3 results out of 315)

origin: io.servicecomb/java-chassis-core

public void regSchemaMeta(SchemaMeta schemaMeta) {
 idSchemaMetaMgr.register(schemaMeta.getSchemaId(), schemaMeta);
 regSchemaAndInterface(schemaMeta);
 for (OperationMeta operationMeta : schemaMeta.getOperations()) {
  regOperation(operationMeta.getSchemaQualifiedName(), operationMeta);
 }
}
origin: io.servicecomb/common-rest

public void addSchema(SchemaMeta schemaMeta) {
 if (isSchemaExists(schemaMeta.getSchemaId())) {
  return;
 }
 schemaIdSet.add(schemaMeta.getSchemaId());
 for (OperationMeta operationMeta : schemaMeta.getOperations()) {
  RestOperationMeta restOperationMeta = new RestOperationMeta();
  restOperationMeta.init(operationMeta);
  operationMeta.putExtData(RestConst.SWAGGER_REST_OPERATION, restOperationMeta);
  addResource(restOperationMeta);
 }
 LOGGER.info("add schema to service paths. {}:{}:{}.",
   schemaMeta.getMicroserviceMeta().getAppId(),
   schemaMeta.getMicroserviceName(),
   schemaMeta.getSchemaId());
}
origin: io.servicecomb/java-chassis-core

public SchemaMeta getOrCreateProducerSchema(String microserviceName, String schemaId,
  Class<?> producerClass,
  Object producerInstance) {
 MicroserviceMeta microserviceMeta = microserviceMetaManager.getOrCreateMicroserviceMeta(microserviceName);
 ProducerSchemaContext context = new ProducerSchemaContext();
 context.setMicroserviceMeta(microserviceMeta);
 context.setSchemaId(schemaId);
 context.setProviderClass(producerClass);
 context.setProducerInstance(producerInstance);
 SchemaMeta schemaMeta = getOrCreateSchema(context);
 SwaggerProducer producer = swaggerEnv.createProducer(producerInstance, schemaMeta.getSwagger());
 for (OperationMeta operationMeta : schemaMeta.getOperations()) {
  SwaggerProducerOperation producerOperation = producer.findOperation(operationMeta.getOperationId());
  operationMeta.putExtData(Const.PRODUCER_OPERATION, producerOperation);
 }
 return schemaMeta;
}
io.servicecomb.core.definitionSchemaMetagetOperations

Popular methods of SchemaMeta

  • ensureFindOperation
  • getMicroserviceMeta
  • getMicroserviceName
  • getSchemaId
  • getSwagger
  • getSwaggerIntf
  • <init>
  • createOperationMgr
  • getConsumerHandlerChain
  • getMicroserviceQualifiedName
  • getName
  • getPackageName
  • getName,
  • getPackageName,
  • getProviderHandlerChain,
  • initOperations,
  • setConsumerHandlerChain,
  • setProviderHandlerChain

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Best plugins for Eclipse
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