RADE new features via JAVA

Slides:



Advertisements
Similar presentations
METHOD OVERRIDING Sub class can override the methods defined by the super class. Overridden Methods in the sub classes should have same name, same signature.
Advertisements

Classes  All code in a Java program is part of a class  A class has two purposes  Provide functions to do work for the programmer  Represent data.
CPSC150 Click to edit Master title style Click to edit Master text styles Second level Third level Fourth level Fifth level 1 CPSC150 Exceptions When things.
16-Aug-15 Java Puzzlers From the book Java Puzzlers by Joshua Bloch and Neal Gafter.
Using java’s Scanner class To read from input and from a file. (horstmann ch04 and ch 17)
Page AirVantage M2M Cloud Data Push Introduction 1.
CS 584 Lecture 18 l Assignment » Glenda assignment extended to the Java RMI Deadline » No Java RMI Assignment l Test » Friday, Saturday, Monday.
15 - RMI. Java RMI Architecture Example Deployment RMI is a part of J2SE (standard edition), but is used by J2EE) A J2EE server is not nessesary for using.
CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback.
1 Recitation 8. 2 Outline Goals of this recitation: 1.Learn about loading files 2.Learn about command line arguments 3.Review of Exceptions.
© Amir Kirsh Java Networking Written by Amir Kirsh.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
RECITATION 4. Classes public class Student { } Data Members public class Student { private String name; public String id; }
1 Java Swing Application Flow By mr. Hanley 11/7/2005.
Inheritance (Part 4) Polymorphism and Abstract Classes 1.
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
Classes. Student class We are tasked with creating a class for objects that store data about students. We first want to consider what is needed for the.
Java methods Methods break down large problems into smaller ones Your program may call the same method many times saves writing and maintaining same code.
Building java programs, chapter 3 Parameters, Methods and Objects.
Copyright 2006 by Pearson Education 1 Building Java Programs Chapter 8: Classes and Objects.
Files Review For output to a file: –FileOutputStream variable initialized to filename (String) and append/not append (boolean) –PrintWriter variable initialized.
1 Advanced Programming Examples Output. Show the exact output produced by the following code segment. char[,] pic = new char[6,6]; for (int i = 0; i
Classes - Intermediate
Methods.
Methods What is a method? Main Method the main method is where a stand alone Java program normally begins execution common compile error, trying.
Netprog Java RMI1 Remote Method Invocation.
SUMMARY OF CHAPTER 2: JAVA FUNDAMENTS STARTING OUT WITH JAVA: OBJECTS Parts of a Java Program.
RMI1 Remote Method Invocation Adapted from “Core Java 2” by Cay Horstmann.
Programming in Java Transitioning from Alice. Becomes not myFirstMethod but …. public static void main (String[] arg) { // code for testing classes goes.
1 Assignment 2: AspectJ. 2 The simple language Tiny program y=2; x=2+y*3; z=x+y*2; –A program is a sequence of assignments; –Expressions on the right.
Methods Matthew Harrison. Overview ● There are five main aspects of methods... ● 1) Modifiers – public, private ● 2) Method Name ● 3) Parameters ● 4)
Java 13. Networking public class SumTest {
January 26, Ann Wollrath Copyright 1999 Sun Microsystems, Inc., all rights reserved. Java ™ RMI Overview Ann Wollrath Senior Staff Engineer Sun Microsystems,
Exceptions throw new RuntimeException(“bad things happened”); The above line is the simplest possible way of throwing an exception. In Java, exceptions.
Chapter 10 – Exception Handling
USING ECLIPSE TO CREATE HELLO WORLD
Exceptions, Interfaces & Generics
Maha AlSaif Maryam AlQattan
Code Magnets problem for wk5
Accessing Files in Java
Testing and Exceptions
CS Week 10 Jim Williams, PhD.
Java 24th sep /19/2018 CFILT.
Simple Java I/O part I Using scanner 8-Nov-18.
Handling Exceptions.
Functions Used to write code only once Can use parameters.
Writing Methods.
Computing Adjusted Quiz Total Score
COMPUTER 2430 Object Oriented Programming and Data Structures I
Tonga Institute of Higher Education
Exception Handling CSCI293 - C# October 3, 2005.
Exercise 11.1 Write a code fragment that performs the same function as the statement below without using the crash method Toolbox.crash(amount < 0,
Object-Oriented Programming
Java Lesson 36 Mr. Kalmes.
Code Animation Examples
Exception Handling in Java
class PrintOnetoTen { public static void main(String args[]) {
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
Module 2 - Part 1 Variables, Assignment, and Data Types
Sadalage & Fowler (Amazon)
Module 2 Variables, Assignment, and Data Types
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
slides created by Ethan Apter
CS 584 Lecture 18 Assignment Glenda assignment extended to the Java RMI Deadline No Java RMI Assignment Test Friday, Saturday, Monday.
Java Remote Method Invocation
reading: 8.6 self-check: #18, exercises: #9, 14
Methods/Functions.
Exception Objects An exception is an abnormal condition that arises in a code sequence at rum time. Exception is a way of signaling serious problem.
Basic Exception Handling
Java Chapter 5 (Estifanos Tilahun Mihret--Tech with Estif)
Presentation transcript:

RADE new features via JAVA Vitaly Shaipov EN/ICE/MTA

RBAC tool Subscribing to the timing events Controlling alarms by sending alarm events Providing any java code on the client side

RBAC based on java

Subscribing to the timing events RBAC tool Subscribing to the timing events Controlling alarms by sending alarm events Providing any java code on the client side

Subscribing to the timing events

Controlling alarms by sending alarm events RBAC tool Subscribing to the timing events Controlling alarms by sending alarm events Providing any java code on the client side

Controlling alarms by sending alarms events

Providing any java code on the client side RBAC tool Subscribing to the timing events Controlling alarms by sending alarm events Providing any java code on the client side

Providing any java code on the client side

JAPC GET example

import cern. japc. AcquiredParameterValue; import cern. japc import cern.japc.AcquiredParameterValue; import cern.japc.Parameter; import cern.japc.ParameterException; import cern.japc.Selector; import cern.japc.factory.ParameterFactory; import cern.japc.factory.ParameterValueFactory; public class JapcGet { private String japcGet(String url, String selector) throws Exception{ Parameter p; try { p = ParameterFactory.newInstance().newParameter(url); Selector sl = ParameterValueFactory.newSelector(selector); AcquiredParameterValue apv = p.getValue(sl); return apv.toString(); } catch (ParameterException e) { e.printStackTrace(); throw new Exception(); } } public static void main(String[] args) throws Exception{ String url = args[0]; String selector = args[1]; JapcGet japcGet = new JapcGet(); //printing output to the console System.out.println(japcGet.japcGet(url, selector)); } }

Questions ?