Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
c6cd945
Uses 3.0.3-SNAPSHOT version of karaf. 3.0.2 seems to be broken and t…
craigpnnl Jan 23, 2015
49b521c
Added easier time with getting errors through without having to cast …
craigpnnl Feb 2, 2015
d2154da
bumped cxf version to 3.0.3
craigpnnl Feb 2, 2015
2607f21
Added more logging.
craigpnnl Feb 2, 2015
7ed8b0b
Moved and collapsed into one project the goss-core.
craigpnnl Feb 17, 2015
04bb4fb
Moved to .client namespace.
craigpnnl Feb 17, 2015
1c4eef3
Changed to using a flatter source structure.
craigpnnl Feb 17, 2015
e2bdaab
.internal is now a private package of client bundle.
craigpnnl Feb 17, 2015
73212cc
Removed after moved.
craigpnnl Feb 17, 2015
1a36ae8
Moved implementation under activemq
craigpnnl Feb 17, 2015
1b7649c
activemq implemenation of clientServicefactory now contains managed s…
craigpnnl Feb 17, 2015
adf4029
properties are set via bintools runtime now.
craigpnnl Feb 17, 2015
7261144
Instead of this use the ConfigurationException from osgi.cm
craigpnnl Feb 17, 2015
2f8963f
removed activator and need for prop core config maps.
craigpnnl Feb 17, 2015
f6e3caa
Added list to the interface for getting the available clients.
craigpnnl Feb 18, 2015
844885d
Removed @Start from the ClientServiceFactory.and other items that are…
craigpnnl Feb 18, 2015
8b00aba
Implemented client uuid for goss client.
craigpnnl Feb 18, 2015
865aa3f
Moved back to the .client package.
craigpnnl Feb 18, 2015
89c678c
Added ClientCommands for testing out the creation of client factories.
craigpnnl Feb 18, 2015
854b449
Committed the bnd files to the repository.
craigpnnl Feb 18, 2015
7754a69
Added registry and implementation of request handler. and a tester ha…
craigpnnl Feb 18, 2015
42a8bfb
Moved to using another project for the tester app.
craigpnnl Feb 18, 2015
e78f401
Added cnf project to the repository.
craigpnnl Feb 18, 2015
1ab1987
Moved cfg files to the tester project.
craigpnnl Feb 18, 2015
99bfac0
remove an un wanted state.dat file.
craigpnnl Feb 18, 2015
18d773b
Removed and added things to their proper place in the new repository …
craigpnnl Feb 18, 2015
2b33596
Added dependency manager and gogo.commands to tester project.
craigpnnl Feb 18, 2015
c00f633
Added .metadata to the ignore file.
craigpnnl Feb 18, 2015
74d8135
Removed a bunch of .gitignore files and moved bnd files to proper pos…
craigpnnl Feb 18, 2015
a0cfaa7
Moved Error files and removed unused data tests.
craigpnnl Feb 18, 2015
79220fb
Moved license and readme files.
craigpnnl Feb 18, 2015
9de1781
Moved or removed core, core.client, and core.server packages.
craigpnnl Feb 18, 2015
a6c666c
Removed things that have been moved already but didn't get removed.
craigpnnl Feb 18, 2015
db810ed
Includes all of the dependencies for activemq-osgi.
craigpnnl Feb 18, 2015
05f9c4a
Removed old location.
craigpnnl Feb 18, 2015
39425fc
Moved things around and added runtime properties.
craigpnnl Feb 18, 2015
ab3dda7
Moved/removed these files.
craigpnnl Feb 20, 2015
0c57e91
Added different handler type availability.
craigpnnl Feb 20, 2015
c64878a
Updated configuration to have a flow to setting configuration.
craigpnnl Feb 20, 2015
438edca
Updated functionality of the client and services.
craigpnnl Feb 20, 2015
60fca1c
Updated runtime exception returns to use SystemException class.
craigpnnl Feb 20, 2015
eade961
Added a property to set the request queue
craigpnnl Feb 20, 2015
09ad075
updated ignore file.
craigpnnl Feb 20, 2015
7cfc585
Added the itest project to working back into the repository.
craigpnnl Feb 20, 2015
9366fa6
Added the core server stuff back to the repository.
craigpnnl Feb 20, 2015
2ba7974
Client checks for nulls now before making a request to the server. A…
craigpnnl Feb 20, 2015
84f7d38
Removed errorcode from the core because we should be using the one fr…
craigpnnl Feb 20, 2015
8378d50
Fixed so we only have to cast once.
craigpnnl Feb 20, 2015
2c8a306
Registry handler now handles both the registration of uploads and req…
craigpnnl Feb 20, 2015
c4bc9aa
Formalized handler interface. Added root interface so that we can do…
craigpnnl Feb 20, 2015
9a950ef
list uses the handler interface to retrieve all the different handlers.
craigpnnl Feb 20, 2015
460e502
Added client test for uploading data.
craigpnnl Feb 20, 2015
4357ff4
Changed interface...handlers must return maps that specify the author…
craigpnnl Feb 21, 2015
2368aa5
Added mockito to mock some of the osgi interfaces during tests.
craigpnnl Feb 21, 2015
9216c98
Added bnd file in cnf project to state that no bundles are built here
craigpnnl Feb 22, 2015
f5249bc
Added specific version numbers to all of the component dependencies.
craigpnnl Feb 22, 2015
7f0c58f
Added goss github repository to the repositories build script.
craigpnnl Feb 22, 2015
e105448
Cleaned up imports.
craigpnnl Feb 22, 2015
78fb543
Removed files from "localrepo" in favor of having our dependencies in…
craigpnnl Feb 22, 2015
b477a40
Added default elements that should be added to the bundle manifest.
craigpnnl Feb 22, 2015
c4ae13a
added bundle descriptor for exceptions...i.e. looking up codes for er…
craigpnnl Feb 22, 2015
a3eb7a6
Added dependencies of the default project.
craigpnnl Feb 22, 2015
5267dba
Added .project and .classpath.
craigpnnl Feb 23, 2015
aafa9a5
Fixed build errors
tdtalbot Feb 23, 2015
7289c46
Updates to security implementation
tdtalbot Feb 23, 2015
e268221
More changes to security
tdtalbot Feb 23, 2015
30b1c8d
added .fixtures to the itests output.
craigpnnl Feb 26, 2015
53d3860
Added SecurityManager.class to the dependency injection configurator.
craigpnnl Feb 26, 2015
c32ab46
Removed example.
craigpnnl Mar 2, 2015
7b20c40
Use auth is on by default.
craigpnnl Mar 2, 2015
fb1f1df
Lots of changes that enhance security.
craigpnnl Mar 2, 2015
2943618
Provided ldap realm for goss.
craigpnnl Mar 2, 2015
2e2a59a
Added missing security/ package info stuff.
craigpnnl Mar 2, 2015
a06f76a
Missed error.java
craigpnnl Mar 2, 2015
084364c
Missed error code.
craigpnnl Mar 2, 2015
6460830
Missed authall change.
craigpnnl Mar 2, 2015
7686f26
Renamed echodata to echo request.
craigpnnl Mar 2, 2015
9c03fe5
Remove package info cuz it's private.
craigpnnl Mar 3, 2015
1b75998
removed spaces.
craigpnnl Mar 3, 2015
fa3e608
removed printing of creds.
craigpnnl Mar 3, 2015
138d988
Added a help command for showing help for the gt namespace.
craigpnnl Mar 3, 2015
cb27510
Added back testdata for testing data.
craigpnnl Mar 3, 2015
c9064a3
Removed echoing of creds.
craigpnnl Mar 3, 2015
ad17f6a
Added pax logging to tone down the blueprint debugging.
craigpnnl Mar 3, 2015
9799e69
remove creds from sysout.
craigpnnl Mar 3, 2015
f20b740
Build is now happening the bndtools way.
craigpnnl Mar 3, 2015
dc91890
Fixed the dependency on a local goss repository (this shouldn't have …
craigpnnl Mar 3, 2015
06ddd64
Added a datasource to the tester to test that we can infact put datas…
craigpnnl Mar 3, 2015
f80e114
Added the ability to list commands from gs.
craigpnnl Mar 3, 2015
ec936f1
Added gradle wrapper availability to the project.
craigpnnl Mar 3, 2015
b8398cf
Added tester.datasources to private package
tdtalbot Mar 3, 2015
0f45e21
Check if account != null.
craigpnnl Mar 4, 2015
cf9002a
changed spacing.
craigpnnl Mar 4, 2015
9f29426
Added an athorizeall security implementation so that we don't have to…
craigpnnl Mar 4, 2015
270c938
Fixed null account handling for the BlacklistRealm.
craigpnnl Mar 4, 2015
f375cf0
bndrun file using the resolve button.
craigpnnl Mar 4, 2015
73fe394
Added pax logging and a property file realm.
craigpnnl Mar 4, 2015
87956ba
added better log messages.
craigpnnl Mar 4, 2015
f9db8ea
Added a property file base implementation of security, very much like…
craigpnnl Mar 4, 2015
b629aca
added some users to a property file for configuration.
craigpnnl Mar 4, 2015
72ca8ee
changed EchoData to EchoTestData
poorva1209 Mar 4, 2015
104c6ae
merges
tdtalbot Mar 4, 2015
05cbc22
Merge branch '2.x' of https://github.com/GridOPTICS/GOSS into 2.x
tdtalbot Mar 5, 2015
8cbc5cf
Moved security-ldap to its own bundle and added a goss-core-security …
craigpnnl Mar 5, 2015
1a803b0
Modified build path to include the security bundle.
craigpnnl Mar 5, 2015
fd020a1
no message
tdtalbot Mar 5, 2015
2d4cb0f
changed package of pnnl.goss.core.tester to pnnl.gosss.core.runner an…
craigpnnl Mar 5, 2015
469be16
Modified itests and project name to use the new pnnl.goss.core.runner.
craigpnnl Mar 5, 2015
851e0d4
Moved packages from pnnl.goss.core.tester to .runner
craigpnnl Mar 5, 2015
59df84b
Modified package references do to the changing of directory structure.
craigpnnl Mar 5, 2015
268a808
Cleansed some warinings from the build log.
craigpnnl Mar 5, 2015
d509521
The activator now passes the system user to the System realm on startup.
craigpnnl Mar 5, 2015
af4bd94
Merge branch '2.x' of https://github.com/GridOPTICS/GOSS into 2.x
craigpnnl Mar 5, 2015
62aefbc
missing file.
craigpnnl Mar 5, 2015
54abd4f
Added 2.0 to the release bundles.
craigpnnl Mar 5, 2015
e9aa7e5
Added copyright to the build.bnd file.
craigpnnl Mar 6, 2015
6eb0150
Marked bundle as 2.0
craigpnnl Mar 6, 2015
de0430a
Bnd file modified version numbers.
craigpnnl Mar 6, 2015
705f267
Added commons.pool dependency to the base server so we have access to…
craigpnnl Mar 6, 2015
eba9d98
Don't announce that the user doesn't exist in this fake realm.
craigpnnl Mar 6, 2015
b0966a4
Added an itest bndrun file with the minimum set of items necessary to…
craigpnnl Mar 6, 2015
7628a82
Added a DataSourceTesting class to test that data sources can actuall…
craigpnnl Mar 6, 2015
e12a706
Added DataSource testing to the integration tests.
craigpnnl Mar 6, 2015
217873e
Broke out the configuration of core and client into seperate Configur…
craigpnnl Mar 6, 2015
1c49c5c
added packageinfo for core-server
craigpnnl Mar 6, 2015
2af932f
Fixed upload requests.
craigpnnl Mar 7, 2015
2e659e7
Code cleanup and added logging
craigpnnl Mar 7, 2015
e26f2d6
itest now has the proper references to run.
craigpnnl Mar 7, 2015
9eab492
Code cleanup and fix of upload.
craigpnnl Mar 7, 2015
2dff0d5
Upgraded felix added h2 and osgi enterprise bundles.
craigpnnl Mar 7, 2015
c3ae3a5
Seems like a spacing change here.
craigpnnl Mar 7, 2015
1971384
Added .travis.yml file back to the repository.
craigpnnl Mar 7, 2015
c6a7d5f
Removed duplicate repository entries.
craigpnnl Mar 7, 2015
56954b3
Fixed .travis.yml file.
craigpnnl Mar 7, 2015
21b931e
need to have jdk8 be run on travisci
craigpnnl Mar 7, 2015
91ffdf5
Modified .travis.yml to be like bnd.
craigpnnl Mar 7, 2015
122e724
Added +x permissions to gradlew
craigpnnl Mar 7, 2015
028e496
removed stuff that stopped the script from actually running tests
craigpnnl Mar 7, 2015
ffd9c60
Modified so that I know which test is actually failing on the build s…
craigpnnl Mar 7, 2015
3677fec
Added end test markers to discover the test that is failing.
craigpnnl Mar 7, 2015
0a120ee
Trying isolate the issue.
craigpnnl Mar 7, 2015
dd9425c
Client factory null test.
craigpnnl Mar 7, 2015
f5c445b
Give a little more time to resolving/starting bundles.
craigpnnl Mar 7, 2015
6308fbc
Removed try wrapper.
craigpnnl Mar 7, 2015
a85aea1
Added versions and baseline to project bundle.
craigpnnl Mar 7, 2015
3cc772a
Create README.md
craigpnnl Mar 7, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
49 changes: 5 additions & 44 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
.settings
mvn-build
*/build/*
target
.classpath
.project
bin
log.txt
*.pydevproject
.metadata
.gradle
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
/.gradle/
/reports/
*/generated/
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# sbteclipse plugin
.target

# TeXlipse plugin
.texlipse
dependencies.xml
goss-karaf files/

# output from resolver tool
*resolvedPom.xml
*pom.xml.orig
build/
.metadata/
*.class
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
language: groovy
language: java
jdk:
- oraclejdk8

1 change: 1 addition & 0 deletions PlainJava/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
17 changes: 17 additions & 0 deletions PlainJava/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>PlainJava</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Binary file added PlainJava/lib/httpclient-osgi-4.3.1.jar
Binary file not shown.
35 changes: 35 additions & 0 deletions PlainJava/src/pnnl/goss/core/client/exec/ClientExec.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package pnnl.goss.core.client.exec;

import org.apache.http.auth.UsernamePasswordCredentials;

import pnnl.goss.core.Client;
import pnnl.goss.core.ClientFactory;
import pnnl.goss.core.DataResponse;
import pnnl.goss.core.ResponseError;
import pnnl.goss.core.Client.PROTOCOL;
import pnnl.goss.core.Response;
import pnnl.goss.core.client.ClientServiceFactory;
import pnnl.goss.core.server.tester.requests.EchoRequest;

public class ClientExec {

public static void main(String[] args) {
// TODO Auto-generated method stub
ClientServiceFactory factory = new ClientServiceFactory();
factory.setOpenwireUri("tcp://localhost:61616");

Client client = factory.create(PROTOCOL.OPENWIRE);
client.setCredentials(new UsernamePasswordCredentials("goss", "goss"));
Response echoResponse = client.getResponse(new EchoRequest("hello world!"));
if (echoResponse instanceof ResponseError){
System.err.println("Error: "+((ResponseError)echoResponse).getMessage());
}
else{
DataResponse dataResp = (DataResponse) echoResponse;
System.out.println("Woot! "+ dataResp.getData());
}
client.close();

}

}
42 changes: 16 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
# GOSS
GridOPTICS Software System
## GridOPTICS Software System (GOSS)

Current GOSS build status: ![GOSS build status](https://travis-ci.org/GridOPTICS/GOSS.svg?branch=master)

The following instructions are to install the goss core modules to a system. This will only install
the core system. The core system is capable of executing in an osgi environment (we use [Apache Karaf](http://karaf.apache.org/) exclusively) out of the box. Please see the [GOSS-Tutorial](https://github.com/GridOPTICS/GOSS-Tutorial) for instructions regarding this deployment. If
you would like to develop in standalone mode please see [GOSS-Server](https://github.com/GridOPTICS/GOSS-Server).
The following instructions are for installing GOSS as a base core developer.

Installation Windows 7
1. Clone the goss repository (git clone https://github.com/GridOPTICS/GOSS.git)
2. Open command line to the repository root (i.e. git/GOSS folder)
3. Execute gradlew install
1. Clone the repository (git clone https://github.com/GridOPTICS/GOSS.git)
1. Open command prompt to the root of the cloned repostiory
1. Execute gradlew check (This will run the integration tests located in pnnl.goss.core.itest folder) There should be no failures.
1. Execute gradlew export (Builds a runnable jar file)
1. Copy the conf folder from pnnl.goss.core.runner to pnnl.goss.core.runner/generated/distribution/executable
1. cd to pnnl.goss.core.runner/generated/distribution/executable
1. Execute java -jar goss-core.jar

The framework should be started now. Default commands that goss uses are:

Installation Linux
1. Open terminal
2. Clone repository (git clone https://github.com/GridOPTICS/GOSS.git)
3. Change directory to goss (cd GOSS)
4. Add execute to gradlew (chmod +x gradlew)
5. Build core project (./gradlew install)

That's it the goss snapshot jars are now available to be used in your local maven repository.

Eclipse Integration (At the time of writing Luna is the version)
1. Download latest java-ee eclippse (not java developer or other flavor of eclispe)
2. Open eclipse (use default or specify your own workspace)
3. Open Eclipse Marketplace (Menu: Help->Eclipse Marketplace ..)
4. Search for Gradle (Install Gradle IDE Pack and Gradle Integration for Eclipse)
5. Search for Groovy (Install Groovy/Grails Tool Suite)
6. Import Gradle Project (Browse to root of the git repository and click Build Models)

Available Integreation Projects
- [GOSS-Powergrid](https://github.com/GridOPTICS/GOSS-Powergrid)
gs:listDataSources - Lists the known datasources that have been registered with the server.
gs:listHandlers - Lists the known request handlers that have been registered with the server.

Extending the framework with your own handlers and security options are covered in the [wiki](https://github.com/GridOPTICS/GOSS/wiki).
Loading