本文整理汇总了Java中com.arjuna.databroker.data.DataFlow类的典型用法代码示例。如果您正苦于以下问题:Java DataFlow类的具体用法?Java DataFlow怎么用?Java DataFlow使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DataFlow类属于com.arjuna.databroker.data包,在下文中一共展示了DataFlow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: recreateDataFlowNodeLink
import com.arjuna.databroker.data.DataFlow; //导入依赖的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;
}
}
示例2: removeDataFlow
import com.arjuna.databroker.data.DataFlow; //导入依赖的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;
}
示例3: removeDataFlowNodeJSON
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@DELETE
@Path("{dataflowid}/{dataflownodeid}")
@Produces(MediaType.APPLICATION_JSON)
public Boolean removeDataFlowNodeJSON(@PathParam("dataflowid") String dataFlowId, @PathParam("dataflownodeid") String dataflowNodeId)
{
logger.log(Level.FINE, "DataFlowWS.removeDataFlowNodeJSON: " + dataFlowId + ", " + dataflowNodeId);
if (_dataFlowInventory != null)
{
if (dataFlowId != null)
{
DataFlow dataFlow = _dataFlowInventory.getDataFlow(dataFlowId);
if ((dataFlow != null) && (dataFlow.getDataFlowNodeInventory() != null))
return _dataFlowNodeLifeCycleControl.removeDataFlowNode(dataFlow, dataflowNodeId);
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: listDataFlowNamesJSON
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@GET
@Produces(MediaType.APPLICATION_JSON)
public List<String> listDataFlowNamesJSON()
{
logger.log(Level.FINE, "DataFlowFactoryWS.listDataFlowNamesJSON");
if (_dataFlowInventory != null)
{
List<String> dataFlowNames = new LinkedList<String>();
for (DataFlow dataFlow: _dataFlowInventory.getDataFlows())
dataFlowNames.add(dataFlow.getName());
return dataFlowNames;
}
else
throw new WebApplicationException(HttpURLConnection.HTTP_INTERNAL_ERROR);
}
示例5: deployDataFlowNodeFactory
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
private <T extends DataFlowNodeFactory> boolean deployDataFlowNodeFactory(DataFlow dataFlow, List<Problem> problems, Class<T> dataFlowNodeFactoryClass, String name, Map<String, String> properties)
{
try
{
if (dataFlow != null)
{
T dataFlowNodeFactory = dataFlowNodeFactoryClass.getDeclaredConstructor(String.class, Map.class).newInstance(name, properties);
dataFlow.getDataFlowNodeFactoryInventory().addDataFlowNodeFactory(dataFlowNodeFactory);
}
return true;
}
catch (Throwable throwable)
{
logger.log(Level.WARNING, "Unable to create data flow factory", throwable);
problems.add(new Problem("Unable to create data flow factory: " + throwable));
return false;
}
}
示例6: recreateDataFlowNodeLink
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@Override
public <T> Boolean recreateDataFlowNodeLink(DataFlowNode sourceDataFlowNode, DataFlowNode sinkDataFlowNode, DataFlow dataFlow)
throws DataFlowNodeLinkManagementException, NoCompatableCommonDataTypeException, NoCompatableCommonDataTransportTypeException
{
logger.log(Level.WARNING, "TestJEEDataFlowNodeLinkLifeCycleControl.recreateDataFlowNodeLink");
throw new UnsupportedOperationException();
}
开发者ID:arjuna-technologies,项目名称:TestSupport_DataBroker_Utilities,代码行数:9,代码来源:TestJEEDataFlowNodeLinkLifeCycleControl.java
示例7: setDataFlow
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@Override
public void setDataFlow(DataFlow dataFlow)
{
logger.log(Level.FINE, "DummyDataService.setDataFlow");
_dataFlow = dataFlow;
}
示例8: createDataFlowNodeLink
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@Override
public <T> Boolean createDataFlowNodeLink(DataFlowNode sourceDataFlowNode, DataFlowNode sinkDataFlowNode, DataFlow dataFlow)
throws DataFlowNodeLinkManagementException, NoCompatableCommonDataTypeException, NoCompatableCommonDataTransportTypeException
{
logger.log(Level.WARNING, "TestJEEDataFlowNodeLinkLifeCycleControl.createDataFlowNodeLink");
throw new UnsupportedOperationException();
}
开发者ID:arjuna-technologies,项目名称:TestSupport_DataBroker_Utilities,代码行数:9,代码来源:TestJEEDataFlowNodeLinkLifeCycleControl.java
示例9: injectLoggers
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
private void injectLoggers(DataFlowNode dataFlowNode, DataFlow dataFlow)
{
Class<?> dataFlowNodeClass = dataFlowNode.getClass();
logger.log(Level.FINE, "injectLoggers dataFlowNode = \"" + dataFlowNode.getName() + "\", class = \"" + dataFlowNodeClass + "\"");
while (dataFlowNodeClass != null)
{
for (Field field: dataFlowNodeClass.getDeclaredFields())
{
if (field.isAnnotationPresent(LoggerInjection.class))
{
try
{
logger.log(Level.FINE, "LoggerInjection \"" + field.getName() + "\", \"" + field.getType() + "\"");
LoggerInjection loggerInjection = field.getAnnotation(LoggerInjection.class);
boolean accessable = field.isAccessible();
field.setAccessible(true);
if (field.getType().isAssignableFrom(Logger.class))
field.set(dataFlowNode, Logger.getLogger("injection.logger.test." + loggerInjection.type()));
else
logger.log(Level.WARNING, "Logger injection failed, unsupported type: " + field.getType());
field.setAccessible(accessable);
}
catch (IllegalAccessException illegalAccessException)
{
logger.log(Level.WARNING, "Logger injection failed of \"" + field.getName() + "\": " + illegalAccessException);
}
catch (Throwable throwable)
{
logger.log(Level.WARNING, "Logger injection failed of \"" + field.getName(), throwable);
}
}
}
dataFlowNodeClass = dataFlowNodeClass.getSuperclass();
}
}
开发者ID:arjuna-technologies,项目名称:TestSupport_DataBroker_Utilities,代码行数:39,代码来源:TestJEEDataFlowNodeLifeCycleControl.java
示例10: getDataFlow
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@Override
public DataFlow getDataFlow()
{
logger.log(Level.FINE, "DummyDataSource.getDataFlow");
return _dataFlow;
}
示例11: getDataFlow
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@Override
public DataFlow getDataFlow()
{
logger.log(Level.FINE, "DummyDataStore.getDataFlow");
return _dataFlow;
}
示例12: createDataFlow
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@Override
public DataFlow createDataFlow(String name, Map<String, String> metaProperties, Map<String, String> properties)
throws InvalidNameException, InvalidMetaPropertyException, MissingMetaPropertyException, InvalidPropertyException, MissingPropertyException
{
logger.log(Level.FINE, "GlobalDataFlowFactory.createDataFlow: " + name + ", " + metaProperties + ", " + properties);
if ((metaProperties.size() == 1) && STANDARD_TYPE_METAPROPERYVALUE.equals(metaProperties.get(TYPE_METAPROPERYNAME)))
return new StandardDataFlow(name, properties);
else if ((metaProperties.size() == 1) && DURABLE_TYPE_METAPROPERYVALUE.equals(metaProperties.get(TYPE_METAPROPERYNAME)))
return new DurableDataFlow(name, properties);
else
throw new InvalidMetaPropertyException("Expected value of 'Type' Standard' or 'Durable'", TYPE_METAPROPERYNAME, metaProperties.get(TYPE_METAPROPERYNAME));
}
示例13: getDataFlow
import com.arjuna.databroker.data.DataFlow; //导入依赖的package包/类
@Override
public DataFlow getDataFlow()
{
logger.log(Level.FINE, "DummyDataService.getDataFlow");
return _dataFlow;
}
示例14: 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);
}
示例15: 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);
}