Microsoft PowerPoint - SES11-cloud_tutorial.pptx

Size: px
Start display at page:

Download "Microsoft PowerPoint - SES11-cloud_tutorial.pptx"

Transcription

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18 HelloWorld hw = String str = hw.sayhello(); Module HelloWorld { interface{ string sayhello(); } } Class HelloWorld { String sayhello(){ // generated codes to // invoke remote objects }

19 public String sayhello(){ return "hello!"; } Module HelloWorld { interface{ string sayhello(); } } abstract Class HelloWorld { abstract String sayhello(); // other generated methods to // handle remote invocation }

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37 AmazonS3 s3 = new AmazonS3Client( ); try { s3.putobject(new PutObjectRequest(bucketName, key, file)); } catch (AmazonServiceException e) { e.printstacktrace(); } catch (AmazonClientException e) { e.printstacktrace(); } S3Object obj = s3.getobject( new GetObjectRequest(bucketName, key)); InputStream is = is.

38

39

40 AmazonSQS sqs = new AmazonSQSClient( ); queueurl = sqs.createqueue( new CreateQueueRequest(queueName) ).getqueueurl(); sqs.sendmessage( new SendMessageRequest(queueURL, message)); List<Message> messages = sqs.receivemessage( new ReceiveMessageRequest(queueURL)); for(message mes: messages){ }

41

42

43

44

45 <service name="loccountservice targetnamespace=" <description>count Lines of Code of a file on Amazon S3</description> <schema schemanamespace=" <parameter name="serviceclass"> cloudloc.service.loccountservice </parameter> <messagereceivers> <messagereceiver mep=" class="org.apache..rpcinonlymessagereceiver"/> </messagereceivers> </service>

46

47

48

49

50 AmazonEC2 ec2 = new AmazonEC2Client( ); RunInstancesRequest req = new RunInstancesRequest(amiID, minnum, maxnum); req.setinstancetype(instancetype); req.withsecuritygroupids(securitygroupid); RunInstancesResult res = ec2.runinstances(req);

51 AmazonEC2 ec2 = new AmazonEC2Client( ); DescribeInstancesResult res = ec2.describeinstances( new DescribeInstancesRequest()); ec2.stopinstances(new StopInstancesRequest(instanceIDs));

52

53

54

55

56

57

58

59

60

61

storage-sdk-Java

storage-sdk-Java オブジェクトストレージ SDK Java Version 1.0 Version 更新日内容 1.0 2014 年 4 月 18 日新規作成 1.1 2014 年 5 月 23 日 RiakCS のバージョンを 1.4.5 に修正 IDC Frontier Inc. All Rights Reserved. PAGE : 1 / 7 目次 1. 概要... 3 2. 利用できる API... 3 3.

More information

131314 131314 100 16712 1 1 16624 63 4 89 27 3 2 2 1 8 38418 23203 132 252710129 134 24 30201320 136 30 144 30146-18239 23 2 132144 132 64 1322132113261 13413412 1348134212 134622 63013626 1441330 3 11520

More information

rmi.book

rmi.book BEA WebLogic Server WebLogic RMI BEA WebLogic Server 6.1 : 2002 6 24 Copyright 2002 BEA Systems, Inc. All Rights Reserved. BEA Systems, Inc. BEA BEA BEA FAR 52.227-19 Commercial Computer Software-Restricted

More information

Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1

Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1 Java (9) 1 Lesson 7 2008-05-20 Java System.out.println() 1 Java API 1 Java Java 1 GUI 2 Java 3 1.1 5 3 1.0 10.0, 1.0, 0.5 5.0, 3.0, 0.3 4.0, 1.0, 0.6 1 2 4 3, ( 2 3 2 1.2 Java (stream) 4 1 a 5 (End of

More information

オブジェクト指向プログラミング・同演習 5月21日演習課題

オブジェクト指向プログラミング・同演習 5月21日演習課題 オブジェクト指向プログラミング 同演習 5 月 21 日演習課題 問題 1 配列の例外処理例外が発生する可能性のある処理を try で囲み その後に catch で例外を捕捉します 例外処理の終了処理として finally が行われます これは書かなくて自動的に行われます 提出課題 1 (Kadai052301.java) 以下のプログラムは例外処理をしていない ArrayIndexOutOfBoundsException

More information

Exam : 1z0-809 日本語 (JPN) Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO 1 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answe

Exam : 1z0-809 日本語 (JPN) Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO 1 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answe Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z0-809 日本語 (JPN) Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO 1 / 8 Get Latest &

More information

名称未設定 3.pages

名称未設定 3.pages Web Web Web No. No. No. youtube youtube amazon EC google amazonec youtube youtuber youtube 0.1 youtube google amazon EC google amazon googlegoogle WIN-WIN WIN-WIN-LOSE CD DVD amazon amazon amazon amazon

More information

データ構造とアルゴリズム論

データ構造とアルゴリズム論 15 11 11 Java 21 231-0811 32 152-0033 1 Java 3-5,55,63,39,87,48,70,35,77,59,44 3-5 3-7 score2.txt 75 15 11 11 5-1 3-7 jbuttonread jbuttondisplay jlabelmessage jtextfieldname jtextfieldtokuten

More information

Java演習(4) -- 変数と型 --

Java演習(4)   -- 変数と型 -- 50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends

More information

新・明解Java入門

新・明解Java入門 537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,

More information

VB.NETコーディング標準

VB.NETコーディング標準 (C) Copyright 2002 Java ( ) VB.NET C# AS-IS [email protected] [email protected] Copyright (c) 2000,2001 Eiwa System Management, Inc. Object Club Kenji Hiranabe02/09/26 Copyright

More information

3360 druby Web Who is translating it? http://dx.doi.org/10.1007/s10766-008-0086-1 $32.00 International Journal of PARALLEL PROGRAMING Must buy! http://dx.doi.org/10.1007/s10766-008-0086-1 toruby The

More information

Microsoft PowerPoint - CloudBasic-1_2-foundations.pptx

Microsoft PowerPoint - CloudBasic-1_2-foundations.pptx クラウドシステム基礎 第 1 回 ( 後 ): 実現基盤の概観 国立情報学研究所石川冬樹 [email protected] 2 今回の内容 分散システムの実現基盤のための代表的な技術を概観することにより, 基本的な概念や考え方を確認する 分散オブジェクト (CORBA) Webサービスにおける標準仕様 3 目次 分散システムの実現基盤 分散オブジェクト CORBA Webサービス 4 分散

More information

Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet

Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet 13 Java 13.9 Applet 13.10 AppletContext 13.11 Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet Applet (1/2) Component GUI etc Container Applet (2/2) Panel

More information

Condition DAQ condition condition 2 3 XML key value

Condition DAQ condition condition 2 3 XML key value Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................

More information

RHEA key

RHEA key 2 P (k, )= k e k! 3 4 Probability 0.4 0.35 0.3 0.25 Poisson ( λ = 1) Poisson (λ = 3) Poisson ( λ = 10) Poisson (λ = 20) Poisson ( λ = 30) Gaussian (µ = 1, s = 1) Gaussian ( µ = 3, s = 3) Gaussian (µ =

More information

プリント

プリント 130 100 70 100 127% ECO.R IS 300 200 100 100 280% 0 ECO.R IS 120% 120 100 100 80 new ECO.R LS 121% 120 127% 100 100 80 new ECO.R LS ECO.R LS 130% 130 100 100 70 ECO.R LS 120 100 80 100 116% 122% new ECO.R

More information

text_10.dvi

text_10.dvi C 10 13 6 18 10 Java(5) {, 1 10.1 10 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1 10.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :

More information

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV [email protected] [email protected] http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20

More information

アプレットの作成

アプレットの作成 - 1 - import java.applet.applet; import java.awt.graphics; public class HelloWorld extends Applet { public void init() { resize(150,60) ; public void paint ( Graphics g ) { g.drawstring("hello, world!",

More information

Client Client public void sendobject(object message) String String Web Container String RemoteEndpoint String Endpoint throwsioexception, EncodeExcept

Client Client public void sendobject(object message) String String Web Container String RemoteEndpoint String Endpoint throwsioexception, EncodeExcept @OnMessage public void handlecounter(int newvalue) {... @OnMessage public void handleboolean(boolean b) {... public void sendobject(object message) throws IOException, EncodeException Client Client public

More information

JAVA 11.4 PrintWriter 11.5

JAVA 11.4 PrintWriter 11.5 JAVA 11.4 PrintWriter 11.5 PrintWriter Writer Int, float, char Object print() println() tostring() PrintWriter PrintWriter(OutputStream outputstream) PrintWriter(OutputStream outputstream, boolean flushonnewline)

More information

BlueJ 2.0.1 BlueJ 2.0.x Michael Kölling Mærsk Institute University of Southern Denmark Toin University of Yokohama Alberto Palacios Pawlovsky 17 4 4 3 1 5 1.1 BlueJ.....................................

More information

目 次 Java GUI 3 1 概要 クラス構成 ソースコード例 課題...7 i

目 次 Java GUI 3 1 概要 クラス構成 ソースコード例 課題...7 i Java GUI 3 Java GUI 3 - サンプルプログラム (1) - 2011-09-25 Version 1.00 K. Yanai 目 次 Java GUI 3 1 概要...1 2 クラス構成...2 3 ソースコード例...3 4 課題...7 i 1 概要まずは簡単なサンプルプログラムをみながら Java GUI の基本的なことを学びましょう 本サンプルは 図に示すようなひとつのメイン画面を使用します

More information

226

226 226 227 Main ClientThread Request Channel WorkerThread Channel startworkers takerequest requestqueue threadpool WorkerThread channel run Request tostring execute name number ClientThread channel random

More information

I java A

I java A I java 065762A 19.6.22 19.6.22 19.6.22 1 1 Level 1 3 1.1 Kouza....................................... 3 1.2 Kouza....................................... 4 1.3..........................................

More information

2: 3: A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz A ( ( 4 ( 5 f(t = sin(2πf 1t + sin(2πf 2 t = 2 sin(2πt(f 1 + f 2 /2 cos(2πt(f 1 f

2: 3: A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz A ( ( 4 ( 5 f(t = sin(2πf 1t + sin(2πf 2 t = 2 sin(2πt(f 1 + f 2 /2 cos(2πt(f 1 f 12 ( TV TV, CATV, CS CD, DAT, DV, DVD ( 12.1 12.1.1 1 1: T (sec f (Hz T= 1 f P a = N/m 2 1.013 10 5 P a 1 10 5 1.00001 0.99999 2,3 1 2: 3: 12.1.2 A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz

More information

1996 2000 2004 1984 2005 7150 000 9 500 9 4 13 10 95 11 11 12 20002004 9 70

1996 2000 2004 1984 2005 7150 000 9 500 9 4 13 10 95 11 11 12 20002004 9 70 14 2006 1 Key Words 2002 3 1 2 3 3 1 2 3 1969 1987 69 1996 2000 2004 1984 2005 7150 000 9 500 9 4 13 10 95 11 11 12 20002004 9 70 14 2006 1 15 71 72 1 22 6 32 9 200 6 3 1 2 2000 10 1 2003 10 2005 6 5 4

More information

立命館21_川端先生.indd

立命館21_川端先生.indd 21 119-132 2010 ( ) ' Key Words 119 21 2010 7 1962 2001 2001 2007 1982 1988 1997 2007 1997 1998 1863 1880 1 1998 1998 2001 1599 120 121 1599 1695 8 1695 1714 4 1714 1715 5 1715 100 1812 9 1812 1864 2001

More information

{:from => Java, :to => Ruby } Java Ruby KAKUTANI Shintaro; Eiwa System Management, Inc.; a strong Ruby proponent http://kakutani.com http://www.amazon.co.jp/o/asin/4873113202/kakutani-22 http://www.amazon.co.jp/o/asin/477413256x/kakutani-22

More information

55 7 Java C Java TCP/IP TCP/IP TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] a

55 7 Java C Java TCP/IP TCP/IP TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] a 55 7 Java C Java TCP/IP TCP/IP 7.1 7.1.1 TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] argv) { Socket readsocket = new Socket(argv[0], Integer.parseInt(argv[1]));

More information

MPI MPI MPI.NET C# MPI Version2

MPI MPI MPI.NET C# MPI Version2 MPI.NET C# 2 2009 2 27 MPI MPI MPI.NET C# MPI Version2 MPI (Message Passing Interface) MPI MPI Version 1 1994 1 1 1 1 ID MPI MPI_Send MPI_Recv if(rank == 0){ // 0 MPI_Send(); } else if(rank == 1){ // 1

More information

WinHPC ppt

WinHPC ppt MPI.NET C# 2 2009 1 20 MPI.NET MPI.NET C# MPI.NET C# MPI MPI.NET 1 1 MPI.NET C# Hello World MPI.NET.NET Framework.NET C# API C# Microsoft.NET java.net (Visual Basic.NET Visual C++) C# class Helloworld

More information

インターネットマガジン2001年4月号―INTERNET magazine No.75

インターネットマガジン2001年4月号―INTERNET magazine No.75 i illustration : Hada Eiji 206 INTERNET magazine 2001/4 jdc.sun.co.jp/wireless/ www.nttdocomo.co.jp/mc-user/i/java/ www.zentek.com/i-jae/ja/download.html INTERNET magazine 2001/4 207 Jump 01 Jump 02 Jump

More information

I. EspressReport 100%Java JSP API II. EspressReport Report Designer Report Designer - Report Designer Web Java Web Web Report Designer import java.awt

I. EspressReport 100%Java JSP API II. EspressReport Report Designer Report Designer - Report Designer Web Java Web Web Report Designer import java.awt TEL: 03-3360-9336 FAX: 03-3660-9337 [email protected] www.climb.co.jp Overview, Technology & Features White Paper I. EspressReport 100%Java JSP API II. EspressReport Report Designer Report Designer - Report

More information