当前位置: 首页>>代码示例>>Java>>正文


Java DataFlowNode类代码示例

本文整理汇总了Java中com.arjuna.databroker.data.DataFlowNode的典型用法代码示例。如果您正苦于以下问题:Java DataFlowNode类的具体用法?Java DataFlowNode怎么用?Java DataFlowNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DataFlowNode类属于com.arjuna.databroker.data包,在下文中一共展示了DataFlowNode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(AzureSQLServerDataService.SERVERNAME_PROPERTYNAME);
            propertyNames.add(AzureSQLServerDataService.DATABASENAME_PROPERTYNAME);
            propertyNames.add(AzureSQLServerDataService.USER_PROPERTYNAME);
            propertyNames.add(AzureSQLServerDataService.PASSWORD_PROPERTYNAME);

            return propertyNames;
        }
        else
            throw new MissingMetaPropertyException("No metaproperties expected", null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Azure_DataBroker_PlugIn,代码行数:24,代码来源:AzureSQLServerDataFlowNodeFactory.java

示例2: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(AzureStorageDataService.SERVICEBASEURL_PROPERTYNAME);
            propertyNames.add(AzureStorageDataService.CONTAINERNAME_PROPERTYNAME);
            propertyNames.add(AzureStorageDataService.ACCOUNTNAME_PROPERTYNAME);
            propertyNames.add(AzureStorageDataService.ACCOUNTKEY_PROPERTYNAME);
            propertyNames.add(AzureStorageDataService.STORAGECONNECTION_PROPERTYNAME);
            propertyNames.add(AzureStorageDataService.CONTAINERSAS_PROPERTYNAME);

            return propertyNames;
        }
        else
            throw new MissingMetaPropertyException("No metaproperties expected", null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Azure_DataBroker_PlugIn,代码行数:26,代码来源:AzureStorageDataFlowNodeFactory.java

示例3: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(ProviderCSVFeedDataService.CSVFEEDID_PROPERTYNAME);

            return propertyNames;
        }
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Drupal_DataBroker_PlugIn,代码行数:21,代码来源:CSVFeedDataFlowNodeFactory.java

示例4: recreateDataFlowNodeLink

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
private Boolean recreateDataFlowNodeLink(DataFlowNodeLinkEntity dataFlowNodeEntity, DataFlow dataFlow)
{
    try
    {
        DataFlowNode sourceDataFlowNode = dataFlow.getDataFlowNodeInventory().getDataFlowNode(dataFlowNodeEntity.getNodeSource().getName());
        DataFlowNode sinkDataFlowNode   = dataFlow.getDataFlowNodeInventory().getDataFlowNode(dataFlowNodeEntity.getNodeSink().getName());

        return _dataFlowNodeLinkLifeCycleControl.recreateDataFlowNodeLink(sourceDataFlowNode, sinkDataFlowNode, dataFlow);
    }
    catch (Throwable throwable)
    {
        logger.log(Level.WARNING, "recreateDataFlowNodeLink: Recreate failed - " + dataFlowNodeEntity.getId(), throwable);

        return false;
    }
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:17,代码来源:JEEDataFlowLifeCycleControl.java

示例5: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataProcessor.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            return propertyNames;
        }
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:19,代码来源:FileReaderDataProcessorFactory.java

示例6: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(FileUpdateDataService.FILENAME_PROPERYNAME);

            return propertyNames;
        }
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:21,代码来源:FileUpdateDataServiceFactory.java

示例7: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataSource.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(DirectoryChangeDataSource.DIRECTORYNAME_PROPERYNAME);

            return propertyNames;
        }
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:21,代码来源:DirectoryChangeDataSourceFactory.java

示例8: createDataFlowNode

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidNameException, InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.isAssignableFrom(Dummy01DataSource.class))
    {
        Timer             timer             = new Timer(true);
        Dummy01DataSource dummy01DataSource = new Dummy01DataSource(null, name, properties);
        timer.scheduleAtFixedRate(dummy01DataSource, 0, 1000);

        return (T) dummy01DataSource;
    }
    else
        return null;
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:17,代码来源:Dummy01DataFlowNodeFactory.java

