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


Java InvalidMetaPropertyException类代码示例

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


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

示例1: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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.InvalidMetaPropertyException; //导入依赖的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.InvalidMetaPropertyException; //导入依赖的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,项目名称:Apache-POI_DataBroker_PlugIn,代码行数:19,代码来源:XSSFStreamSheetToCSVDataFlowNodeFactory.java

示例4: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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(PollingFileChangeDataSource.FILENAME_PROPERYNAME);
            propertyNames.add(PollingFileChangeDataSource.POLLINTERVAL_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,代码行数:22,代码来源:PollingFileChangeDataSourceFactory.java

示例5: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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(FileChangeDataSource.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,代码来源:FileChangeDataSourceFactory.java

示例6: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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.InvalidMetaPropertyException; //导入依赖的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(DirectoryUpdateDataService.DIRECTORYNAME_PROPERYNAME);
            propertyNames.add(DirectoryUpdateDataService.FILENAMEPREFIX_PROPERYNAME);
            propertyNames.add(DirectoryUpdateDataService.FILENAMEPOSTFIX_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,代码行数:23,代码来源:DirectoryUpdateDataServiceFactory.java

示例8: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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

示例9: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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(XMLMonitorDataService.XMLMONITORID_PROPERTYNAME);

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

示例10: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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(PullJSONWebServiceDataSource.SERVICEURL_PROPERTYNAME);
            propertyNames.add(PullJSONWebServiceDataSource.SCHEDULEDELAY_PROPERTYNAME);
            propertyNames.add(PullJSONWebServiceDataSource.SCHEDULEPERIOD_PROPERTYNAME);
            propertyNames.add(PullJSONWebServiceDataSource.USERNAME_PROPERTYNAME);
            propertyNames.add(PullJSONWebServiceDataSource.PASSWORD_PROPERTYNAME);

            return propertyNames;
        }
        else
            throw new InvalidMetaPropertyException("Unexpecting meta property", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:WebService_DataBroker_PlugIn,代码行数:25,代码来源:JSONWebServiceDataFlowNodeFactory.java

示例11: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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

示例12: createDataFlowNode

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
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(PostgreSQLDataStore.class))
    {
        if (metaProperties.isEmpty())
        {
            if (! properties.containsKey(PostgreSQLDataStore.DATABASE_METADATAID_PROPERTYNAME))
                throw new MissingPropertyException("Properties expected", PostgreSQLDataStore.DATABASE_METADATAID_PROPERTYNAME);
            else if (! properties.containsKey(PostgreSQLDataStore.DATABASE_METADATAPATH_PROPERTYNAME))
                throw new MissingPropertyException("Properties expected", PostgreSQLDataStore.DATABASE_METADATAID_PROPERTYNAME);
            else if (properties.size() != 2)
                throw new InvalidPropertyException("Unexpected properties", null, null);

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

示例13: createDataFlowJSON

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的package包/类
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public String createDataFlowJSON(@QueryParam("name") String name, CreatePropertiesDTO createProperties)
    throws InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    logger.log(Level.FINE, "DataFlowFactoryWS.createDataFlowJSON");

    if ((_dataFlowFactory != null) && (_dataFlowInventory != null))
    {
        if (name != null)
        {
            DataFlow dataFlow = _dataFlowLifeCycleControl.createDataFlow(name, createProperties.getMetaProperties(), createProperties.getProperties());

            return dataFlow.getName();
        }
        else
            throw new WebApplicationException(422); // Unprocessable Entity Error Code
    }
    else
        throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
 
开发者ID:RISBIC,项目名称:DataBroker,代码行数:23,代码来源:DataFlowFactoryWS.java

示例14: createDataFlowNode

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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

示例15: getPropertyNames

import com.arjuna.databroker.data.InvalidMetaPropertyException; //导入依赖的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,代码来源:FileStoreCKANDataFlowNodeFactory.java


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