12
CSE 4939 Alex Riordan Brian Pruitt-Goddard

CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

Embed Size (px)

DESCRIPTION

Use XML-RPC to send data over HTTP encoded as XML. Simple and light-weight Works across different OS and environments Supports complex data structures Call server methods from client (RPC)

Citation preview

Page 1: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

CSE 4939Alex Riordan

Brian Pruitt-Goddard

Page 2: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

Design an interactive source control application that works between an android phone and a project

located on a remote server.

• Allow client to create, edit, open, and save small source files. Allow other commands including

diffs.

• User chooses file to work with and server options (address, etc)

Page 3: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

Use XML-RPC to send data over HTTP encoded as XML.• Simple and light-weight

• Works across different OS and environments• Supports complex data structures

• Call server methods from client (RPC)

Page 4: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

Use android-xmlrpc library• Very thin• Simple

XMLRPCClient client = new XMLRPCClient("http://foo.bar.com");//Call the add server function with params 2 and 4int sum = (Integer) client.call("add", 2, 4);

Page 5: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

Use Apache XML-RPC• Minimal• Simple

//Create WebServer at specified port numberWebServer webServer = new WebServer(8888);XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();//Create property mapping to Foo classPropertyHandlerMapping phm = new PropertyHandlerMapping();phm.addHandler("Foo", org.apache.xmlrpc.demo.Foo.class);//Set mappingxmlRpcServer.setHandlerMapping(phm);//Start WebServerwebServer.start();

Page 6: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

• Phone with Android version 2.2

• Access to Project/SVN server

• Phone is connected to the Internet

Page 7: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

• UI should be responsive• Server has to respond to client within reasonable

amount of time• If it is operating on a large program, give some

indication of progress

Page 8: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

• Simple and intuitive client

• Server handles file errors and outputs meaningful error message

• Reliable source control operations

Page 9: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

• Basic Android functionality• Server and Client talking

• Able to call server methods from client and get results

Page 10: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

OctoberBe able to transmit objects (files) over

connectionHave server compile and run java file and

pipe outputHandle output at server and report it to

client

Page 11: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located

November-DecemberHook SVN/project software to server

programAllow user to create program client side

using text editorWrite documentationFix bugs Implement syntax highlighting and other

extra features if time permits

Page 12: CSE 4939 Alex Riordan Brian Pruitt-Goddard. Design an interactive source control application that works between an android phone and a project located