本文整理汇总了Java中com.arjuna.databroker.data.DataFlow.getDataFlowNodeFactoryInventory方法的典型用法代码示例。如果您正苦于以下问题:Java DataFlow.getDataFlowNodeFactoryInventory方法的具体用法?Java DataFlow.getDataFlowNodeFactoryInventory怎么用?Java DataFlow.getDataFlowNodeFactoryInventory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.arjuna.databroker.data.DataFlow
的用法示例。
在下文中一共展示了DataFlow.getDataFlowNodeFactoryInventory方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeDataFlowNodeFactoryJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@DELETE
@Path("{dataflowid}/_factories")
@Produces(MediaType.APPLICATION_JSON)
public Boolean removeDataFlowNodeFactoryJSON(@PathParam("dataflowid") String dataFlowId, @QueryParam("dataflownodefactoryname") String dataFlowNodeFactoryName)
{
logger.log(Level.FINE, "DataFlowWS.removeDataFlowNodeFactoryJSON: " + dataFlowId + ", " + dataFlowNodeFactoryName);
if (_dataFlowInventory != null)
{
if ((dataFlowId != null) && (dataFlowNodeFactoryName != null))
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
return dataFlow.getDataFlowNodeFactoryInventory().removeDataFlowNodeFactory(dataFlowNodeFactoryName);
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例2: getDataFlowNodeClassNamesJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@GET
@Path("{dataflowid}/_dataflownodeclassnames")
@Produces(MediaType.APPLICATION_JSON)
public FactoryNamesDTO getDataFlowNodeClassNamesJSON(@PathParam("dataflowid") String dataFlowId)
{
logger.log(Level.FINE, "DataFlowWS.getDataFlowNodeClassNamesJSON: " + dataFlowId);
if (_dataFlowInventory != null)
{
if (dataFlowId != null)
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
{
List<String> factoryNames = new LinkedList<String>();
for (DataFlowNodeFactory dataFlowNodeFactory: dataFlow.getDataFlowNodeFactoryInventory().getDataFlowNodeFactorys())
factoryNames.add(dataFlowNodeFactory.getName());
return new FactoryNamesDTO(factoryNames);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例3: getFactoryNamesJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@GET
@Path("{dataflowid}/_factorynames")
@Produces(MediaType.APPLICATION_JSON)
public FactoryNamesDTO getFactoryNamesJSON(@PathParam("dataflowid") String dataFlowId, @QueryParam("dataflownodeclassname") String dataFlowNodeClassName)
{
logger.log(Level.FINE, "DataFlowWS.getFactoryNamesJSON: " + dataFlowId + ", " + dataFlowNodeClassName);
if (_dataFlowInventory != null)
{
if (dataFlowId != null)
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
{
List<String> factoryNames = new LinkedList<String>();
Class<? extends DataFlowNode> dataFlowNodeClass = Utils.stringToClass(dataFlowNodeClassName);
if (dataFlowNodeClass != null)
for (DataFlowNodeFactory dataFlowNodeFactory: dataFlow.getDataFlowNodeFactoryInventory().getDataFlowNodeFactorys())
if (dataFlowNodeFactory.getClasses().contains(dataFlowNodeClass))
factoryNames.add(dataFlowNodeFactory.getName());
return new FactoryNamesDTO(factoryNames);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例4: getMetaPropertyNamesJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@GET
@Path("{dataflowid}/_metapropertynames")
@Produces(MediaType.APPLICATION_JSON)
public PropertyNamesDTO getMetaPropertyNamesJSON(@PathParam("dataflowid") String dataFlowId, @QueryParam("dataflownodeclassname") String dataFlowNodeClassName, @QueryParam("factoryname") String factoryName)
throws InvalidClassException
{
logger.log(Level.FINE, "DataFlowWS.getMetaPropertyNamesJSON: " + dataFlowId + ", " + dataFlowNodeClassName + ", " + factoryName);
if (_dataFlowInventory != null)
{
if (dataFlowId != null)
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
{
DataFlowNodeFactory dataFlowNodeFactory = dataFlow.getDataFlowNodeFactoryInventory().getDataFlowNodeFactory(factoryName);
if (dataFlowNodeFactory != null)
{
List<String> metaPropertyNames = dataFlowNodeFactory.getMetaPropertyNames(Utils.stringToClass(dataFlowNodeClassName));
return new PropertyNamesDTO(metaPropertyNames);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例5: getPropertyNamesJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@POST
@Path("{dataflowid}/_propertynames")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public PropertyNamesDTO getPropertyNamesJSON(@PathParam("dataflowid") String dataFlowId, @QueryParam("dataflownodeclassname") String dataFlowNodeClassName, @QueryParam("factoryname") String factoryName, PropertiesDTO metaProperties)
throws InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException
{
logger.log(Level.FINE, "DataFlowWS.getPropertyNamesJSON: " + dataFlowId + ", " + dataFlowNodeClassName + ", " + factoryName + ", " + metaProperties);
if (_dataFlowInventory != null)
{
if (dataFlowId != null)
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
{
DataFlowNodeFactory dataFlowNodeFactory = dataFlow.getDataFlowNodeFactoryInventory().getDataFlowNodeFactory(factoryName);
if (dataFlowNodeFactory != null)
{
List<String> propertyNames = dataFlowNodeFactory.getPropertyNames(Utils.stringToClass(dataFlowNodeClassName), metaProperties.getProperties());
return new PropertyNamesDTO(propertyNames);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例6: addDataFlowNodeFactoryJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@POST
@Path("{dataflowid}/_factories")
@Produces(MediaType.APPLICATION_JSON)
public Boolean addDataFlowNodeFactoryJSON(@PathParam("dataflowid") String dataFlowId, @QueryParam("dataflownodefactoryname") String dataFlowNodeFactoryName)
{
logger.log(Level.FINE, "DataFlowWS.addDataFlowNodeFactoryJSON: " + dataFlowId + ", " + dataFlowNodeFactoryName);
if (_dataFlowInventory != null)
{
if ((dataFlowId != null) && (dataFlowNodeFactoryName != null))
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
{
DataFlowNodeFactory dataFlowNodeFactory = _dataFlowNodeFactoryInventory.getDataFlowNodeFactory(dataFlowNodeFactoryName);
if (dataFlowNodeFactory != null)
{
dataFlow.getDataFlowNodeFactoryInventory().addDataFlowNodeFactory(dataFlowNodeFactory);
return true;
}
else
return false;
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例7: getFactoryInfoJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@GET
@Path("{dataflowid}/_factoryinfo")
@Produces(MediaType.APPLICATION_JSON)
public DataFlowNodeFactoryDTO getFactoryInfoJSON(@PathParam("dataflowid") String dataFlowId, @QueryParam("factoryname") String factoryName)
{
logger.log(Level.FINE, "DataFlowWS.getFactoryInfoJSON");
if (_dataFlowInventory != null)
{
if (dataFlowId != null)
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
{
DataFlowNodeFactory dataFlowNodeFactory = dataFlow.getDataFlowNodeFactoryInventory().getDataFlowNodeFactory(factoryName);
if (dataFlowNodeFactory != null)
{
try
{
List<Class<? extends DataFlowNode>> dataFlowNodeFactoryClasses = dataFlowNodeFactory.getClasses();
Boolean dataSourceFactory = dataFlowNodeFactoryClasses.contains(DataSource.class);
Boolean dataSinkFactory = dataFlowNodeFactoryClasses.contains(DataSink.class);;
Boolean dataProcessorFactory = dataFlowNodeFactoryClasses.contains(DataProcessor.class);;
Boolean dataServiceFactory = dataFlowNodeFactoryClasses.contains(DataService.class);;
Boolean dataStoreFactory = dataFlowNodeFactoryClasses.contains(DataStore.class);;
return new DataFlowNodeFactoryDTO(dataFlowNodeFactory.getName(), dataFlowNodeFactory.getProperties(), dataSourceFactory, dataSinkFactory, dataProcessorFactory, dataServiceFactory, dataStoreFactory);
}
catch (Throwable throwable)
{
logger.log(Level.WARNING, "Problem while obtaining meta property names from data flow node factory: ", throwable);
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例8: createDataFlowNodeJSON
import com.arjuna.databroker.data.DataFlow; //导入方法依赖的package包/类
@POST
@Path("{dataflowid}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public String createDataFlowNodeJSON(@PathParam("dataflowid") String dataFlowId, @QueryParam("dataflownodeclassname") String dataFlowNodeClassName, @QueryParam("factoryname") String factoryName, @QueryParam("name") String name, CreatePropertiesDTO createProperties)
throws InvalidNameException, InvalidClassException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
logger.log(Level.FINE, "DataFlowWS.createDataFlowNodeJSON: " + dataFlowId + ", " + dataFlowNodeClassName + ", " + factoryName + ", " + name + ", " + createProperties);
if (_dataFlowInventory != null)
{
if (dataFlowId != null)
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeFactoryInventory() != null))
{
DataFlowNodeFactory dataFlowNodeFactory = dataFlow.getDataFlowNodeFactoryInventory().getDataFlowNodeFactory(factoryName);
if (dataFlowNodeFactory != null)
{
Class<? extends DataFlowNode> dataFlowNodeClass = Utils.stringToClass(dataFlowNodeClassName);
if (dataFlowNodeClass != null)
{
DataFlowNode dataFlowNode = _dataFlowNodeLifeCycleControl.createDataFlowNode(dataFlow, dataFlowNodeFactory, name, dataFlowNodeClass, createProperties.getMetaProperties(), createProperties.getProperties());
return dataFlowNode.getName();
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_NOT_FOUND);
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}