Examples of LockFile


Examples of com.sun.messaging.jmq.jmsserver.util.LockFile

            synchronized(lock) {
                if (audit == null) {
                    MQAuditService.init();
                    try {
                      audit = MQAuditService.getAuditSession();
                      LockFile lf = LockFile.getCurrentLockFile();
                    if (lf != null) {
                      audit.setInstance(lf.getInstance(),lf.getHost(), lf.getPort());
            }
                    } catch (BrokerException ex) {
                      getLogger().logStack(Logger.ERROR, ex.toString(), ex);
                        Broker.getBroker().exit(BrokerExitCode.ERROR, ex.toString(), BrokerEvent.Type.EXCEPTION);
                    }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.util.LockFile

        this.port = port;

        addService(SERVICE_NAME, "tcp", "PORTMAPPER", port, portmapperMap);

        LockFile lf = LockFile.getCurrentLockFile();

      try {
          if (lf != null) {
              lf.updatePort(port);
          }
        } catch (IOException e) {
          logger.log(Logger.WARNING, rb.E_LOCKFILE_BADUPDATE, e);
        }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.util.LockFile

        }

        this.hostname = hostname;
        this.mqaddress =  mqaddr;

  LockFile lf = LockFile.getCurrentLockFile();

  try {
      if (lf != null) {
          lf.updateHostname(mqaddress.getHostName());
      }
        } catch (IOException e) {
      logger.log(Logger.WARNING, rb.E_LOCKFILE_BADUPDATE, e);
        }
View Full Code Here

Examples of org.apache.activemq.util.LockFile

    @Override
    public void doStart() throws Exception {
        if (lockFile == null) {
            File lockFileName = new File(directory, "lock");
            lockFile = new LockFile(lockFileName, true);
            if (failIfLocked) {
                lockFile.lock();
            } else {
                boolean locked = false;
                while ((!isStopped()) && (!isStopping())) {
View Full Code Here

Examples of org.apache.activemq.util.LockFile

    }

    private void lock() throws IOException {
        if (lockFile == null) {
            File lockFileName = new File(directory, "lock");
            lockFile = new LockFile(lockFileName, true);
            if (failIfDatabaseIsLocked) {
                lockFile.lock();
            } else {
                while (true) {
                    try {
View Full Code Here

Examples of org.apache.activemq.util.LockFile

    }

    private void lock() throws IOException {
        if (lockFile == null) {
            File lockFileName = new File(directory, "lock");
            lockFile = new LockFile(lockFileName, true);
            if (failIfDatabaseIsLocked) {
                lockFile.lock();
            } else {
                while (true) {
                    try {
View Full Code Here

Examples of org.apache.kahadb.util.LockFile

    }

    private void lock() throws IOException {
        if (lockFile == null) {
            File lockFileName = new File(directory, "lock");
            lockFile = new LockFile(lockFileName, true);
            if (failIfDatabaseIsLocked) {
                lockFile.lock();
            } else {
                while (true) {
                    try {
View Full Code Here

Examples of org.apache.kahadb.util.LockFile

  }

    private void lock() throws IOException {
        if( lockFile == null ) {
            File lockFileName = new File(directory, "lock");
            lockFile = new LockFile(lockFileName, true);
            if (failIfDatabaseIsLocked) {
                lockFile.lock();
            } else {
                while (true) {
                    try {
View Full Code Here

Examples of org.apache.kahadb.util.LockFile

    private void lock() throws IOException {

        if (lockFile == null) {
            File lockFileName = new File(directory, "lock");
            lockFile = new LockFile(lockFileName, true);
            if (failIfDatabaseIsLocked) {
                lockFile.lock();
            } else {
                boolean locked = false;
                while ((!isStopped()) && (!isStopping())) {
View Full Code Here

Examples of org.apache.kahadb.util.LockFile

    }

    private void lock() throws IOException {
        if (lockFile == null) {
            File lockFileName = new File(directory, "lock");
            lockFile = new LockFile(lockFileName, true);
            if (failIfDatabaseIsLocked) {
                lockFile.lock();
            } else {
                while (true) {
                    try {
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.