Skip to content

Commit

Permalink
📃refatorando serviços
Browse files Browse the repository at this point in the history
  • Loading branch information
AdsonEsteves committed Oct 9, 2020
1 parent ae1094c commit 0be28c9
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 222 deletions.
49 changes: 49 additions & 0 deletions services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,54 @@
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>findStudents</name>
<description>busca estudantes no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>editStudent</name>
<description>edita um estudante no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>deleteStudent</name>
<description>remove um estudante do banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>createContent</name>
<description>registra um novo conteudo no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>findContents</name>
<description>busca conteudos no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>editContent</name>
<description>edita um conteudo no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>deleteContent</name>
<description>remove um conteudo do banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>

</services>
14 changes: 4 additions & 10 deletions src/main/java/sacip/sti/agents/TrackingAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.midas.as.agent.templates.Agent;
import org.midas.as.agent.templates.LifeCycleException;
import org.midas.as.agent.templates.ServiceException;
import org.midas.as.manager.execution.ServiceWrapper;

public class TrackingAgent extends Agent implements MessageListener{

Expand Down Expand Up @@ -47,10 +46,10 @@ protected void lifeCycle() throws LifeCycleException, InterruptedException {
// {
// System.out.println(e.getMessage());
// }
// while(alive)
// {
// Thread.sleep(2000);
// }
while(alive)
{
Thread.sleep(2000);
}

}

Expand All @@ -59,10 +58,5 @@ public void boardChanged(Message msg) {
// TODO Auto-generated method stub

}

public void portugolListener()
{

}

}
Loading

0 comments on commit 0be28c9

Please sign in to comment.