@Override
	public List<LogProfile> getLogFileNames() throws RemoteException {
		List<LogProfile> logs=new LinkedList<LogProfile>();
		try {
			Session session=this.conn.openSession();
			String cmd="ls -l "+this.home+"/logs";
			session.execCommand(cmd);
			InputStream stdout=new StreamGobbler(session.getStdout());
			BufferedReader br=new BufferedReader(new InputStreamReader(stdout));
			String line=br.readLine();
			while(true){
				line=br.readLine();
				if(line==null){
					break;
				}
				String[] attrs=line.split("[ ]+");
				if(!attrs[7].endsWith(".log")){
					continue;
				}
				LogProfile log=new LogProfile();
				log.setName(attrs[7]);
				log.setOwner(attrs[2]);
				log.setGroup(attrs[3]);
				log.setSize(Long.parseLong(attrs[4]));
				logs.add(log);
			}
			br.close();
			session.close();
		} catch (IOException e) {
			throw new RemoteException(e);
		}
		return logs;
	}