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


Java InvalidPropertyException类代码示例

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


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

示例1: createDataFlowNode

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

示例2: createDataFlowJSON

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

示例3: createDataFlowNode

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

示例4: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的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, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.isAssignableFrom(SimpleDataSource.class))
        return (T) new SimpleDataSource(name, properties);
    else if (dataFlowNodeClass.isAssignableFrom(SimpleDataProcessor.class))
        return (T) new SimpleDataProcessor(name, properties);
    else if (dataFlowNodeClass.isAssignableFrom(SimpleDataSink.class))
        return (T) new SimpleDataSink(name, properties);
    else if (dataFlowNodeClass.isAssignableFrom(SimpleDataService.class))
        return (T) new SimpleDataService(name, properties);
    else if (dataFlowNodeClass.isAssignableFrom(SimpleDataStore.class))
        return (T) new SimpleDataStore(name, properties);
    else
        return null;
}
 
开发者ID:arjuna-technologies,项目名称:Simple_DataBroker_PlugIn,代码行数:19,代码来源:SimpleDataFlowNodeFactory.java

示例5: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
            return (T) new AzureSQLServerDataService(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Azure_DataBroker_PlugIn,代码行数:16,代码来源:AzureSQLServerDataFlowNodeFactory.java

示例6: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
            return (T) new AzureStorageDataService(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Azure_DataBroker_PlugIn,代码行数:16,代码来源:AzureStorageDataFlowNodeFactory.java

示例7: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataProcessor.class))
    {
        if (metaProperties.isEmpty())
            return (T) new XSSFStreamSheetToCSVDataProcessor(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Apache-POI_DataBroker_PlugIn,代码行数:16,代码来源:XSSFStreamSheetToCSVDataFlowNodeFactory.java

示例8: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataProcessor.class))
    {
        if (metaProperties.isEmpty())
            return (T) new XSSFSheetToCSVDataProcessor(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Apache-POI_DataBroker_PlugIn,代码行数:16,代码来源:XSSFSheetToCSVDataFlowNodeFactory.java

示例9: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataProcessor.class))
    {
        if (metaProperties.isEmpty())
            return (T) new XSSFRowToJSONDataProcessor(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:Apache-POI_DataBroker_PlugIn,代码行数:16,代码来源:XSSFRowToJSONDataFlowNodeFactory.java

示例10: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataSource.class))
    {
        if (metaProperties.isEmpty())
            return (T) new PollingFileChangeDataSource(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:16,代码来源:PollingFileChangeDataSourceFactory.java

示例11: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataSource.class))
    {
        if (metaProperties.isEmpty())
            return (T) new FileChangeDataSource(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:16,代码来源:FileChangeDataSourceFactory.java

示例12: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataProcessor.class))
    {
        if (metaProperties.isEmpty())
            return (T) new FileReaderDataProcessor(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:16,代码来源:FileReaderDataProcessorFactory.java

示例13: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
            return (T) new FileUpdateDataService(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:16,代码来源:FileUpdateDataServiceFactory.java

示例14: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataService.class))
    {
        if (metaProperties.isEmpty())
            return (T) new DirectoryUpdateDataService(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:16,代码来源:DirectoryUpdateDataServiceFactory.java

示例15: createDataFlowNode

import com.arjuna.databroker.data.InvalidPropertyException; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T extends DataFlowNode> T createDataFlowNode(String name, Class<T> dataFlowNodeClass, Map<String, String> metaProperties, Map<String, String> properties)
    throws InvalidClassException, InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
    if (dataFlowNodeClass.equals(DataSource.class))
    {
        if (metaProperties.isEmpty())
            return (T) new DirectoryChangeDataSource(name, properties);
        else
            throw new InvalidMetaPropertyException("No metaproperties expected", null, null);
    }
    else
        throw new InvalidClassException("Unsupported class", dataFlowNodeClass.getName());
}
 
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:16,代码来源:DirectoryChangeDataSourceFactory.java


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