gpt4 book ai didi

org.xowl.platform.kernel.XSPReplyServiceUnavailable类的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 18:49:05 27 4
gpt4 key购买 nike

本文整理了Java中org.xowl.platform.kernel.XSPReplyServiceUnavailable类的一些代码示例,展示了XSPReplyServiceUnavailable类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSPReplyServiceUnavailable类的具体详情如下:
包路径:org.xowl.platform.kernel.XSPReplyServiceUnavailable
类名称:XSPReplyServiceUnavailable

XSPReplyServiceUnavailable介绍

暂无

代码示例

代码示例来源:origin: org.xowl.platform/xowl-service-lts

@Override
  public void doRun() {
    ArtifactStorageService storage = ServiceUtils.getService(ArtifactStorageService.class);
    if (storage == null) {
      result = XSPReplyServiceUnavailable.instance();
      return;
    }
    result = storage.delete(artifactId);
  }
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
  public void doRun() {
    CollaborationNetworkService networkService = Register.getComponent(CollaborationNetworkService.class);
    if (networkService == null) {
      result = XSPReplyServiceUnavailable.instance();
      return;
    }
    result = networkService.spawn(specification);
  }
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply delete(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_DELETE);
  if (!reply.isSuccess())
    return reply;
  RemoteCollaborationManaged neighbour = collaborations.get(collaborationId);
  if (neighbour == null)
    return XSPReplyNotFound.instance();
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourManifest(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_MANIFEST);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyNotFound.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourOutputsFor(String collaborationId, String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_OUTPUTS);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyNotFound.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply restart(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_RESTART);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourInputsFor(String collaborationId, String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_INPUTS);
  if (!reply.isSuccess())
    return reply;
  RemoteCollaborationManaged neighbour = collaborations.get(collaborationId);
  if (neighbour == null)
    return XSPReplyNotFound.instance();
  return neighbour.getArtifactsForInput(specificationId);
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply archive(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_ARCHIVE);
  if (!reply.isSuccess())
    return reply;
  RemoteCollaborationManaged neighbour = collaborations.get(collaborationId);
  if (neighbour == null)
    return XSPReplyNotFound.instance();
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply restart(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_RESTART);
  if (!reply.isSuccess())
    return reply;
  RemoteCollaborationManaged neighbour = collaborations.get(collaborationId);
  if (neighbour == null)
    return XSPReplyNotFound.instance();
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourInputsFor(String collaborationId, String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_INPUTS);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyNotFound.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-impact

@Override
  public XSPReply perform(ImpactAnalysisSetup setup) {
    SecurityService securityService = Register.getComponent(SecurityService.class);
    if (securityService == null)
      return XSPReplyServiceUnavailable.instance();
    XSPReply reply = securityService.checkAction(ImpactAnalysisService.ACTION_PERFORM);
    if (!reply.isSuccess())
      return reply;
    JobExecutionService executionService = Register.getComponent(JobExecutionService.class);
    if (executionService == null)
      return XSPReplyServiceUnavailable.instance();
    XOWLImpactAnalysisJob job = new XOWLImpactAnalysisJob(setup);
    executionService.schedule(job);
    return new XSPReplyResult<>(job);
  }
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourManifest(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_MANIFEST);
  if (!reply.isSuccess())
    return reply;
  RemoteCollaborationManaged neighbour = collaborations.get(collaborationId);
  if (neighbour == null)
    return XSPReplyNotFound.instance();
  return neighbour.getManifest();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply getNeighbourOutputsFor(String collaborationId, String specificationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_GET_NEIGHBOUR_OUTPUTS);
  if (!reply.isSuccess())
    return reply;
  RemoteCollaborationManaged neighbour = collaborations.get(collaborationId);
  if (neighbour == null)
    return XSPReplyNotFound.instance();
  return neighbour.getArtifactsForOutput(specificationId);
}

代码示例来源:origin: org.xowl.platform/xowl-service-connection

@Override
public XSPReply pullArtifact() {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(actionPull);
  if (!reply.isSuccess())
    return reply;
  return doPullArtifact();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply archive(String collaborationId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_ARCHIVE);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply spawn(CollaborationSpecification specification) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_SPAWN);
  if (!reply.isSuccess())
    return reply;
  return XSPReplyUnsupported.instance();
}

代码示例来源:origin: org.xowl.platform/xowl-service-connection

@Override
public XSPReply pushArtifact(Artifact artifact) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(actionPush);
  if (!reply.isSuccess())
    return reply;
  return doPushArtifact(artifact);
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
  public XSPReply delete(String collaborationId) {
    SecurityService securityService = Register.getComponent(SecurityService.class);
    if (securityService == null)
      return XSPReplyServiceUnavailable.instance();
    XSPReply reply = securityService.checkAction(ACTION_NETWORK_DELETE);
    if (!reply.isSuccess())
      return reply;
    return XSPReplyUnsupported.instance();
  }
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply spawn(CollaborationSpecification specification) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_NETWORK_SPAWN);
  if (!reply.isSuccess())
    return reply;
  return provision(specification);
}

代码示例来源:origin: org.xowl.platform/xowl-service-collaboration

@Override
public XSPReply registerInput(String specificationId, String artifactId) {
  SecurityService securityService = Register.getComponent(SecurityService.class);
  if (securityService == null)
    return XSPReplyServiceUnavailable.instance();
  XSPReply reply = securityService.checkAction(ACTION_REGISTER_INPUT);
  if (!reply.isSuccess())
    return reply;
  manifest.addInputArtifact(specificationId, artifactId);
  return serializeManifest();
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com