Search in sources :

Example 1 with JmxClient

use of com.j256.simplejmx.client.JmxClient in project Entitas-Java by Rubentxu.

the class VisualDebbuger method start.

@Override
public void start(Stage primaryStage) throws Exception {
    FXMLLoader loader = new FXMLLoader(getClass().getClassLoader().getResource("VisualDebbuger.fxml"));
    Parent root = loader.load();
    primaryStage.setTitle("CodeGenerator");
    primaryStage.setScene(new Scene(root, 560, 575));
    primaryStage.setResizable(false);
    primaryStage.show();
    stage = primaryStage;
    client = new JmxClient("localhost", 1313);
    Set<ObjectName> names = client.getBeanNames();
    beanNames.setText(names.stream().map(n -> n.getKeyPropertyListString()).reduce(String::concat).get());
//        MBeanAttributeInfo[] attributeInfos =
//                client.getAttributesInfo(objectName);
//        MBeanOperationInfo[] operationInfos =
//                client.getOperationsInfo(objectName);
}
Also used : Scene(javafx.scene.Scene) Initializable(javafx.fxml.Initializable) Properties(java.util.Properties) javafx.scene.control(javafx.scene.control) URL(java.net.URL) MBeanOperationInfo(javax.management.MBeanOperationInfo) MBeanAttributeInfo(javax.management.MBeanAttributeInfo) Set(java.util.Set) JmxClient(com.j256.simplejmx.client.JmxClient) ObjectName(javax.management.ObjectName) Application(javafx.application.Application) FXML(javafx.fxml.FXML) Parent(javafx.scene.Parent) ActionEvent(javafx.event.ActionEvent) Stage(javafx.stage.Stage) java.io(java.io) ResourceBundle(java.util.ResourceBundle) FXMLLoader(javafx.fxml.FXMLLoader) DirectoryChooser(javafx.stage.DirectoryChooser) Parent(javafx.scene.Parent) JmxClient(com.j256.simplejmx.client.JmxClient) Scene(javafx.scene.Scene) FXMLLoader(javafx.fxml.FXMLLoader) ObjectName(javax.management.ObjectName)

Aggregations

JmxClient (com.j256.simplejmx.client.JmxClient)1 java.io (java.io)1 URL (java.net.URL)1 Properties (java.util.Properties)1 ResourceBundle (java.util.ResourceBundle)1 Set (java.util.Set)1 Application (javafx.application.Application)1 ActionEvent (javafx.event.ActionEvent)1 FXML (javafx.fxml.FXML)1 FXMLLoader (javafx.fxml.FXMLLoader)1 Initializable (javafx.fxml.Initializable)1 Parent (javafx.scene.Parent)1 Scene (javafx.scene.Scene)1 javafx.scene.control (javafx.scene.control)1 DirectoryChooser (javafx.stage.DirectoryChooser)1 Stage (javafx.stage.Stage)1 MBeanAttributeInfo (javax.management.MBeanAttributeInfo)1 MBeanOperationInfo (javax.management.MBeanOperationInfo)1 ObjectName (javax.management.ObjectName)1