forked from avvero/longo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
9,728 additions
and
2,508 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#FileLock | ||
#Thu Jan 16 17:37:04 NOVT 2014 | ||
id=1439aa02c53b99805172d7dcab6b60e246210b9e7b1 | ||
method=file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
class BootStrap { | ||
|
||
def socketLogService | ||
def mongoLogService | ||
def socketEventService | ||
def mongoEventService | ||
|
||
def init = { servletContext -> | ||
// socketLogService.start() | ||
mongoLogService.start() | ||
// mongoEventService.start() | ||
} | ||
def destroy = { | ||
// socketLogService.stop() | ||
mongoLogService.stop() | ||
// mongoEventService.stop() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
grails-app/domain/com/avvero/longo/MongoConnectionConfig.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.avvero.longo | ||
|
||
class MongoConnectionConfig { | ||
|
||
String host | ||
int port | ||
String databaseName | ||
String collectionName | ||
|
||
static constraints = { | ||
} | ||
|
||
def getKey() { | ||
return "mongo:" + this.host+":" + this.port + ":" + this.databaseName + ":" + this.collectionName | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.avvero.longo | ||
|
||
class Socket { | ||
|
||
String host | ||
int port | ||
|
||
static constraints = { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<%-- | ||
Created by IntelliJ IDEA. | ||
User: avvero | ||
Date: 01.12.13 | ||
Time: 15:26 | ||
To change this template use File | Settings | File Templates. | ||
--%> | ||
|
||
<%@ page contentType="text/html;charset=UTF-8" %> | ||
<html> | ||
<head> | ||
<meta name="layout" content="main"/> | ||
<title></title> | ||
<g:javascript library="jquery"/> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h3>Mongo <span class="label label-default"></span></h3> | ||
<table class="table table-striped"> | ||
<g:each in="${mongoConnectionConfigs}" var="item"> | ||
<tr> | ||
<td>${item.host}</td> | ||
<td>${item.port}</td> | ||
<td>${item.databaseName}</td> | ||
<td>${item.collectionName}</td> | ||
<td> | ||
<g:form> | ||
<input type="hidden" name="id" value="${item.id}"/> | ||
<g:actionSubmit action="delMongoConnectionConfig" value="Удалить" class="btn btn-default">Удалить</g:actionSubmit> | ||
<g:actionSubmit action="connectToMongoCollector" value="Подключиться" class="btn btn-default"/> | ||
</g:form> | ||
</td> | ||
</tr> | ||
</g:each> | ||
</table> | ||
<g:form action="addMongoConnectionConfig" class="form-horizontal" role="form"> | ||
<div class="form-group"> | ||
<label for="host" class="col-sm-2 control-label">host</label> | ||
<div class="col-sm-10"> | ||
<input name="host" class="form-control" id="host" placeholder="host"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="port" class="col-sm-2 control-label">port</label> | ||
<div class="col-sm-10"> | ||
<input name="port" class="form-control" id="port" placeholder="port"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="databaseName" class="col-sm-2 control-label">databaseName</label> | ||
<div class="col-sm-10"> | ||
<input name="databaseName" class="form-control" id="databaseName" placeholder="databaseName"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="collectionName" class="col-sm-2 control-label">collectionName</label> | ||
<div class="col-sm-10"> | ||
<input name="collectionName" class="form-control" id="collectionName" placeholder="collectionName"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-sm-offset-2 col-sm-10"> | ||
<g:submitButton name="Добавить" class="btn btn-default"/> | ||
</div> | ||
</div> | ||
</g:form> | ||
<h3>Socket<span class="label label-default">New</span></h3> | ||
<table class="table table-striped"> | ||
<g:each in="${sockets}" var="item"> | ||
<tr> | ||
<td>${item.host}</td> | ||
<td>${item.port}</td> | ||
<td> | ||
<g:form> | ||
<input type="hidden" name="id" value="${item.id}"/> | ||
<g:actionSubmit action="delSocket" value="Удалить" class="btn btn-default">Удалить</g:actionSubmit> | ||
<g:actionSubmit action="connectToSocketCollector" value="Подключиться" class="btn btn-default"/> | ||
</g:form> | ||
</td> | ||
|
||
</tr> | ||
</g:each> | ||
</table> | ||
<g:form action="addSocket" class="form-horizontal" role="form"> | ||
<div class="form-group"> | ||
<label for="host" class="col-sm-2 control-label">host</label> | ||
<div class="col-sm-10"> | ||
<input name="host" class="form-control" value="localhost" placeholder="host"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="port" class="col-sm-2 control-label">port</label> | ||
<div class="col-sm-10"> | ||
<input name="port" class="form-control" placeholder="port"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-sm-offset-2 col-sm-10"> | ||
<g:submitButton name="Добавить" class="btn btn-default"/> | ||
</div> | ||
</div> | ||
</g:form> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.