giovedì 15 gennaio 2015

Wildfly 8 - Query My MBean from bash console using twiddle


[root@CloudServer1 ~]# JBOSS_HOME=/opt/wildfly-8.1.0.Final/ /opt/twiddle-standalone/bin/twiddle.sh -v -s service:jmx:http-remoting-jmx://127.0.0.1:9990 get com.azienda:Name=Statistics,Type=com.azienda.progetto.jmx.Statistics
11:43:11,851 INFO  [Twiddle] replacing JMX service url (service:jmx:rmi:///jndi/rmi://localhost:1090/jmxrmi) with service:jmx:http-remoting-jmx://127.0.0.1:9990
11:43:11,942 INFO  [xnio] XNIO version 3.2.2.Final
11:43:12,076 INFO  [nio] XNIO NIO Implementation Version 3.2.2.Final
11:43:12,207 INFO  [remoting] JBoss Remoting version 4.0.3.Final
CountDevice=24
CountDeviceOnline=15
CountApp={iOS=27, WindowsPhone=1, Android=16}
[root@CloudServer1 ~]#

mercoledì 9 ottobre 2013

Empty e4 RCP Application with livemodel ready

This is the content of Application.e4xml file that represents an empty e4 application with the livemodel tool ready to show when pressed "ALT+F9":

 <application:application elementid="backoffice-rcp.bundle.application" xmi:id="_KQrIEDEaEeOrvaIJ_du62A" xmi:version="2.0" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  
  <children elementid="backoffice-rcp.bundle.trimmedwindow.0" xmi:id="_PM_UQDEeEeOm9_xoDmNMiQ" xsi:type="basic:TrimmedWindow">  
  <handlers command="_spDM0DEiEeOm9_xoDmNMiQ" contributionuri="bundleclass://org.eclipse.e4.tools.emf.liveeditor/org.eclipse.e4.tools.emf.liveeditor.OpenLiveDialogHandler" elementid="e4.tooling.livemodel.handler" xmi:id="_j2GJcDEiEeOm9_xoDmNMiQ">  
  <bindingtables bindingcontext="_thbUYDEkEeOm9_xoDmNMiQ" contributoruri="platform:/plugin/org.eclipse.platform" elementid="backoffice-rcp.bundle.bindingtable.0" xmi:id="_QHHA4DEjEeOm9_xoDmNMiQ">  
   <bindings command="_spDM0DEiEeOm9_xoDmNMiQ" elementid="e4.tooling.livemodel.binding" keysequence="ALT+F9" xmi:id="_Q4ezcDEjEeOm9_xoDmNMiQ">  
  </bindings></bindingtables>  
  <rootcontext description="Either a dialog or a window is open" elementid="backoffice-rcp.bundle.bindingcontext.0" name="In Dialogs and Windows" xmi:id="_thbUYDEkEeOm9_xoDmNMiQ">  
  <commands commandname="Show running app model" description="Show the running application model" elementid="e4.tooling.livemodel" xmi:id="_spDM0DEiEeOm9_xoDmNMiQ">  
  <addons contributionuri="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon" elementid="org.eclipse.e4.core.commands.service" xmi:id="_KQrIETEaEeOrvaIJ_du62A">  
  <addons contributionuri="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon" elementid="org.eclipse.e4.ui.contexts.service" xmi:id="_KQrIEjEaEeOrvaIJ_du62A">  
  <addons contributionuri="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon" elementid="org.eclipse.e4.ui.bindings.service" xmi:id="_KQrIEzEaEeOrvaIJ_du62A">  
  <addons contributionuri="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon" elementid="org.eclipse.e4.ui.workbench.commands.model" xmi:id="_KQrIFDEaEeOrvaIJ_du62A">  
  <addons contributionuri="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon" elementid="org.eclipse.e4.ui.workbench.contexts.model" xmi:id="_KQrIFTEaEeOrvaIJ_du62A">  
  <addons contributionuri="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon" elementid="org.eclipse.e4.ui.workbench.bindings.model" xmi:id="_KQrIFjEaEeOrvaIJ_du62A">  
  <addons contributionuri="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon" elementid="org.eclipse.e4.ui.workbench.handler.model" xmi:id="_KQrIFzEaEeOrvaIJ_du62A">  
 </addons></addons></addons></addons></addons></addons></addons></commands></rootcontext></handlers></children></application:application>