示例9: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(ProviderXMLFeedDataService.XMLFEEDID_PROPERTYNAME);

            return propertyNames;
        }
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Drupal_DataBroker_PlugIn,代码行数:21,代码来源:XMLFeedDataFlowNodeFactory.java

示例10: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.isAssignableFrom(PostgreSQLDataStore.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(PostgreSQLDataStore.DATABASE_METADATAID_PROPERTYNAME);
            propertyNames.add(PostgreSQLDataStore.DATABASE_METADATAPATH_PROPERTYNAME);

            return propertyNames;
        }
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:JDBC_DataBroker_PlugIn,代码行数:22,代码来源:PostgreSQLDataFlowNodeFactory.java

示例11: getLinkClass

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
private Class<?> getLinkClass(DataFlowNode sourceDataFlowNode, DataFlowNode sinkDataFlowNode)
{
    Collection<Class<?>> sourceDataClasses = getSourceProviderClasses(sourceDataFlowNode);
    Collection<Class<?>> sinkDataClasses   = getSinkConsumerClasses(sinkDataFlowNode);

    if ((sourceDataClasses != null) && (sinkDataClasses != null))
    {
        for (Class<?> sourceDataClass: sourceDataClasses)
            for (Class<?> sinkDataClass: sinkDataClasses)
                if (sourceDataClass.equals(sinkDataClass))
                    return sourceDataClass;

        return null;
    }
    else
        return null;
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:18,代码来源:JEEDataFlowNodeLinkLifeCycleControl.java

示例12: removeDataFlow

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public Boolean removeDataFlow(DataFlow dataFlow)
{
    if (logger.isLoggable(Level.FINE))
        logger.log(Level.FINE, "removeDataFlow: " + dataFlow.getName());

    if (dataFlow != null)
    {
        for (DataFlowNode dataFlowNode: dataFlow.getDataFlowNodeInventory().getDataFlowNodes())
            _dataFlowNodeLifeCycleControl.removeDataFlowNode(dataFlow, dataFlowNode.getName());

        _dataFlowUtils.remove(dataFlow.getName());

        return _dataFlowInventory.removeDataFlow(dataFlow);
    }
    else
        return false;
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:19,代码来源:JEEDataFlowLifeCycleControl.java

示例13: getPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getPropertyNames(Class<T> dataFlowNodeClass, Map<String, String> metaProperties)
    throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
        {
            List<String> propertyNames = new LinkedList<String>();

            propertyNames.add(AppendFileStoreCKANDataService.CKANROOTURL_PROPERTYNAME);
            propertyNames.add(AppendFileStoreCKANDataService.PACKAGEID_PROPERTYNAME);
            propertyNames.add(AppendFileStoreCKANDataService.APIKEY_PROPERTYNAME);

            return propertyNames;
        }
        else
            throw new MissingMetaPropertyException("No metaproperties expected", null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:CKAN_DataBroker_PlugIn,代码行数:23,代码来源:AppendFileStoreCKANDataFlowNodeFactory.java

示例14: getClasses

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public List<Class<? extends DataFlowNode>> getClasses()
{
    List<Class<? extends DataFlowNode>> classes = new LinkedList<Class<? extends DataFlowNode>>();

    classes.add(DataService.class);

    return classes;
}
 
开发者ID:arjuna-technologies,项目名称:Azure_DataBroker_PlugIn,代码行数:10,代码来源:AzureSQLServerDataFlowNodeFactory.java

示例15: getMetaPropertyNames

import com.arjuna.databroker.data.DataFlowNode; //导入依赖的package包/类
@Override
public <T extends DataFlowNode> List<String> getMetaPropertyNames(Class<T> dataFlowNodeClass)
    throws InvalidClassException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        List<String> metaPropertyNames = new LinkedList<String>();

        return metaPropertyNames;
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Azure_DataBroker_PlugIn,代码行数:14,代码来源:AzureSQLServerDataFlowNodeFactory.java


注:本文中的com.arjuna.databroker.data.DataFlowNode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。