Search in sources :

Example 16 with UniqueID

use of org.objectweb.proactive.core.UniqueID in project scheduling by ow2-proactive.

the class SchedulerFrontendState method getSchedulerProperties.

public Map<String, Object> getSchedulerProperties() throws NotConnectedException {
    UniqueID id = checkAccess();
    UserIdentificationImpl ident = identifications.get(id).getUser();
    renewUserSession(id, ident);
    return PASchedulerProperties.getPropertiesAsHashMap();
}
Also used : UniqueID(org.objectweb.proactive.core.UniqueID) UserIdentificationImpl(org.ow2.proactive.scheduler.job.UserIdentificationImpl)

Example 17 with UniqueID

use of org.objectweb.proactive.core.UniqueID 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);
}
Also used : UniqueID(org.objectweb.proactive.core.UniqueID) UserIdentificationImpl(org.ow2.proactive.scheduler.job.UserIdentificationImpl)

Aggregations

UniqueID (org.objectweb.proactive.core.UniqueID)17 UserIdentificationImpl (org.ow2.proactive.scheduler.job.UserIdentificationImpl)8 PermissionException (org.ow2.proactive.scheduler.common.exception.PermissionException)4 Test (org.junit.Test)2 Client (org.ow2.proactive.resourcemanager.authentication.Client)2 ExecutionException (java.util.concurrent.ExecutionException)1 ExecutorService (java.util.concurrent.ExecutorService)1 TimeoutException (java.util.concurrent.TimeoutException)1 BooleanWrapper (org.objectweb.proactive.core.util.wrapper.BooleanWrapper)1 UserData (org.ow2.proactive.authentication.UserData)1 MethodCallPermission (org.ow2.proactive.permissions.MethodCallPermission)1 RMException (org.ow2.proactive.resourcemanager.exception.RMException)1 SchedulerState (org.ow2.proactive.scheduler.common.SchedulerState)1 JobCreationException (org.ow2.proactive.scheduler.common.exception.JobCreationException)1 SchedulerJMXHelper (org.ow2.proactive.scheduler.core.jmx.SchedulerJMXHelper)1 RuntimeDataMBeanImpl (org.ow2.proactive.scheduler.core.jmx.mbean.RuntimeDataMBeanImpl)1 ClientJobState (org.ow2.proactive.scheduler.job.ClientJobState)1 InternalJob (org.ow2.proactive.scheduler.job.InternalJob)1 ChangePolicyPermission (org.ow2.proactive.scheduler.permissions.ChangePolicyPermission)1 ChangePriorityPermission (org.ow2.proactive.scheduler.permissions.ChangePriorityPermission)1