use of org.ow2.proactive.scheduler.job.UserIdentificationImpl in project scheduling by ow2-proactive.
the class SchedulerFrontendState method renewSession.
synchronized void renewSession() throws NotConnectedException {
UniqueID id = checkAccess();
UserIdentificationImpl ident = identifications.get(id).getUser();
// renew session for this user
renewUserSession(id, ident);
}
use of org.ow2.proactive.scheduler.job.UserIdentificationImpl in project scheduling by ow2-proactive.
the class SchedulerFrontendState method prepare.
/**
* Prepare the job in the frontend
*
* @param jobStates
* a temporary set of jobs
* @param js
* the current job to be prepared
* @param finished
* if the job is finished or not
*/
private void prepare(Set<JobState> jobStates, ClientJobState js, boolean finished) {
jobStates.add(js);
UserIdentificationImpl uIdent = new UserIdentificationImpl(js.getOwner());
IdentifiedJob ij = new IdentifiedJob(js.getId(), uIdent, js.getGenericInformation());
jobs.put(js.getId(), ij);
jobsMap.put(js.getId(), js);
ij.setFinished(finished);
}
use of org.ow2.proactive.scheduler.job.UserIdentificationImpl in project scheduling by ow2-proactive.
the class SchedulerFrontendState method getUsers.
synchronized List<SchedulerUserInfo> getUsers() {
List<SchedulerUserInfo> users = new ArrayList<>(identifications.size());
for (ListeningUser listeningUser : identifications.values()) {
UserIdentificationImpl user = listeningUser.getUser();
users.add(new SchedulerUserInfo(user.getHostName(), user.getUsername(), user.getConnectionTime(), user.getLastSubmitTime(), user.getSubmitNumber()));
}
return users;
}
Aggregations