• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Need help on a java topic

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 https://coderanch.com/how-to/java/NotACodeMill
What have you got so far and where are you stuck?
 
Marshal
Posts: 80508
455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out http://commons.apache.org/vfs/filesystems.html
 
Prag Tyagi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
not able to understand what is given over there . http://commons.apache.org/vfs/filesystems.html#SFTP
 
Ranch Hand
Posts: 326
Android Mac OS X Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic