Java-based Archive Viewer over SOAP

A Java-based EPICS Archive Viewer
with SOAP Interface for Data Retrieval
Kazuro Furukawa, Masanori Satoh,Igor Mejuev, Keisuke Nakao
Electron/Positron Linac at KEK<URL:http://www-linac.kek.jp/>

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

In advanced physics experiment systems like a large particle
accelerators, it is important that physicists can easily analyze device
behavior based on archived data to achieve an optimal result of theexperiment. Standard network and software technologies such as
Web, XML, Java, etc would be employed to enable a wider range ofenvironment for analysis tools. To this end a Java tool for displaying
EPICS ChannelArchiver has been developed for the KEKB injector
linac. The EPICS Archive Viewer is implemented as a pure Java code
which utilizes a high-quality commercial software package for charting(JClass Chart). The viewer retrieves archive data by interfacing withan extensible set of "archive data providers". Current implementation
includes providers for SOAP and CGI protocols and also allows
support for custom, "in-house" archive data providers (e.g. a provider
that relies on CORBA/IIOP). The server-side of SOAP archive dataprovider is represented by a backend service object deployed within
the AXIS/Tomcat container. The implementation of all viewer modules
is highly portable and offers a potential for data sharing amongorganizations via the emerging Web Services standards.
K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

Introduction
u Experiment Efficiency for B-Factory
KEKB Electron Positron Asymmetric Collider＝⇒ Stable Operation of Linac
Further Improvementwith 2-bunch and/or Continuous Injectionu Analysis of Archived Data
Very Important But...
There are Several Different Archives, Viewers
Designed to be Optimal for Specific Needs
Management is a Nightmare

u EPICS Archiver Introduction
EPICS Gateway from Linac Controls to Channel Access
There are Several Different Tools Available

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAPWeb Services
u Need for Data Exchange (Archive Viewing) over Firewallsu http, XML (and Java) are Preferable over Internet
u Well-defined by Sun and others
Java Community Process, Java Web Services Developer Packu Sun releases Reference Implementation JAX-RPC RIu Multi-Platform (including Microsoft) and Multi-Language
u Open Source Implementationu AXIS of Apache Software Foundationu Freely Distributed
u Actively being Developedu Employed by Several Vender Implementations

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAPViewer Implementationu Pure Java Application
Can be Executed as Applet in a Browser with Java Plug-in

u User Interface Implemented with Java Swingu Need for Good Plotting Package
Chose Commercial Component JClass JChart
Has Many Features for our Needs
One License Covers any Number of Clientsu Can Connect to Different Archive Data Providers
SOAP Data Provider
CGI Data Provider (EPICS Archiver CGI)
Using Class name and Location (URL) as Parameters
K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

Server Implementationu Apache Server and CGI/Perl (CGI Provider)
CGI Script Utilizes CASI/Perlto call libIO to access Archived Datau SOAP Server (SOAP Provider)
Apache AXIS/Tomcat and Java
Server-side Component Utilizes JNI Wrapperfor libIO to access Archived Datau Other Provider
Can be Implemented
Accepting Class Name and URL
Such as CORBA/IIOP Provider...
K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

Archiver Implementationu EPICS Channel Archiver Engine
As Distributed in EPICS
u Channel Access (CA) Server
Built with EPICS 3.14 iocsh
Old CA Server was Built with EPICS 3.12 PCAS
Much Easier with iocsh
Implemented Device Supports
to Access Linac Control Data
via RPC/Cache Mechanism
u More Data will be Added
Channel Names are Modified
to Accomodate both New and Old CA Servers
K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

OutlineK. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

SOAP Requestu Easy to Debug with ASCII Messages

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

SOAP
Reply

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

Linac Control System
Touch Panel Interface

X-Window Interface for Operation

EPICS Gateway to KEKB-Ring

MS-Windows Interface

Central Network (FDDI, Ethernet)
Device Manager

Main Computer Systems (Unix)

Multi-LayerServer Software

Equipment Level Network (Optical Ethernet)

VMEs (~30)

PLCs (~150)

CAMACs (~15)

VXIs (~30)

PC / GPIB / RS232C

Beam Monitor
Timingetc.

RFMagnet
VacuumTimingRF Monitor

Gun
Beam Monitor
othersu Red Box is the Gateway from Linac to EPICS
This time EPICS 3.14 iocsh was employed
K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

u ArchiveViewer
Tool
withJChart

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

u Many Different Plot Attributes can be Modified
in the Viewer Tool
Several Mouse Controls are Available like Zooming...

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

Alternative Scenariosu How toSupport
Realtime
Updates

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

AlternativeScenariosu How to
SupportRealtime
Updates

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAPConclusionu System Works as Expected
Channel Access Server, Archiver Engine,
SOAP-based Archive Server, CGI-based Server,SOAP-based Archive Viewer, CGI-based Viewer
Combination works
Expect to be Useful in Accelerator Operationu Performance Comparizon
Transferred Data is Twice Larger in SOAP
and Slightly Slower
u May Pass through Firewalls
Need more Configurationu May Run on Wider Environment
Java, http, is Helpful
K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

Thank you ...

K. Furukawa, KEK, Icalepcs2003, Oct.2003.

Java-based Archive Viewer over SOAP

K. Furukawa, KEK, Icalepcs2003, Oct.2003.