Examples of Status


Examples of com.skymobi.monitor.model.Status

    private ProjectService projectService;

    @Override
    public void notify(Alert alert) {
        Project project = projectService.findProject(alert.getProjectName());
        Status status = Status.valueOf(alert.getLevel());
        if (project.getStatus().compareTo(status) > 0) {
            project.setStatus(status);
            logger.debug("change project status to {}", status);
            projectService.saveProject(project);
        }
View Full Code Here

Examples of com.spidercache.queue.Status

  public InQueue(String hostname,int port)
  {
    inQueue = new PriorityQueue<Request>(100);
    holdList = new ArrayList<String>();   
    destinationList = new HashMap<String, Boolean>();
    status = new Status(nodeStatus.AVAILABLE);
    myadr = new InetSocketAddress(hostname,port);
    logEnable = false;
  }
View Full Code Here

Examples of com.spotify.helios.common.VersionCompatibility.Status

      httpResponse.addHeader(HELIOS_VERSION_STATUS_HEADER, INVALID.toString());
      httpResponse.sendError(400, "Helios client version format is bogus - expect n.n.n");
      return;
    }

    final Status status = getStatus(SERVER_VERSION, clientVersion);
    httpResponse.addHeader(HELIOS_VERSION_STATUS_HEADER, status.toString());
    if (status == Status.INCOMPATIBLE) {
      log.debug("version " + clientVersion + " is incompatible");
      httpResponse.sendError(426, "Your client version is incompatible with the server version "
          + POM_VERSION);
    } else {
View Full Code Here

Examples of com.stimulus.archiva.domain.Volume.Status

     return v.getStatus().toString();
   }
  
   public void setStatus(String status) throws ConfigurationException {
    
       Status newStatus = Status.CLOSED;
       try {
         newStatus = Status.valueOf(status.trim().toUpperCase());
       } catch (IllegalArgumentException iae) {
             logger.error("failed to set volume status. status is set to an illegal value {status='"+status+"'}");
             logger.info("volume is automatically set to closed (error recovery)");
View Full Code Here

Examples of com.stoyanr.todo.model.Item.Status

    @Test
    public void testUpdateItemStatus() {
        data.addItem(getItemText());
        data.setDirty(false);
        Status status = Status.IN_PROGRESS;
        data.updateItem(data.getDocument().getItems().get(0), status);
        Item itemx = new Item(null, 0, getItemText(), Priority.MEDIUM, status,
            NOW, NOW);
        verifyUpdateItemInvocations(itemx);
        assertUpdateItemResults(itemx);
View Full Code Here

Examples of com.sun.enterprise.admin.common.Status

        String name,
        InstancesManager manager) throws InstanceException
    {               
        int status = manager.getInstanceStatus();         
        return new RuntimeStatus(name, manager.isRestartNeeded(),
            new Status(status, Status.getStatusString(status)),
            FileandSyslogHandler.getRecentErrorMessages());       
    }      
View Full Code Here

Examples of com.sun.javatest.Status

        super(name);
    }

    @Override
    public void testSignatures() {
        Status status = null;
        try {
            String javaVersion = System.getProperty("java.version");
            Vector args = new Vector();
            // Get the location of the rule execution sets.
            // Currently we assume we can find the signature file here
            // as well.
            String dir = TestCaseUtil.getRuleExecutionSetLocation();
            args.add("-FileName");
            if (javaVersion.startsWith("1.4")) {
                args.add(dir + "/" + "jaxrules14.sig");
            } else if (javaVersion.startsWith("1.5") || javaVersion.startsWith("1.6")) {
                args.add(dir + "/" + "jaxrules.sig");
            } else {
                args.add(dir + "/" + "jaxrules17.sig");
            }

            args.add("-Package");
            args.add("javax.rules");

            ByteArrayOutputStream os = new ByteArrayOutputStream(2000);
            PrintWriter pw = new PrintWriter(os);

            Test test = new SignatureTest();
            status = test.run((String[]) args.toArray(new String[0]),
                    pw, null);

            pw.flush();
            // Print the results.
            System.out.println(os.toString());
            // Check whether we passed.
            assertTrue("[ApiSignatureTest] " + os.toString(),
                    status.isPassed());
            pw.close();
        }
        catch (Exception e) {
            fail(e.getMessage());
        }
View Full Code Here

Examples of com.sun.jersey.api.client.ClientResponse.Status

    private <T> CreateSendException handleErrorResponse(UniformInterfaceException ue,
        ErrorDeserialiser<T> deserialiser) {
        ClientResponse response = ue.getResponse();
        ApiErrorResponse<T> apiResponse = null;
       
        Status responseStatus = response.getClientResponseStatus();
        if(responseStatus == Status.BAD_REQUEST ||
           responseStatus == Status.NOT_FOUND ||
           responseStatus == Status.UNAUTHORIZED) {
            try {
                apiResponse = deserialiser.getResponse(response);
View Full Code Here

Examples of com.sun.mail.imap.protocol.Status

public class StratoImapBugfixTest extends TestCase {
    //@Test
    public void testValidStatusResponseLeadingSpaces() throws Exception {
  final Response response =
    new Response("STATUS \"  Sent Items  \" (UIDNEXT 1)");
  final Status status = new Status(response);

  assertEquals("  Sent Items  ", status.mbox);
  assertEquals(1, status.uidnext);
    }
View Full Code Here

Examples of com.sun.xacml.ctx.Status

                log.info("Matching XACML policy found " + policy.getId().toString());

                if ((combiningAlg == null) && (list.size() > 0)) {
                    ArrayList<String> code = new ArrayList<String>();
                    code.add(Status.STATUS_PROCESSING_ERROR);
                    Status status = new Status(code, "too many applicable top-level policies");
                    throw new EntitlementException(status);
                }

                list.add(policy);
            }
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.