Examples of IThreadContext


Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

public abstract class BaseMappersInitializationCommand implements InitializationCommand
{
  public void execute() throws ManifoldCFException
  {
    ManifoldCF.initializeEnvironment();
    IThreadContext tc = ThreadContextFactory.make();
    IMappingConnectorManager mgr = MappingConnectorManagerFactory.make(tc);

    doExecute(mgr);
  }
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

        && !entered){
      entered = true;
      ManifoldCF.sleep(5000);
      // If all worked, then we can start the daemon.
      // Clear the agents shutdown signal.
      IThreadContext tc = ThreadContextFactory.make();
      ILockManager lockManager = LockManagerFactory.make(tc);
      lockManager.clearGlobalFlag(agentShutdownSignal);
 
      daemonThread = new DaemonThread();
      daemonThread.start();
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

  {
    initialize();
    if (isInitialized())
    {
      Exception currentException = null;
      IThreadContext tc = ThreadContextFactory.make();

      // Delete all jobs (and wait for them to go away)
      if (daemonThread != null)
      {
        IJobManager jobManager = JobManagerFactory.make(tc);
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

      setName("Daemon thread");
    }
   
    public void run()
    {
      IThreadContext tc = ThreadContextFactory.make();
      // Now, start the server, and then wait for the shutdown signal.  On shutdown, we have to actually do the cleanup,
      // because the JVM isn't going away.
      try
      {
        ILockManager lockManager = LockManagerFactory.make(tc);
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

        && !entered){
      entered = true;
      ManifoldCF.sleep(5000);
      // If all worked, then we can start the daemon.
      // Clear the agents shutdown signal.
      IThreadContext tc = ThreadContextFactory.make();
      ILockManager lockManager = LockManagerFactory.make(tc);
      lockManager.clearGlobalFlag(agentShutdownSignal);
 
      daemonThread = new DaemonThread();
      daemonThread.start();
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

  {
    initialize();
    if (isInitialized())
    {
      Exception currentException = null;
      IThreadContext tc = ThreadContextFactory.make();

      // Delete all jobs (and wait for them to go away)
      if (daemonThread != null)
      {
        IJobManager jobManager = JobManagerFactory.make(tc);
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

      setName("Daemon thread");
    }
   
    public void run()
    {
      IThreadContext tc = ThreadContextFactory.make();
      // Now, start the server, and then wait for the shutdown signal.  On shutdown, we have to actually do the cleanup,
      // because the JVM isn't going away.
      try
      {
        ILockManager lockManager = LockManagerFactory.make(tc);
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

        && !entered){
      entered = true;
      ManifoldCF.sleep(5000);
      // If all worked, then we can start the daemon.
      // Clear the agents shutdown signal.
      IThreadContext tc = ThreadContextFactory.make();
      ILockManager lockManager = LockManagerFactory.make(tc);
      lockManager.clearGlobalFlag(agentShutdownSignal);
 
      daemonThread = new DaemonThread();
      daemonThread.start();
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

  {
    initialize();
    if (isInitialized())
    {
      Exception currentException = null;
      IThreadContext tc = ThreadContextFactory.make();

      // Delete all jobs (and wait for them to go away)
      if (daemonThread != null)
      {
        IJobManager jobManager = JobManagerFactory.make(tc);
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.IThreadContext

      setName("Daemon thread");
    }
   
    public void run()
    {
      IThreadContext tc = ThreadContextFactory.make();
      // Now, start the server, and then wait for the shutdown signal.  On shutdown, we have to actually do the cleanup,
      // because the JVM isn't going away.
      try
      {
        ILockManager lockManager = LockManagerFactory.make(tc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.