Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help on a java topic

 
Prag Tyagi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help on a java code . I need to fetch a log file from a remote server for a particular timestamp . can some one help me out with the code . please don't refer the link http://commons.apache.org/vfs/api.html
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Prag Tyagi wrote:As i am new to java can some one give me the complete classes UML structure which will be involved . Code i will put into place .

Please read http://www.coderanch.com/how-to/java/NotACodeMill
What have you got so far and where are you stuck?
 
Campbell Ritchie
Sheriff
Posts: 48429
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

It would have been better to let us know what sort of java topic you are interested in.
We do not give out complete code. Unless you are offering to pay somebody to code it for you, you should show us how far you have got and say what problems you are suffering.
 
Prag Tyagi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thing is that i have fetched the details from the property file . Now in the property file some logs files are mentioned which are being fetched . All i want is a way as to how i can fetch the log files from a remote server . For that i need some class structure . If some one can help me out .
 
Prag Tyagi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have fetched a log file names . Now i have to fetch those log files from file server .
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you connecting to the server? Is this a web application?
 
Prag Tyagi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a java application . A tool . And there is where the problem starts . the requirement is connect to a SFTP server in order to download the log files . Now i don't know that and how to fetch the log files for a particular time stamp .
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Prag Tyagi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not able to understand what is given over there . http://commons.apache.org/vfs/filesystems.html#SFTP
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the API-spec at http://commons.apache.org/vfs/api.html

There you have an example code. Try to figure out how to use the library.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic