- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.logicbus.backend.message.XMLMessage.getRoot()
方法的一些代码示例,展示了XMLMessage.getRoot()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLMessage.getRoot()
方法的具体详情如下:
包路径:com.logicbus.backend.message.XMLMessage
类名称:XMLMessage
方法名:getRoot
暂无
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage)ctx.asMessage(XMLMessage.class);
Element root = msg.getRoot();
Document doc = root.getOwnerDocument();
root.appendChild(doc.createTextNode("Ok,i am alive."));
return 0;
}
代码示例来源:origin: anylogic/alogic
public int actionProcess(Context ctx) {
XMLMessage msg = (XMLMessage)ctx.asMessage(XMLMessage.class);
Element root = msg.getRoot();
Document doc = root.getOwnerDocument();
root.appendChild(doc.createTextNode( m_welcome));
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage)ctx.asMessage(XMLMessage.class);
Element root = msg.getRoot();
Document doc = root.getOwnerDocument();
//创捷worker节点
Element eSettings = doc.createElement("settings");
{
Settings settings = Settings.get();
settings.report(eSettings);
root.appendChild(eSettings);
}
return 0;
}
代码示例来源:origin: anylogic/alogic
@Override
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
Element eleSource = doc.createElement("source");
FileSystemSource src = FileSystemSource.get();
src.report(eleSource);
root.appendChild(eleSource);
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
Element eleSource = doc.createElement("source");
DbcpSource src = DbcpSource.get();
src.report(eleSource);
root.appendChild(eleSource);
return 0;
}
protected int onJson(Context ctx){
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
Element eleSource = doc.createElement("source");
KValueSource src = KValueSource.get();
src.report(eleSource);
root.appendChild(eleSource);
return 0;
}
protected int onJson(Context ctx) {
代码示例来源:origin: anylogic/alogic
@Override
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
Element eleSource = doc.createElement("source");
CacheStoreFactory src = CacheStoreFactory.get();
src.report(eleSource);
root.appendChild(eleSource);
return 0;
}
代码示例来源:origin: anylogic/alogic
@Override
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
Element eleSource = doc.createElement("source");
BlobManagerFactory f = BlobManagerFactory.get();
f.report(eleSource);
root.appendChild(eleSource);
return 0;
}
@Override
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Handler<Fragment> handler = MetricsHandlerFactory.getClientInstance();
if (handler != null){
handler.resume();
Element root = msg.getRoot();
Document doc = root.getOwnerDocument();
Element logger = doc.createElement(handler.getHandlerType());
handler.report(logger);
root.appendChild(logger);
}
return 0;
}
代码示例来源:origin: anylogic/alogic
@Override
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage)ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element data = doc.createElement("data");
PrincipalManager sm = (PrincipalManager)SessionManagerFactory.getDefault();
Principal principal = sm.login(ctx);
principal.report(data);
msg.getRoot().appendChild(data);
return 0;
}
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
TaskCenter tc = TaskCenter.TheFactory.get();
if (tc == null){
throw new ServantException("core.e1003","Can not find a valid task center");
}
Document doc = msg.getDocument();
Element elem = doc.createElement("tc");
tc.report(elem);
msg.getRoot().appendChild(elem);
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Scheduler scheduler = SchedulerFactory.get();
if (scheduler == null){
throw new ServantException("core.e1003","Can not find a valid scheduler");
}
Document doc = msg.getDocument();
Element _scheduler = doc.createElement("scheduler");
scheduler.report(_scheduler);
msg.getRoot().appendChild(_scheduler);
return 0;
}
代码示例来源:origin: anylogic/alogic
@Override
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
FileSystemSource src = FileSystemSource.get();
Collection<VirtualFileSystem> vfss = src.current();
for (VirtualFileSystem vfs:vfss){
Element ele = doc.createElement("vfs");
vfs.report(ele);
root.appendChild(ele);
}
return 0;
}
代码示例来源:origin: anylogic/alogic
@Override
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
CacheStoreFactory src = CacheStoreFactory.get();
Collection<Store<CacheObject>> caches = src.current();
for (Store<CacheObject> cache:caches){
Element eleCache = doc.createElement("cache");
cache.report(eleCache);
root.appendChild(eleCache);
}
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Settings settings = Settings.get();
BizLogger bizLogger = (BizLogger) settings.get("bizLogger");
if (bizLogger != null){
bizLogger.pause();
Element root = msg.getRoot();
Document doc = root.getOwnerDocument();
Element logger = doc.createElement(bizLogger.getHandlerType());
bizLogger.report(logger);
root.appendChild(logger);
}
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Document doc = msg.getDocument();
Element root = msg.getRoot();
KValueSource src = KValueSource.get();
Collection<Schema> current = src.current();
for (Schema c:current){
Element elem = doc.createElement("schema");
c.report(elem);
root.appendChild(elem);
}
return 0;
}
protected int onJson(Context ctx){
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx) {
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Settings settings = Settings.get();
BizLogger bizLogger = (BizLogger) settings.get("bizLogger");
if (bizLogger != null){
bizLogger.resume();
Element root = msg.getRoot();
Document doc = root.getOwnerDocument();
Element logger = doc.createElement(bizLogger.getHandlerType());
bizLogger.report(logger);
root.appendChild(logger);
}
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Scheduler scheduler = SchedulerFactory.get();
if (scheduler == null){
throw new ServantException("core.e1003","Can not find a valid scheduler");
}
scheduler.reload();
Document doc = msg.getDocument();
Element _scheduler = doc.createElement("scheduler");
scheduler.report(_scheduler);
msg.getRoot().appendChild(_scheduler);
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Scheduler scheduler = SchedulerFactory.get();
if (scheduler == null){
throw new ServantException("core.e1003","Can not find a valid scheduler");
}
scheduler.resume();
Document doc = msg.getDocument();
Element _scheduler = doc.createElement("scheduler");
scheduler.report(_scheduler);
msg.getRoot().appendChild(_scheduler);
return 0;
}
代码示例来源:origin: anylogic/alogic
protected int onXml(Context ctx){
XMLMessage msg = (XMLMessage) ctx.asMessage(XMLMessage.class);
Scheduler scheduler = SchedulerFactory.get();
if (scheduler == null){
throw new ServantException("core.e1003","Can not find a valid scheduler");
}
scheduler.pause();
Document doc = msg.getDocument();
Element _scheduler = doc.createElement("scheduler");
scheduler.report(_scheduler);
msg.getRoot().appendChild(_scheduler);
return 0;
}
本文整理了Java中com.logicbus.backend.message.XMLMessage类的一些代码示例,展示了XMLMessage类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.logicbus.backend.message.XMLMessage.getDocument()方法的一些代码示例,展示了XMLMessage.getDocument()
本文整理了Java中com.logicbus.backend.message.XMLMessage.getRoot()方法的一些代码示例,展示了XMLMessage.getRoot()的具体用法。这些
我是一名优秀的程序员,十分优秀!