Yuta HIGUCHI | a1e655a | 2014-01-23 17:43:11 -0800 | [diff] [blame^] | 1 | /* Copyright (c) 2013 Stanford University |
| 2 | * |
| 3 | * Permission to use, copy, modify, and distribute this software for any |
| 4 | * purpose with or without fee is hereby granted, provided that the above |
| 5 | * copyright notice and this permission notice appear in all copies. |
| 6 | * |
| 7 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S) DISCLAIM ALL WARRANTIES |
| 8 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 9 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL AUTHORS BE LIABLE FOR |
| 10 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 11 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 12 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 13 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 14 | */ |
| 15 | |
yoshi | 28bac13 | 2014-01-22 11:00:17 -0800 | [diff] [blame] | 16 | package com.tinkerpop.rexster.config; |
| 17 | |
| 18 | import com.tinkerpop.blueprints.Graph; |
| 19 | import com.tinkerpop.blueprints.impls.ramcloud.RamCloudGraph; |
| 20 | import com.tinkerpop.rexster.config.GraphConfiguration; |
| 21 | import org.apache.commons.configuration.Configuration; |
| 22 | |
| 23 | |
| 24 | public class RamCloudGraphConfiguration implements GraphConfiguration { |
| 25 | |
| 26 | public Graph configureGraphInstance(final Configuration properties) throws GraphConfigurationException { |
| 27 | return new RamCloudGraph("fast+udp:host=127.0.0.1,port=12246"); |
| 28 | } |
| 29 | |
| 30 | } |