├── .gitignore
├── .project
├── .svnbranch
├── mergeup_configure-no-txn
├── mergeup_jane
├── mergeup_jane-80
├── mergeup_jane-app-proto
├── mergeup_jane-bug
├── mergeup_jane-bug-1
├── mergeup_jane-checkstyle
├── mergeup_jane-collector-refactor
├── mergeup_jane-jmx
├── mergeup_jane-jmx-tests
├── mergeup_jane-review
├── mergeup_jane-test
├── mergeup_jmegq-channel
├── mergeup_kbt
├── mergeup_kbt-build
├── mergeup_kbt-doc
├── mergeup_kbt1
├── mergeup_merged-io
├── mergeup_node-health-phase1
├── mergeup_recovery
├── mergeup_session-limit
├── mergeup_tim
├── mergeup_tim-classes
├── mergeup_tim-deadlock
├── mergeup_tim-extra
├── mergeup_tim-fixes
├── mergeup_tim-misc
├── mergeup_tim-more-fixes
├── mergeup_tim-netstore
├── mergeup_tim-perf
├── mergeup_tim-release
├── mergeup_tim-review
├── mergeup_tim-svnbranch
├── mergeup_tim-throttle-integration
├── mergeup_tim-txn
├── mergeup_tim-util
├── mergeup_tim-util-perf
├── mergeup_tjb
├── mergeup_tjb-misc
├── mergeup_tjb-write-cache
├── refresh_jane
├── refresh_jane-80
├── refresh_jane-app-proto
├── refresh_jane-bug
├── refresh_jane-checkstyle
├── refresh_jane-collector-refactor
├── refresh_jane-jmx
├── refresh_jane-jmx-tests
├── refresh_jane-review
├── refresh_jane-test
├── refresh_jmegq-channel
├── refresh_kbt-build
├── refresh_kbt1
├── refresh_merged-io
├── refresh_node-health-phase1
├── refresh_recovery
├── refresh_session-limit
├── refresh_tim
├── refresh_tim-classes
├── refresh_tim-deadlock
├── refresh_tim-extra
├── refresh_tim-fixes
├── refresh_tim-misc
├── refresh_tim-more-fixes
├── refresh_tim-netstore
├── refresh_tim-perf
├── refresh_tim-release
├── refresh_tim-review
├── refresh_tim-svnbranch
├── refresh_tim-throttle-integration
├── refresh_tim-txn
├── refresh_tim-util
├── refresh_tim-util-perf
├── refresh_tjb
├── refresh_tjb-misc
└── refresh_tjb-write-cache
├── README
├── pom.xml
├── sgs-boot
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ ├── main
│ ├── etc
│ │ └── findbugs-exclude.xml
│ └── java
│ │ └── com
│ │ └── sun
│ │ └── sgs
│ │ └── system
│ │ ├── Boot.java
│ │ ├── BootEnvironment.java
│ │ ├── ExtJarGraph.java
│ │ ├── StreamPipe.java
│ │ ├── SubstitutionProperties.java
│ │ └── package-info.java
│ └── test
│ ├── java
│ └── com
│ │ └── sun
│ │ └── sgs
│ │ └── system
│ │ ├── TestExtJarGraph.java
│ │ └── TestSubstitutionProperties.java
│ └── test-jars
│ ├── A.jar
│ ├── ADependsOnB.jar
│ ├── APropertyCollision.jar
│ ├── APropertyDuplicate.jar
│ ├── AWithServices.jar
│ ├── B.jar
│ ├── BDependsOnA.jar
│ ├── BDependsOnAAndC.jar
│ ├── BWithServices.jar
│ ├── C.jar
│ ├── CDependsOnA.jar
│ ├── CWithServices.jar
│ ├── DDependsOnAAndB.jar
│ ├── DWithServices.jar
│ ├── InvalidProperties.jar
│ ├── MisMatchedNodeTypes.jar
│ ├── MisMatchedServices.jar
│ ├── NoManifest.jar
│ ├── NoName.jar
│ ├── NoProperties.jar
│ └── NoVersion.jar
├── sgs-server-api
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ └── main
│ ├── assembly
│ └── sources.xml
│ ├── etc
│ └── findbugs-exclude.xml
│ ├── java
│ └── com
│ │ └── sun
│ │ └── sgs
│ │ ├── app
│ │ ├── AppContext.java
│ │ ├── AppListener.java
│ │ ├── Channel.java
│ │ ├── ChannelListener.java
│ │ ├── ChannelManager.java
│ │ ├── ClientSession.java
│ │ ├── ClientSessionListener.java
│ │ ├── DataManager.java
│ │ ├── Delivery.java
│ │ ├── DeliveryNotSupportedException.java
│ │ ├── ExceptionRetryStatus.java
│ │ ├── ManagedObject.java
│ │ ├── ManagedObjectRemoval.java
│ │ ├── ManagedReference.java
│ │ ├── ManagerNotFoundException.java
│ │ ├── MessageRejectedException.java
│ │ ├── NameExistsException.java
│ │ ├── NameNotBoundException.java
│ │ ├── ObjectIOException.java
│ │ ├── ObjectNotFoundException.java
│ │ ├── PeriodicTaskHandle.java
│ │ ├── ResourceUnavailableException.java
│ │ ├── RunWithNewIdentity.java
│ │ ├── Task.java
│ │ ├── TaskManager.java
│ │ ├── TaskRejectedException.java
│ │ ├── TransactionAbortedException.java
│ │ ├── TransactionConflictException.java
│ │ ├── TransactionException.java
│ │ ├── TransactionNotActiveException.java
│ │ ├── TransactionTimeoutException.java
│ │ ├── package-info.java
│ │ └── util
│ │ │ ├── ManagedSerializable.java
│ │ │ ├── ScalableDeque.java
│ │ │ ├── ScalableHashMap.java
│ │ │ ├── ScalableHashSet.java
│ │ │ ├── ScalableList.java
│ │ │ └── package-info.java
│ │ └── internal
│ │ ├── InternalContext.java
│ │ ├── ManagerLocator.java
│ │ └── package-info.java
│ └── resources
│ └── api-overview.html
├── sgs-server-dist
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ └── main
│ ├── assembly
│ └── dist.xml
│ └── etc
│ ├── API-CHANGES
│ ├── AUTHORS
│ ├── CHANGELOG
│ ├── NOTICE.txt
│ ├── README
│ ├── conf
│ ├── sgs-boot.properties
│ ├── sgs-logging.properties
│ └── sgs-server.properties
│ └── license
│ ├── LICENSE
│ ├── LICENSE.bdb
│ ├── LICENSE.bdb-je
│ ├── NOTICE-gpl
│ ├── NOTICE.bdb
│ └── NOTICE.bdb-je
├── sgs-server-internal-api
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ └── main
│ ├── assembly
│ └── sources.xml
│ ├── etc
│ └── findbugs-exclude.xml
│ └── java
│ └── com
│ └── sun
│ └── sgs
│ ├── auth
│ ├── Identity.java
│ ├── IdentityAuthenticator.java
│ ├── IdentityCoordinator.java
│ ├── IdentityCredentials.java
│ └── package-info.java
│ ├── kernel
│ ├── AccessCoordinator.java
│ ├── AccessReporter.java
│ ├── AccessedObject.java
│ ├── ComponentRegistry.java
│ ├── KernelRunnable.java
│ ├── NodeType.java
│ ├── Priority.java
│ ├── PriorityScheduler.java
│ ├── RecurringTaskHandle.java
│ ├── TaskQueue.java
│ ├── TaskReservation.java
│ ├── TaskScheduler.java
│ ├── TransactionScheduler.java
│ ├── package-info.java
│ └── schedule
│ │ ├── ScheduledTask.java
│ │ ├── SchedulerQueue.java
│ │ ├── SchedulerRetryAction.java
│ │ ├── SchedulerRetryPolicy.java
│ │ └── package-info.java
│ ├── management
│ ├── AffinityGraphBuilderMXBean.java
│ ├── AffinityGroupFinderMXBean.java
│ ├── ChannelServiceMXBean.java
│ ├── ClientSessionServiceMXBean.java
│ ├── ConfigMXBean.java
│ ├── DataServiceMXBean.java
│ ├── DataStoreStatsMXBean.java
│ ├── KernelMXBean.java
│ ├── NodeInfo.java
│ ├── NodeMappingServiceMXBean.java
│ ├── NodesMXBean.java
│ ├── ProfileControllerMXBean.java
│ ├── TaskAggregateMXBean.java
│ ├── TaskServiceMXBean.java
│ ├── WatchdogServiceMXBean.java
│ └── package-info.java
│ ├── nio
│ └── channels
│ │ ├── AbortedByTimeoutException.java
│ │ ├── AcceptPendingException.java
│ │ ├── AlreadyBoundException.java
│ │ ├── AsynchronousByteChannel.java
│ │ ├── AsynchronousChannel.java
│ │ ├── AsynchronousChannelGroup.java
│ │ ├── AsynchronousDatagramChannel.java
│ │ ├── AsynchronousServerSocketChannel.java
│ │ ├── AsynchronousSocketChannel.java
│ │ ├── ChannelPoolMXBean.java
│ │ ├── Channels.java
│ │ ├── ClosedAsynchronousChannelException.java
│ │ ├── CompletionHandler.java
│ │ ├── IllegalChannelStateException.java
│ │ ├── IoFuture.java
│ │ ├── ManagedChannelFactory.java
│ │ ├── MembershipKey.java
│ │ ├── MulticastChannel.java
│ │ ├── NetworkChannel.java
│ │ ├── ProtocolFamily.java
│ │ ├── ReadPendingException.java
│ │ ├── ShutdownChannelGroupException.java
│ │ ├── ShutdownType.java
│ │ ├── SocketOption.java
│ │ ├── StandardProtocolFamily.java
│ │ ├── StandardSocketOption.java
│ │ ├── ThreadPoolFactory.java
│ │ ├── WritePendingException.java
│ │ ├── package-info.java
│ │ └── spi
│ │ ├── AsynchronousChannelProvider.java
│ │ └── package-info.java
│ ├── profile
│ ├── AccessedObjectsDetail.java
│ ├── AggregateProfileCounter.java
│ ├── AggregateProfileOperation.java
│ ├── AggregateProfileSample.java
│ ├── ProfileCollector.java
│ ├── ProfileConsumer.java
│ ├── ProfileCounter.java
│ ├── ProfileListener.java
│ ├── ProfileOperation.java
│ ├── ProfileParticipantDetail.java
│ ├── ProfileReport.java
│ ├── ProfileSample.java
│ ├── TaskProfileCounter.java
│ ├── TaskProfileOperation.java
│ ├── TaskProfileSample.java
│ ├── TransactionListenerDetail.java
│ └── package-info.java
│ ├── protocol
│ ├── LoginFailureException.java
│ ├── LoginRedirectException.java
│ ├── ProtocolAcceptor.java
│ ├── ProtocolDescriptor.java
│ ├── ProtocolListener.java
│ ├── RelocateFailureException.java
│ ├── RequestCompletionHandler.java
│ ├── RequestFailureException.java
│ ├── SessionProtocol.java
│ ├── SessionProtocolHandler.java
│ ├── SessionRelocationProtocol.java
│ └── package-info.java
│ ├── service
│ ├── ClientSessionService.java
│ ├── ClientSessionStatusListener.java
│ ├── DataService.java
│ ├── IdentityRelocationListener.java
│ ├── Node.java
│ ├── NodeListener.java
│ ├── NodeMappingListener.java
│ ├── NodeMappingService.java
│ ├── NonDurableTransactionParticipant.java
│ ├── RecoveryListener.java
│ ├── Service.java
│ ├── SimpleCompletionHandler.java
│ ├── TaskService.java
│ ├── Transaction.java
│ ├── TransactionInterruptedException.java
│ ├── TransactionListener.java
│ ├── TransactionParticipant.java
│ ├── TransactionProxy.java
│ ├── UnknownIdentityException.java
│ ├── UnknownNodeException.java
│ ├── WatchdogService.java
│ ├── package-info.java
│ ├── store
│ │ ├── ClassInfoNotFoundException.java
│ │ ├── DataStore.java
│ │ ├── db
│ │ │ ├── DbCursor.java
│ │ │ ├── DbDatabase.java
│ │ │ ├── DbDatabaseException.java
│ │ │ ├── DbEnvironment.java
│ │ │ ├── DbTransaction.java
│ │ │ └── package-info.java
│ │ └── package-info.java
│ └── task
│ │ ├── ContinuePolicy.java
│ │ └── package-info.java
│ └── transport
│ ├── ConnectionHandler.java
│ ├── Transport.java
│ ├── TransportDescriptor.java
│ └── package-info.java
├── sgs-server-javadoc
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ └── main
│ ├── assembly
│ └── all-sources.xml
│ └── etc
│ └── stylesheet.css
├── sgs-server
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ ├── main
│ ├── assembly
│ │ └── sources.xml
│ ├── etc
│ │ └── findbugs-exclude.xml
│ ├── java
│ │ └── com
│ │ │ └── sun
│ │ │ └── sgs
│ │ │ └── impl
│ │ │ ├── app
│ │ │ └── profile
│ │ │ │ ├── ProfileChannelManager.java
│ │ │ │ ├── ProfileDataManager.java
│ │ │ │ ├── ProfileTaskManager.java
│ │ │ │ └── package-info.java
│ │ │ ├── auth
│ │ │ ├── IdentityImpl.java
│ │ │ ├── NamePasswordAuthenticator.java
│ │ │ ├── NamePasswordCredentials.java
│ │ │ ├── NullAuthenticator.java
│ │ │ ├── PasswordFileEditor.java
│ │ │ └── package-info.java
│ │ │ ├── kernel
│ │ │ ├── AbstractAccessCoordinator.java
│ │ │ ├── AccessCoordinatorHandle.java
│ │ │ ├── BootProperties.java
│ │ │ ├── ComponentRegistryImpl.java
│ │ │ ├── ConfigManager.java
│ │ │ ├── ContextResolver.java
│ │ │ ├── IdentityCoordinatorImpl.java
│ │ │ ├── Kernel.java
│ │ │ ├── KernelContext.java
│ │ │ ├── KernelShutdownController.java
│ │ │ ├── LockingAccessCoordinator.java
│ │ │ ├── LoggerPropertiesInit.java
│ │ │ ├── ManagerLocatorImpl.java
│ │ │ ├── NullAccessCoordinator.java
│ │ │ ├── ScheduledTaskImpl.java
│ │ │ ├── StandardProperties.java
│ │ │ ├── StartupKernelContext.java
│ │ │ ├── SystemIdentity.java
│ │ │ ├── TaskSchedulerImpl.java
│ │ │ ├── TrackingAccessCoordinator.java
│ │ │ ├── TransactionProxyImpl.java
│ │ │ ├── TransactionSchedulerImpl.java
│ │ │ ├── logging
│ │ │ │ ├── TransactionAwareLogManager.java
│ │ │ │ ├── TransactionalHandler.java
│ │ │ │ └── package-info.java
│ │ │ ├── package-info.java
│ │ │ └── schedule
│ │ │ │ ├── FIFOSchedulerQueue.java
│ │ │ │ ├── ImmediateRetryPolicy.java
│ │ │ │ ├── NowOrLaterRetryPolicy.java
│ │ │ │ ├── RecurringTaskHandleImpl.java
│ │ │ │ ├── SimpleTaskReservation.java
│ │ │ │ ├── TimedTaskHandler.java
│ │ │ │ ├── TimedTaskListener.java
│ │ │ │ ├── WindowSchedulerQueue.java
│ │ │ │ └── package-info.java
│ │ │ ├── nio
│ │ │ ├── AsyncDatagramChannelImpl.java
│ │ │ ├── AsyncGroupImpl.java
│ │ │ ├── AsyncKey.java
│ │ │ ├── AsyncProviderImpl.java
│ │ │ ├── AsyncServerSocketChannelImpl.java
│ │ │ ├── AsyncSocketChannelImpl.java
│ │ │ ├── AttachedFuture.java
│ │ │ ├── DefaultThreadPoolFactory.java
│ │ │ ├── DelegatingCompletionHandler.java
│ │ │ ├── IoFutureTask.java
│ │ │ ├── ReactiveAsyncChannelProvider.java
│ │ │ ├── ReactiveChannelGroup.java
│ │ │ ├── Reactor.java
│ │ │ ├── Util.java
│ │ │ └── package-info.java
│ │ │ ├── profile
│ │ │ ├── ProfileCollectorHandle.java
│ │ │ ├── ProfileCollectorHandleImpl.java
│ │ │ ├── ProfileCollectorImpl.java
│ │ │ ├── ProfileConsumerImpl.java
│ │ │ ├── ProfileController.java
│ │ │ ├── ProfileReportImpl.java
│ │ │ ├── TaskAggregateStats.java
│ │ │ ├── listener
│ │ │ │ ├── AccessedObjectsListener.java
│ │ │ │ ├── AggregateProfileListener.java
│ │ │ │ ├── AggregateTaskListener.java
│ │ │ │ ├── OperationLoggingProfileOpListener.java
│ │ │ │ ├── ProfileSampleListener.java
│ │ │ │ ├── ProfileSummaryListener.java
│ │ │ │ ├── RuntimeHistogramListener.java
│ │ │ │ ├── SampleJMXListener.java
│ │ │ │ ├── SnapshotParticipantListener.java
│ │ │ │ ├── SnapshotProfileListener.java
│ │ │ │ ├── SnapshotTaskListener.java
│ │ │ │ ├── TaskRuntimeGraphOutputListener.java
│ │ │ │ └── package-info.java
│ │ │ ├── package-info.java
│ │ │ └── util
│ │ │ │ ├── Histogram.java
│ │ │ │ ├── LinearHistogram.java
│ │ │ │ ├── NetworkReporter.java
│ │ │ │ ├── PowerOfTwoHistogram.java
│ │ │ │ ├── TransactionId.java
│ │ │ │ └── package-info.java
│ │ │ ├── protocol
│ │ │ └── simple
│ │ │ │ ├── AsynchronousMessageChannel.java
│ │ │ │ ├── SimpleSgsProtocolAcceptor.java
│ │ │ │ ├── SimpleSgsProtocolDescriptor.java
│ │ │ │ ├── SimpleSgsProtocolImpl.java
│ │ │ │ ├── SimpleSgsRelocationProtocolImpl.java
│ │ │ │ └── package-info.java
│ │ │ ├── service
│ │ │ ├── channel
│ │ │ │ ├── ChannelImpl.java
│ │ │ │ ├── ChannelServer.java
│ │ │ │ ├── ChannelServiceImpl.java
│ │ │ │ ├── ChannelServiceStats.java
│ │ │ │ ├── ChannelWrapper.java
│ │ │ │ └── package-info.java
│ │ │ ├── data
│ │ │ │ ├── ClassSerialization.java
│ │ │ │ ├── ClassesTable.java
│ │ │ │ ├── Context.java
│ │ │ │ ├── DataServiceHeader.java
│ │ │ │ ├── DataServiceImpl.java
│ │ │ │ ├── DataServiceStats.java
│ │ │ │ ├── FlushInfo.java
│ │ │ │ ├── ManagedReferenceImpl.java
│ │ │ │ ├── ReferenceTable.java
│ │ │ │ ├── SerialUtil.java
│ │ │ │ ├── package-info.java
│ │ │ │ └── store
│ │ │ │ │ ├── AbstractDataStore.java
│ │ │ │ │ ├── BindingValue.java
│ │ │ │ │ ├── DataEncoding.java
│ │ │ │ │ ├── DataStoreException.java
│ │ │ │ │ ├── DataStoreHeader.java
│ │ │ │ │ ├── DataStoreImpl.java
│ │ │ │ │ ├── DataStoreProfileProducer.java
│ │ │ │ │ ├── DataStoreStats.java
│ │ │ │ │ ├── DbUtilities.java
│ │ │ │ │ ├── NetworkException.java
│ │ │ │ │ ├── db
│ │ │ │ │ ├── bdb
│ │ │ │ │ │ ├── BdbCursor.java
│ │ │ │ │ │ ├── BdbDatabase.java
│ │ │ │ │ │ ├── BdbEnvironment.java
│ │ │ │ │ │ ├── BdbTransaction.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ └── je
│ │ │ │ │ │ ├── JeCursor.java
│ │ │ │ │ │ ├── JeDatabase.java
│ │ │ │ │ │ ├── JeEnvironment.java
│ │ │ │ │ │ ├── JeTransaction.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── net
│ │ │ │ │ ├── DataStoreClient.java
│ │ │ │ │ ├── DataStoreClientRemote.java
│ │ │ │ │ ├── DataStoreProtocol.java
│ │ │ │ │ ├── DataStoreProtocolClient.java
│ │ │ │ │ ├── DataStoreServer.java
│ │ │ │ │ ├── DataStoreServerImpl.java
│ │ │ │ │ ├── DataStoreServerRemote.java
│ │ │ │ │ └── package-info.java
│ │ │ │ │ └── package-info.java
│ │ │ ├── nodemap
│ │ │ │ ├── IdentityMO.java
│ │ │ │ ├── NoNodesAvailableException.java
│ │ │ │ ├── NodeAssignPolicy.java
│ │ │ │ ├── NodeMapUtil.java
│ │ │ │ ├── NodeMappingServer.java
│ │ │ │ ├── NodeMappingServerImpl.java
│ │ │ │ ├── NodeMappingServiceImpl.java
│ │ │ │ ├── NodeMappingServiceStats.java
│ │ │ │ ├── NotifyClient.java
│ │ │ │ ├── affinity
│ │ │ │ │ ├── AbstractLPA.java
│ │ │ │ │ ├── AffinityGroup.java
│ │ │ │ │ ├── AffinityGroupFinder.java
│ │ │ │ │ ├── AffinityGroupFinderFailedException.java
│ │ │ │ │ ├── AffinityGroupFinderStats.java
│ │ │ │ │ ├── AffinityGroupGoodness.java
│ │ │ │ │ ├── AffinitySet.java
│ │ │ │ │ ├── BasicState.java
│ │ │ │ │ ├── LPAAffinityGroupFinder.java
│ │ │ │ │ ├── LPADriver.java
│ │ │ │ │ ├── RelocatingAffinityGroup.java
│ │ │ │ │ ├── dgb
│ │ │ │ │ │ ├── DistGraphBuilder.java
│ │ │ │ │ │ ├── DistGraphBuilderServer.java
│ │ │ │ │ │ ├── DistGraphBuilderServerImpl.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── dlpa
│ │ │ │ │ │ ├── LPAClient.java
│ │ │ │ │ │ ├── LPAServer.java
│ │ │ │ │ │ ├── LabelPropagation.java
│ │ │ │ │ │ ├── LabelPropagationServer.java
│ │ │ │ │ │ ├── graph
│ │ │ │ │ │ │ ├── BipartiteGraphBuilder.java
│ │ │ │ │ │ │ ├── DLPAGraphBuilder.java
│ │ │ │ │ │ │ ├── WeightedGraphBuilder.java
│ │ │ │ │ │ │ └── package-info.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── graph
│ │ │ │ │ │ ├── AbstractAffinityGraphBuilder.java
│ │ │ │ │ │ ├── AffinityGraphBuilder.java
│ │ │ │ │ │ ├── AffinityGraphBuilderStats.java
│ │ │ │ │ │ ├── GraphListener.java
│ │ │ │ │ │ ├── LabelVertex.java
│ │ │ │ │ │ ├── WeightedEdge.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ ├── package-info.java
│ │ │ │ │ └── single
│ │ │ │ │ │ ├── SingleGraphBuilder.java
│ │ │ │ │ │ ├── SingleLabelPropagation.java
│ │ │ │ │ │ └── package-info.java
│ │ │ │ ├── package-info.java
│ │ │ │ └── policy
│ │ │ │ │ ├── AbstractNodePolicy.java
│ │ │ │ │ ├── LocalNodePolicy.java
│ │ │ │ │ ├── RoundRobinPolicy.java
│ │ │ │ │ └── package-info.java
│ │ │ ├── session
│ │ │ │ ├── ClientSessionHandler.java
│ │ │ │ ├── ClientSessionImpl.java
│ │ │ │ ├── ClientSessionServer.java
│ │ │ │ ├── ClientSessionServiceImpl.java
│ │ │ │ ├── ClientSessionServiceStats.java
│ │ │ │ ├── ClientSessionWrapper.java
│ │ │ │ ├── NodeAssignment.java
│ │ │ │ └── package-info.java
│ │ │ ├── task
│ │ │ │ ├── FixedTimeContinuePolicy.java
│ │ │ │ ├── PendingTask.java
│ │ │ │ ├── TaskServiceImpl.java
│ │ │ │ ├── TaskServiceStats.java
│ │ │ │ └── package-info.java
│ │ │ ├── transaction
│ │ │ │ ├── ProfileParticipantDetailImpl.java
│ │ │ │ ├── TransactionCoordinator.java
│ │ │ │ ├── TransactionCoordinatorImpl.java
│ │ │ │ ├── TransactionHandle.java
│ │ │ │ ├── TransactionImpl.java
│ │ │ │ ├── TransactionListenerDetailImpl.java
│ │ │ │ └── package-info.java
│ │ │ └── watchdog
│ │ │ │ ├── NodeImpl.java
│ │ │ │ ├── NodeRegistrationFailedException.java
│ │ │ │ ├── WatchdogClient.java
│ │ │ │ ├── WatchdogServer.java
│ │ │ │ ├── WatchdogServerImpl.java
│ │ │ │ ├── WatchdogServiceImpl.java
│ │ │ │ ├── WatchdogServiceStats.java
│ │ │ │ └── package-info.java
│ │ │ ├── transport
│ │ │ └── tcp
│ │ │ │ ├── TcpDescriptor.java
│ │ │ │ ├── TcpTransport.java
│ │ │ │ └── package-info.java
│ │ │ └── util
│ │ │ ├── AbstractCompletionFuture.java
│ │ │ ├── AbstractKernelRunnable.java
│ │ │ ├── AbstractService.java
│ │ │ ├── AdaptiveField.java
│ │ │ ├── BindingKeyedCollections.java
│ │ │ ├── BindingKeyedCollectionsImpl.java
│ │ │ ├── BindingKeyedMap.java
│ │ │ ├── BindingKeyedMapImpl.java
│ │ │ ├── BindingKeyedSet.java
│ │ │ ├── BindingKeyedSetImpl.java
│ │ │ ├── BoundNamesUtil.java
│ │ │ ├── CacheMap.java
│ │ │ ├── DataStreamUtil.java
│ │ │ ├── Exporter.java
│ │ │ ├── Int30.java
│ │ │ ├── IoRunnable.java
│ │ │ ├── KernelCallable.java
│ │ │ ├── ManagedQueue.java
│ │ │ ├── NamedThreadFactory.java
│ │ │ ├── Numbers.java
│ │ │ ├── TransactionContext.java
│ │ │ ├── TransactionContextFactory.java
│ │ │ ├── TransactionContextMap.java
│ │ │ ├── Version.java
│ │ │ ├── WeakIdentityMap.java
│ │ │ ├── WrappedSerializable.java
│ │ │ ├── lock
│ │ │ ├── BasicLocker.java
│ │ │ ├── Lock.java
│ │ │ ├── LockAttemptResult.java
│ │ │ ├── LockConflict.java
│ │ │ ├── LockConflictType.java
│ │ │ ├── LockManager.java
│ │ │ ├── LockRequest.java
│ │ │ ├── Locker.java
│ │ │ ├── MultiLockManager.java
│ │ │ ├── MultiLocker.java
│ │ │ ├── TxnLockManager.java
│ │ │ ├── TxnLocker.java
│ │ │ └── package-info.java
│ │ │ └── package-info.java
│ └── resources
│ │ ├── all-overview.html
│ │ └── com
│ │ └── sun
│ │ └── sgs
│ │ ├── impl
│ │ └── kernel
│ │ │ └── doc-files
│ │ │ ├── app-node.properties
│ │ │ ├── config-properties.css
│ │ │ ├── config-properties.html
│ │ │ ├── core-server.properties
│ │ │ └── single-node.properties
│ │ └── sgs.version
│ └── test
│ ├── java
│ └── com
│ │ └── sun
│ │ └── sgs
│ │ ├── impl
│ │ └── kernel
│ │ │ ├── TestKernelCustomServices.java
│ │ │ ├── TestScheduledTaskImpl.java
│ │ │ ├── TestTransactionSchedulerImpl.java
│ │ │ └── schedule
│ │ │ ├── TestImmediateRetryPolicy.java
│ │ │ ├── TestNowOrLaterRetryPolicy.java
│ │ │ ├── TestNowOrLaterRetryPolicyIntegration.java
│ │ │ └── TestSchedulerQueueImpl.java
│ │ └── test
│ │ ├── app
│ │ ├── TestAppContext.java
│ │ ├── TestDelivery.java
│ │ └── util
│ │ │ ├── DoneRemoving.java
│ │ │ ├── TestScalableDeque.java
│ │ │ ├── TestScalableHashMap.java
│ │ │ ├── TestScalableHashMapStress.java
│ │ │ ├── TestScalableHashSet.java
│ │ │ └── TestScalableList.java
│ │ ├── impl
│ │ ├── kernel
│ │ │ ├── BasicAccessCoordinatorTest.java
│ │ │ ├── KernelSimpleAppTestCase.java
│ │ │ ├── SimpleApp.java
│ │ │ ├── TestKernelAppListeners.java
│ │ │ ├── TestKernelNoAppStartup.java
│ │ │ ├── TestKernelSetAccessCoordinator.java
│ │ │ ├── TestKernelSimpleApp.java
│ │ │ ├── TestKernelSimpleAppRestart.java
│ │ │ ├── TestKernelStartupContext.java
│ │ │ ├── TestLockingAccessCoordinator.java
│ │ │ ├── TestLoggerPropertiesInit.java
│ │ │ ├── TestTaskSchedulerImpl.java
│ │ │ ├── TestTrackingAccessCoordinator.java
│ │ │ └── TestTransactionalHandler.java
│ │ ├── nio
│ │ │ ├── EchoClient.java
│ │ │ ├── EchoServer.java
│ │ │ └── VerboseThreadFactory.java
│ │ ├── profile
│ │ │ ├── CounterReportRunnable.java
│ │ │ ├── OperationReportRunnable.java
│ │ │ ├── SampleReportRunnable.java
│ │ │ ├── SimpleTestListener.java
│ │ │ ├── TestMBeans.java
│ │ │ ├── TestProfileCollectorImpl.java
│ │ │ ├── TestProfileConsumerImpl.java
│ │ │ ├── TestProfileDataAggregateImpl.java
│ │ │ ├── TestProfileDataTaskImpl.java
│ │ │ └── TestReportedTxnMembers.java
│ │ ├── protocol
│ │ │ └── simple
│ │ │ │ └── TestSimpleSgsProtocol.java
│ │ ├── service
│ │ │ ├── channel
│ │ │ │ ├── AbstractChannelServiceTest.java
│ │ │ │ ├── TestChannelServiceImpl.java
│ │ │ │ └── TestChannelServiceImplRelocatingSessions.java
│ │ │ ├── data
│ │ │ │ ├── BasicDataServiceMultiTest.java
│ │ │ │ ├── TestDataServiceConcurrency.java
│ │ │ │ ├── TestDataServiceImpl.java
│ │ │ │ ├── TestDataServicePerformance.java
│ │ │ │ └── store
│ │ │ │ │ ├── BasicDataStoreTestEnv.java
│ │ │ │ │ ├── BasicTxnIsolationTest.java
│ │ │ │ │ ├── JeOnlyFilteredNameRunner.java
│ │ │ │ │ ├── TestAbstractDataStoreTxnIsolation.java
│ │ │ │ │ ├── TestDataEncoding.java
│ │ │ │ │ ├── TestDataStoreImpl.java
│ │ │ │ │ ├── TestDataStoreImplPlaceholders.java
│ │ │ │ │ ├── TestDataStoreImplTxnIsolation.java
│ │ │ │ │ ├── TestDataStorePerformance.java
│ │ │ │ │ ├── db
│ │ │ │ │ └── TestDbEnvironment.java
│ │ │ │ │ └── net
│ │ │ │ │ ├── TestDataServiceClient.java
│ │ │ │ │ ├── TestDataServiceClientConcurrency.java
│ │ │ │ │ ├── TestDataServiceClientMulti.java
│ │ │ │ │ ├── TestDataServiceClientPerformance.java
│ │ │ │ │ ├── TestDataStoreClient.java
│ │ │ │ │ ├── TestDataStoreClientPerformance.java
│ │ │ │ │ └── TestDataStoreServerImpl.java
│ │ │ ├── nodemap
│ │ │ │ ├── EvilProxy.java
│ │ │ │ ├── TestNodeMappingServiceImpl.java
│ │ │ │ └── affinity
│ │ │ │ │ ├── AbstractTestGraphBuilder.java
│ │ │ │ │ ├── GraphBuilderTests.java
│ │ │ │ │ ├── TestAffinityGroupGoodness.java
│ │ │ │ │ ├── TestDistGraphBuilder.java
│ │ │ │ │ ├── TestDistLPABuilder.java
│ │ │ │ │ ├── TestLPA.java
│ │ │ │ │ ├── TestLPADistGraphPerf.java
│ │ │ │ │ ├── TestLPAPerf.java
│ │ │ │ │ ├── TestSingleNodeBuilder.java
│ │ │ │ │ └── ZachBuilder.java
│ │ │ ├── session
│ │ │ │ ├── TestClientSessionServiceImpl.java
│ │ │ │ ├── TestClientSessionServiceImplv4.java
│ │ │ │ └── TestClientSessionServiceImplv5.java
│ │ │ ├── task
│ │ │ │ ├── DummyNodeMappingService.java
│ │ │ │ ├── DummyWatchdogService.java
│ │ │ │ ├── TestMultiNodeTaskServiceImpl.java
│ │ │ │ └── TestTaskServiceImpl.java
│ │ │ ├── transaction
│ │ │ │ └── TestTransactionCoordinatorImpl.java
│ │ │ └── watchdog
│ │ │ │ └── TestWatchdogServiceImpl.java
│ │ ├── transport
│ │ │ └── tcp
│ │ │ │ └── TestTcpTransport.java
│ │ └── util
│ │ │ ├── DummyDataService.java
│ │ │ ├── TestAbstractService.java
│ │ │ ├── TestBindingKeyedMapImpl.java
│ │ │ ├── TestBindingKeyedSetImpl.java
│ │ │ ├── TestBoundNamesUtil.java
│ │ │ ├── TestInt30.java
│ │ │ ├── TestKernelCallable.java
│ │ │ ├── TestNumbers.java
│ │ │ ├── TestTransactionContextFactory.java
│ │ │ └── lock
│ │ │ ├── TestLockManager.java
│ │ │ ├── TestMultiLockManager.java
│ │ │ └── TestTxnLockManager.java
│ │ └── util
│ │ ├── AbstractDummyClient.java
│ │ ├── ConfigurableNodePolicy.java
│ │ ├── Constants.java
│ │ ├── DummyIdentity.java
│ │ ├── DummyKernelRunnable.java
│ │ ├── DummyManagedObject.java
│ │ ├── DummyNonDurableTransactionParticipant.java
│ │ ├── DummyProfileCollectorHandle.java
│ │ ├── DummyProfileCoordinator.java
│ │ ├── DummyTransaction.java
│ │ ├── DummyTransactionListener.java
│ │ ├── DummyTransactionParticipant.java
│ │ ├── DummyTransactionProxy.java
│ │ ├── IdentityAssigner.java
│ │ ├── InMemoryDataStore.java
│ │ ├── PackageConstructor.java
│ │ ├── PackageReadResolve.java
│ │ ├── PackageSuperclassConstructor.java
│ │ ├── PackageWriteReplace.java
│ │ ├── PrivateReadResolve.java
│ │ ├── PrivateWriteReplace.java
│ │ ├── ProtectedConstructor.java
│ │ ├── ProtectedReadResolve.java
│ │ ├── ProtectedWriteReplace.java
│ │ ├── PublicConstructor.java
│ │ ├── PublicReadResolve.java
│ │ ├── PublicWriteReplace.java
│ │ ├── SgsTestNode.java
│ │ ├── SimpleTestIdentityAuthenticator.java
│ │ ├── TestAbstractKernelRunnable.java
│ │ ├── TestSgsTestNode.java
│ │ ├── UtilDataStoreDb.java
│ │ ├── UtilProperties.java
│ │ ├── UtilReflection.java
│ │ └── UtilThreadGroup.java
│ ├── properties
│ └── logging.properties
│ └── resources
│ └── com
│ └── sun
│ └── sgs
│ └── test
│ └── impl
│ └── kernel
│ └── TestLoggerPropertiesInit.resource
├── sgs-stop
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ └── main
│ └── java
│ └── com
│ └── sun
│ └── sgs
│ └── system
│ └── stop
│ ├── Stop.java
│ └── package-info.java
├── sgs-tutorial-server-dist
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
│ └── main
│ ├── assembly
│ └── dist.xml
│ ├── conf
│ ├── HelloChannels.boot
│ ├── HelloChannels.properties
│ ├── HelloEcho.boot
│ ├── HelloEcho.properties
│ ├── HelloLogger.boot
│ ├── HelloLogger.properties
│ ├── HelloPersistence.boot
│ ├── HelloPersistence.properties
│ ├── HelloPersistence2.boot
│ ├── HelloPersistence2.properties
│ ├── HelloPersistence3.boot
│ ├── HelloPersistence3.properties
│ ├── HelloTimer.boot
│ ├── HelloTimer.properties
│ ├── HelloUser.boot
│ ├── HelloUser.properties
│ ├── HelloUser2.boot
│ ├── HelloUser2.properties
│ ├── HelloWorld.boot
│ ├── HelloWorld.properties
│ ├── SwordWorld.boot
│ ├── SwordWorld.properties
│ └── logging.properties
│ └── doc
│ └── TUTORIAL.txt
└── sgs-tutorial-server
├── .classpath
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
└── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
└── main
├── assembly
└── sources.xml
├── etc
└── findbugs-exclude.xml
├── java
└── com
│ └── sun
│ └── sgs
│ └── tutorial
│ └── server
│ ├── lesson1
│ ├── HelloWorld.java
│ └── package-info.java
│ ├── lesson2
│ ├── HelloLogger.java
│ └── package-info.java
│ ├── lesson3
│ ├── HelloTimer.java
│ └── package-info.java
│ ├── lesson4
│ ├── HelloPersistence.java
│ ├── HelloPersistence2.java
│ ├── HelloPersistence3.java
│ ├── TrivialTimedTask.java
│ └── package-info.java
│ ├── lesson5
│ ├── HelloEcho.java
│ ├── HelloEchoSessionListener.java
│ ├── HelloUser.java
│ ├── HelloUser2.java
│ ├── HelloUserSessionListener.java
│ └── package-info.java
│ ├── lesson6
│ ├── HelloChannels.java
│ ├── HelloChannelsChannelListener.java
│ ├── HelloChannelsSessionListener.java
│ └── package-info.java
│ └── swordworld
│ ├── SwordWorld.java
│ ├── SwordWorldObject.java
│ ├── SwordWorldPlayer.java
│ ├── SwordWorldRoom.java
│ └── package-info.java
└── resources
└── META-INF
└── app.properties
/.gitignore:
--------------------------------------------------------------------------------
1 | target/
2 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | mepeisen-reddwarf
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_configure-no-txn:
--------------------------------------------------------------------------------
1 | 2802
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane:
--------------------------------------------------------------------------------
1 | 6645
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-80:
--------------------------------------------------------------------------------
1 | 4771
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-app-proto:
--------------------------------------------------------------------------------
1 | 3672
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-bug:
--------------------------------------------------------------------------------
1 | 5991
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-bug-1:
--------------------------------------------------------------------------------
1 | 5227
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-checkstyle:
--------------------------------------------------------------------------------
1 | 5117
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-collector-refactor:
--------------------------------------------------------------------------------
1 | 5055
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-jmx:
--------------------------------------------------------------------------------
1 | 4696
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-jmx-tests:
--------------------------------------------------------------------------------
1 | 5036
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-review:
--------------------------------------------------------------------------------
1 | 4222
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jane-test:
--------------------------------------------------------------------------------
1 | 2877
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_jmegq-channel:
--------------------------------------------------------------------------------
1 | 3966
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_kbt:
--------------------------------------------------------------------------------
1 | 4444
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_kbt-build:
--------------------------------------------------------------------------------
1 | 4125
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_kbt-doc:
--------------------------------------------------------------------------------
1 | 4121
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_kbt1:
--------------------------------------------------------------------------------
1 | 108
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_merged-io:
--------------------------------------------------------------------------------
1 | 5556
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_node-health-phase1:
--------------------------------------------------------------------------------
1 | 6499
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_recovery:
--------------------------------------------------------------------------------
1 | 3530
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_session-limit:
--------------------------------------------------------------------------------
1 | 61
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim:
--------------------------------------------------------------------------------
1 | 4512
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-classes:
--------------------------------------------------------------------------------
1 | 2257
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-deadlock:
--------------------------------------------------------------------------------
1 | 1331
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-extra:
--------------------------------------------------------------------------------
1 | 3886
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-fixes:
--------------------------------------------------------------------------------
1 | 3903
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-misc:
--------------------------------------------------------------------------------
1 | 3171
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-more-fixes:
--------------------------------------------------------------------------------
1 | 4149
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-netstore:
--------------------------------------------------------------------------------
1 | 2156
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-perf:
--------------------------------------------------------------------------------
1 | 3806
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-release:
--------------------------------------------------------------------------------
1 | 4187
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-review:
--------------------------------------------------------------------------------
1 | 4237
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-svnbranch:
--------------------------------------------------------------------------------
1 | 3090
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-throttle-integration:
--------------------------------------------------------------------------------
1 | 4025
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-txn:
--------------------------------------------------------------------------------
1 | 2027
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-util:
--------------------------------------------------------------------------------
1 | 3633
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tim-util-perf:
--------------------------------------------------------------------------------
1 | 3348
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tjb:
--------------------------------------------------------------------------------
1 | 5758
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tjb-misc:
--------------------------------------------------------------------------------
1 | 6418
2 |
--------------------------------------------------------------------------------
/.svnbranch/mergeup_tjb-write-cache:
--------------------------------------------------------------------------------
1 | 5753
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane:
--------------------------------------------------------------------------------
1 | 6620
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-80:
--------------------------------------------------------------------------------
1 | 4770
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-app-proto:
--------------------------------------------------------------------------------
1 | 3659
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-bug:
--------------------------------------------------------------------------------
1 | 5986
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-checkstyle:
--------------------------------------------------------------------------------
1 | 5105
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-collector-refactor:
--------------------------------------------------------------------------------
1 | 5044
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-jmx:
--------------------------------------------------------------------------------
1 | 4693
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-jmx-tests:
--------------------------------------------------------------------------------
1 | 5026
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-review:
--------------------------------------------------------------------------------
1 | 4213
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jane-test:
--------------------------------------------------------------------------------
1 | 2866
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_jmegq-channel:
--------------------------------------------------------------------------------
1 | 3954
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_kbt-build:
--------------------------------------------------------------------------------
1 | 4122
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_kbt1:
--------------------------------------------------------------------------------
1 | 104
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_merged-io:
--------------------------------------------------------------------------------
1 | 5531
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_node-health-phase1:
--------------------------------------------------------------------------------
1 | 6478
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_recovery:
--------------------------------------------------------------------------------
1 | 3502
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_session-limit:
--------------------------------------------------------------------------------
1 | 59
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim:
--------------------------------------------------------------------------------
1 | 4507
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-classes:
--------------------------------------------------------------------------------
1 | 2250
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-deadlock:
--------------------------------------------------------------------------------
1 | 1306
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-extra:
--------------------------------------------------------------------------------
1 | 3863
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-fixes:
--------------------------------------------------------------------------------
1 | 3900
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-misc:
--------------------------------------------------------------------------------
1 | 3369
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-more-fixes:
--------------------------------------------------------------------------------
1 | 4140
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-netstore:
--------------------------------------------------------------------------------
1 | 2143
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-perf:
--------------------------------------------------------------------------------
1 | 3788
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-release:
--------------------------------------------------------------------------------
1 | 4185
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-review:
--------------------------------------------------------------------------------
1 | 4230
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-svnbranch:
--------------------------------------------------------------------------------
1 | 3071
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-throttle-integration:
--------------------------------------------------------------------------------
1 | 4024
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-txn:
--------------------------------------------------------------------------------
1 | 2019
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-util:
--------------------------------------------------------------------------------
1 | 3577
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tim-util-perf:
--------------------------------------------------------------------------------
1 | 3338
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tjb:
--------------------------------------------------------------------------------
1 | 5754
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tjb-misc:
--------------------------------------------------------------------------------
1 | 6402
2 |
--------------------------------------------------------------------------------
/.svnbranch/refresh_tjb-write-cache:
--------------------------------------------------------------------------------
1 | 6269
2 |
--------------------------------------------------------------------------------
/README:
--------------------------------------------------------------------------------
1 | This is the github release of Reddwarf server, formerly Project Darkstar.
2 |
3 | This repository is converted from a compilation of SVN repositories:
4 |
5 | https://svn.java.net/svn/sgs-server~svn
6 | https://svn.java.net/svn/sgs-shared~svn
7 | https://svn.java.net/svn/sgs-java-client~svn
8 | https://svn.java.net/svn/sgs-c-client~svn
9 | https://svn.java.net/svn/sgs-build~svn
10 | https://svn.java.net/svn/sgs-maven-plugin~svn
11 | https://svn.java.net/svn/sgs-tests~svn
12 | https://svn.java.net/svn/darkstar-chat~svn
13 | https://svn.java.net/svn/darkstar-hack~svn
14 | https://svn.java.net/svn/darkstar-request~svn
15 | https://svn.java.net/svn/dtc~svn
16 | https://reddwarf.svn.sourceforge.net/svnroot/reddwarf
17 |
18 | Everything originates from a single sunlabs SVN repository. This repository
19 | was later imported into the sgs-server repository at java.net, and also
20 | seeded various spinoffs; the sgs-maven-plugin repository was added later.
21 | Eventually, the reddwarf repository was created from a snapshot of the
22 | sgs-server, sgs-shared, sgs-java-client, sgs-c-client, sgs-build and
23 | sgs-maven-plugin source code.
24 |
25 | Everything is gathered in a single repository. The merge history, which was
26 | missing or faulty in the SVN repositories, has been manually reconstructed
27 | from commit comments and svnbranch information.
28 |
29 | Each project has its own branch in the repository:
30 |
31 | sgs-server (the master branch)
32 | sgs-shared
33 | sgs-java-client
34 | sgs-c-client
35 | sgs-build
36 | sgs-maven-plugin
37 | analysis
38 | dtc
39 | chat
40 | hack
41 | request
42 | qa (sgs-tests)
43 |
44 | Various developer branches with non-trivial changes have also been preserved.
45 |
--------------------------------------------------------------------------------
/sgs-boot/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/sgs-boot/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-boot
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-boot/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/sgs-boot/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.5
6 |
--------------------------------------------------------------------------------
/sgs-boot/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-boot/src/main/etc/findbugs-exclude.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/sgs-boot/src/main/java/com/sun/sgs/system/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this file have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license that can be found
5 | * in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * --
26 | */
27 |
28 | /**
29 | * Provides utilities to bootstrap and launch a
30 | * RedDwarf Server application.
31 | */
32 | package com.sun.sgs.system;
33 |
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/A.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/A.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/ADependsOnB.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/ADependsOnB.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/APropertyCollision.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/APropertyCollision.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/APropertyDuplicate.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/APropertyDuplicate.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/AWithServices.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/AWithServices.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/B.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/B.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/BDependsOnA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/BDependsOnA.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/BDependsOnAAndC.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/BDependsOnAAndC.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/BWithServices.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/BWithServices.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/C.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/C.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/CDependsOnA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/CDependsOnA.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/CWithServices.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/CWithServices.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/DDependsOnAAndB.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/DDependsOnAAndB.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/DWithServices.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/DWithServices.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/InvalidProperties.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/InvalidProperties.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/MisMatchedNodeTypes.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/MisMatchedNodeTypes.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/MisMatchedServices.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/MisMatchedServices.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/NoManifest.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/NoManifest.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/NoName.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/NoName.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/NoProperties.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/NoProperties.jar
--------------------------------------------------------------------------------
/sgs-boot/src/test/test-jars/NoVersion.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reddwarf-nextgen/reddwarf/a663ad9252aae451c59fb96cb22a310e084e0a5b/sgs-boot/src/test/test-jars/NoVersion.jar
--------------------------------------------------------------------------------
/sgs-server-api/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/sgs-server-api/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-server-api
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-server-api/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/sgs-server-api/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.6
6 |
--------------------------------------------------------------------------------
/sgs-server-api/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-server-api/src/main/assembly/sources.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 | sources
6 |
7 | false
8 |
9 | jar
10 |
11 |
12 |
13 |
14 |
15 |
16 | src/main/java
17 |
18 |
19 |
20 |
21 |
22 | src/main/resources
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/sgs-server-api/src/main/java/com/sun/sgs/app/ExceptionRetryStatus.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.app;
27 |
28 | /**
29 | * Implemented by exception classes that want to control whether an operation
30 | * that throws an exception of that exception should be retried.
31 | */
32 | public interface ExceptionRetryStatus {
33 |
34 | /**
35 | * Provides information about whether an operation that threw this
36 | * exception should be retried.
37 | *
38 | * @return true if the operation should be retried, else
39 | * false
40 | */
41 | boolean shouldRetry();
42 | }
43 |
--------------------------------------------------------------------------------
/sgs-server-api/src/main/java/com/sun/sgs/app/Task.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.app;
27 |
28 | import java.io.Serializable;
29 |
30 | /**
31 | * Defines an application operation that will be run by the {@link
32 | * TaskManager}. Classes that implement Task must also implement
33 | * {@link Serializable}.
34 | *
35 | * @see TaskManager
36 | */
37 | public interface Task {
38 |
39 | /**
40 | * Performs an action, throwing an exception if the action fails.
41 | *
42 | * @throws Exception if the action fails
43 | */
44 | void run() throws Exception;
45 | }
46 |
--------------------------------------------------------------------------------
/sgs-server-api/src/main/java/com/sun/sgs/app/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this distribution have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license with "Classpath"
5 | * exception that can be found in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * Sun designates this particular file as subject to the "Classpath"
26 | * exception as provided by Sun in the LICENSE file that accompanied
27 | * this code.
28 | *
29 | * --
30 | */
31 |
32 | /**
33 | * Provides the interface to the RedDwarf Server used by application
34 | * developers.
35 | */
36 | package com.sun.sgs.app;
37 |
--------------------------------------------------------------------------------
/sgs-server-api/src/main/java/com/sun/sgs/app/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this distribution have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license with "Classpath"
5 | * exception that can be found in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * Sun designates this particular file as subject to the "Classpath"
26 | * exception as provided by Sun in the LICENSE file that accompanied
27 | * this code.
28 | *
29 | * --
30 | */
31 |
32 | /**
33 | * Provides utilities for use by RedDwarf Server application
34 | * developers.
35 | */
36 | package com.sun.sgs.app.util;
37 |
--------------------------------------------------------------------------------
/sgs-server-api/src/main/java/com/sun/sgs/internal/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this distribution have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license with "Classpath"
5 | * exception that can be found in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * Sun designates this particular file as subject to the "Classpath"
26 | * exception as provided by Sun in the LICENSE file that accompanied
27 | * this code.
28 | *
29 | * --
30 | */
31 |
32 | /**
33 | * Provides implementation hooks for a RedDwarf Server to configure
34 | * the underlying behavior of the system.
35 | */
36 | package com.sun.sgs.internal;
37 |
--------------------------------------------------------------------------------
/sgs-server-dist/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-server-dist
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/sgs-server-dist/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/sgs-server-dist/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-server-dist/src/main/etc/AUTHORS:
--------------------------------------------------------------------------------
1 | # This is the official list of contributors to RedDwarf Server
2 | #
3 | # RedDwarf was originally created as Project Darkstar by
4 | # Sun Microsystems, Inc. RedDwarf forked the Project Darkstar
5 | # codebase on February 4, 2010 and the following individuals
6 | # and companies have contributed to the project since then:
7 |
8 | Owen Kellett (owen.kellettgmail.com)
9 | Keith B Thompson (kbt1charter.com)
10 |
--------------------------------------------------------------------------------
/sgs-server-dist/src/main/etc/license/NOTICE-gpl:
--------------------------------------------------------------------------------
1 | Copyright ${project.inceptionYear}-${projectYear} Sun Microsystems, Inc.
2 |
3 | This file is part of Project Darkstar Server.
4 |
5 | Project Darkstar Server is free software: you can redistribute it
6 | and/or modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation and
8 | distributed hereunder to you.
9 |
10 | Project Darkstar Server is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License
16 | along with this program. If not, see .
17 |
18 | To obtain the source code for Project Darkstar Server, see
19 | .
20 |
--------------------------------------------------------------------------------
/sgs-server-dist/src/main/etc/license/NOTICE.bdb:
--------------------------------------------------------------------------------
1 | This product includes Berkeley DB software. To obtain the source code
2 | for the Berkeley DB software, see
3 |
4 |
--------------------------------------------------------------------------------
/sgs-server-dist/src/main/etc/license/NOTICE.bdb-je:
--------------------------------------------------------------------------------
1 | This product includes Berkeley DB Java Edition software. To obtain the
2 | source code for the Berkeley DB Java Edition software, see
3 |
4 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-server-internal-api
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding/=UTF-8
4 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.6
6 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/assembly/sources.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 | sources
6 |
7 | false
8 |
9 | jar
10 |
11 |
12 |
13 |
14 |
15 |
16 | src/main/java
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/etc/findbugs-exclude.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/auth/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /**
27 | * Provides interfaces for identities and how to authenticate them.
28 | */
29 | package com.sun.sgs.auth;
30 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/kernel/NodeType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.kernel;
27 |
28 | /**
29 | * The valid node types.
30 | */
31 | public enum NodeType {
32 | /** A single node configuration. */
33 | singleNode,
34 | /** The core server for multi-node configurations. */
35 | coreServerNode,
36 | /** An application node for multi-node configurations. */
37 | appNode,
38 | }
39 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/kernel/TaskQueue.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.kernel;
27 |
28 | import com.sun.sgs.auth.Identity;
29 |
30 |
31 | /**
32 | * This interface defines a dependency between tasks, such that tasks are
33 | * run in the order in which they are submitted, and the next task isn't
34 | * started until the current task has completed.
35 | */
36 | public interface TaskQueue {
37 |
38 | /**
39 | * Adds a task to this dependency queue.
40 | *
41 | * @param task the {@code KernelRunnable} to add
42 | * @param owner the {@code Identity} that owns the task
43 | */
44 | void addTask(KernelRunnable task, Identity owner);
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/kernel/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this distribution have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license with "Classpath"
5 | * exception that can be found in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * Sun designates this particular file as subject to the "Classpath"
26 | * exception as provided by Sun in the LICENSE file that accompanied
27 | * this code.
28 | *
29 | * --
30 | */
31 |
32 | /**
33 | * Provides the core system interfaces used by the RedDwarf Server.
34 | */
35 | package com.sun.sgs.kernel;
36 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/kernel/schedule/SchedulerRetryAction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.kernel.schedule;
27 |
28 | /**
29 | * Enumeration of possible retry actions that a scheduler can use to
30 | * retry a failed task.
31 | */
32 | public enum SchedulerRetryAction {
33 |
34 | /**
35 | * Indicates that a task should be dropped.
36 | */
37 | DROP,
38 |
39 | /**
40 | * Indicates that a task should be retried at some point in the future.
41 | */
42 | RETRY_LATER,
43 |
44 | /**
45 | * Indicates that a task should be retried immediately.
46 | */
47 | RETRY_NOW;
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/kernel/schedule/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /**
27 | * Provides queue ordering and retry behavior abstractions that may be used
28 | * by scheduler implementations. See the
29 | * {@code com.sun.sgs.impl.kernel.TransactionSchedulerImpl} class for
30 | * details of how the default scheduler uses these interfaces.
31 | */
32 | package com.sun.sgs.kernel.schedule;
33 |
34 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/management/KernelMXBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.management;
27 |
28 |
29 | /**
30 | * The management interface for the kernel.
31 | *
32 | * An instance implementing this MBean can be obtained from the
33 | * {@link java.lang.management.ManagementFactory.html#getPlatformMBeanServer()
34 | * getPlatformMBeanServer} method.
35 | *
36 | * The {@code ObjectName} for uniquely identifying this MBean is
37 | * {@value #MXBEAN_NAME}.
38 | */
39 | public interface KernelMXBean {
40 |
41 | /** The name for uniquely identifying this MBean. */
42 | String MXBEAN_NAME = "com.sun.sgs:type=Kernel";
43 |
44 | /** Requests that this node starts an orderly shutdown. */
45 | void requestShutdown();
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/AbortedByTimeoutException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | import java.io.IOException;
29 |
30 | /**
31 | * Checked exception received by a thread when a timeout elapses before an
32 | * asynchronous I/O operation completes.
33 | */
34 | public class AbortedByTimeoutException
35 | extends IOException
36 | {
37 | /** The version of the serialized representation of this class. */
38 | private static final long serialVersionUID = 1L;
39 |
40 | /**
41 | * Constructs an instance of this class.
42 | */
43 | public AbortedByTimeoutException() {
44 | super();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/AcceptPendingException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Unchecked exception thrown when an attempt is made to initiate an accept
30 | * operation on a channel and a previous accept operation has not completed.
31 | */
32 | public class AcceptPendingException
33 | extends IllegalStateException
34 | {
35 | /** The version of the serialized representation of this class. */
36 | private static final long serialVersionUID = 1L;
37 |
38 | /**
39 | * Constructs an instance of this class.
40 | */
41 | public AcceptPendingException() {
42 | super();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/AlreadyBoundException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Unchecked exception thrown when an attempt is made to bind the socket of
30 | * a network oriented channel that is already bound.
31 | */
32 | public class AlreadyBoundException
33 | extends IllegalStateException
34 | {
35 | /** The version of the serialized representation of this class. */
36 | private static final long serialVersionUID = 1L;
37 |
38 | /**
39 | * Constructs an instance of this class.
40 | */
41 | public AlreadyBoundException() {
42 | super();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/ClosedAsynchronousChannelException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Unchecked exception thrown when an attempt is made to initiate an
30 | * asynchronous operation on an asynchronous channel that is closed.
31 | */
32 | public class ClosedAsynchronousChannelException
33 | extends IllegalStateException
34 | {
35 | /** The version of the serialized representation of this class. */
36 | private static final long serialVersionUID = 1L;
37 |
38 | /**
39 | * Constructs an instance of this class.
40 | */
41 | public ClosedAsynchronousChannelException() {
42 | super();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/IllegalChannelStateException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Unchecked exception received when a channel operation is attempted that
30 | * has previously completed due to a timeout.
31 | *
32 | * [[Not specified by JSR-203, but referenced in the JSR-203 Javadoc]]
33 | */
34 | public class IllegalChannelStateException
35 | extends IllegalStateException
36 | {
37 | /** The version of the serialized representation of this class. */
38 | private static final long serialVersionUID = 1L;
39 |
40 | /**
41 | * Constructs an instance of this class.
42 | */
43 | public IllegalChannelStateException() {
44 | super();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/ProtocolFamily.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Represents a family of communication protocols.
30 | *
31 | * [[Note: JSR-203 creates this interface in {@code java.net}]]
32 | */
33 | public interface ProtocolFamily {
34 |
35 | /**
36 | * Returns the name of the protocol family.
37 | *
38 | * @return the name of the protocol family
39 | */
40 | String name();
41 | }
42 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/ReadPendingException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Unchecked exception thrown when an attempt is made to initiate a read
30 | * operation on a channel and a previous read operation has not completed.
31 | */
32 | public class ReadPendingException
33 | extends IllegalStateException
34 | {
35 | /** The version of the serialized representation of this class. */
36 | private static final long serialVersionUID = 1L;
37 |
38 | /**
39 | * Constructs an instance of this class.
40 | */
41 | public ReadPendingException() {
42 | super();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/ShutdownChannelGroupException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Unchecked exception thrown when an attempt is made to construct a channel
30 | * in a group that is shutdown.
31 | */
32 | public class ShutdownChannelGroupException
33 | extends IllegalStateException
34 | {
35 | /** The version of the serialized representation of this class. */
36 | private static final long serialVersionUID = 1L;
37 |
38 | /**
39 | * Constructs an instance of this class.
40 | */
41 | public ShutdownChannelGroupException() {
42 | super();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/ShutdownType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | import java.net.Socket;
29 |
30 | /**
31 | * A typesafe enumeration used when shutting down a connection on a
32 | * stream-oriented connecting socket.
33 | *
34 | * @see Socket#shutdownInput()
35 | * @see Socket#shutdownOutput()
36 | * @see AsynchronousSocketChannel#shutdown(ShutdownType)
37 | */
38 | public enum ShutdownType {
39 |
40 | /**
41 | * Further reads are disallowed.
42 | */
43 | READ,
44 |
45 | /**
46 | * Further writes are disallowed.
47 | */
48 | WRITE,
49 |
50 | /**
51 | * Further reads and writes are disallowed.
52 | */
53 | BOTH
54 | }
55 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/SocketOption.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * A socket option associated with a socket. A {@link NetworkChannel}
30 | * defines the {@link NetworkChannel#setOption setOption} and
31 | * {@link NetworkChannel#getOption getOption} methods to configure and query
32 | * the socket options of the channel's socket.
33 | */
34 | public interface SocketOption {
35 |
36 | /**
37 | * Returns the name of the socket option.
38 | *
39 | * @return the name of the socket option
40 | */
41 | String name();
42 |
43 | /**
44 | * Returns the type of the socket option value.
45 | *
46 | * @return the type of the socket option value
47 | */
48 | Class> type();
49 | }
50 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/StandardProtocolFamily.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Defines the standard family of communication protocols.
30 | *
31 | * [[Note: JSR-203 creates this interface in {@code java.net}]]
32 | */
33 | public enum StandardProtocolFamily implements ProtocolFamily {
34 | /** Internet Protocol Version 4 (IPv4). */
35 | INET,
36 |
37 | /** Internet Protocol Version 6 (IPv6). */
38 | INET6;
39 | }
40 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/WritePendingException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.nio.channels;
27 |
28 | /**
29 | * Unchecked exception thrown when an attempt is made to initiate a write
30 | * operation on a channel and a previous write operation has not completed.
31 | */
32 | public class WritePendingException
33 | extends IllegalStateException
34 | {
35 | /** The version of the serialized representation of this class. */
36 | private static final long serialVersionUID = 1L;
37 |
38 | /**
39 | * Constructs an instance of this class.
40 | */
41 | public WritePendingException() {
42 | super();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/nio/channels/spi/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /**
27 | * Service-provider classes for the {@link com.sun.sgs.nio.channels} package.
28 | *
29 | * Only developers who are defining new selector providers or asynchronous
30 | * channel providers should need to make direct use of this package.
31 | *
32 | * Unless otherwise noted, passing a {@code null} argument to a constructor
33 | * or method in any class or interface in this package will cause a
34 | * {@link java.lang.NullPointerException} to be thrown.
35 | */
36 | package com.sun.sgs.nio.channels.spi;
37 |
38 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/profile/AggregateProfileCounter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.profile;
27 |
28 | /**
29 | * A profile counter which is initially {@code 0}, and increments until it
30 | * is explicitly cleared.
31 | */
32 | public interface AggregateProfileCounter extends ProfileCounter {
33 |
34 | /**
35 | * Gets the current counter value.
36 | *
37 | * @return the current count value
38 | */
39 | long getCount();
40 |
41 | /**
42 | * Clear the counter, resetting it to {@code 0}.
43 | */
44 | void clearCount();
45 | }
46 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/profile/AggregateProfileOperation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.profile;
27 |
28 | /**
29 | * A profile operation which aggregates a count of how many times the operation
30 | * occurred until it is explicitly cleared.
31 | */
32 | public interface AggregateProfileOperation extends ProfileOperation {
33 |
34 | /**
35 | * Gets aggregate number of times this operation has been reported.
36 | *
37 | * @return the current count of operation reports
38 | */
39 | long getCount();
40 |
41 | /**
42 | * Clear the count of operation reports.
43 | */
44 | void clearCount();
45 | }
46 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/profile/ProfileOperation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.profile;
27 |
28 |
29 | /**
30 | * An operation which has occurred.
31 | *
32 | * Profile operations are created with calls to {@link
33 | * ProfileConsumer#createOperation ProfileConsumer.createOperation}. An
34 | * operations's name includes both the {@code name} supplied to
35 | * {@code createOperation} and the value of {@link ProfileConsumer#getName}.
36 | */
37 | public interface ProfileOperation {
38 |
39 | /**
40 | * Returns the name of this operation.
41 | *
42 | * @return the name
43 | */
44 | String getName();
45 |
46 | /**
47 | * Tells this operation to report that it is happening.
48 | */
49 | void report();
50 | }
51 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/profile/TaskProfileOperation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.profile;
27 |
28 | /**
29 | * An operation which provides task-local information to {@link ProfileReport}s.
30 | *
31 | * If operation occurs during a given task, the {@code ProfileReport}
32 | * for that task will include the operation.
33 | */
34 | public interface TaskProfileOperation extends ProfileOperation {
35 |
36 | /**
37 | * {@inheritDoc}
38 | *
39 | * @throws IllegalStateException if this is called outside the scope
40 | * of a task run through the scheduler
41 | */
42 | void report();
43 | }
44 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/profile/TaskProfileSample.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.profile;
27 |
28 | /**
29 | * A profile sample which provides information to {@link ProfileReport}s.
30 | *
31 | * If data is added to the sample during a given task, the {@code ProfileReport}
32 | * for that task will include the changes made, and exclude changes made while
33 | * running other tasks.
34 | */
35 | public interface TaskProfileSample extends ProfileSample {
36 |
37 | /**
38 | * {@inheritDoc}
39 | *
40 | * @throws IllegalStateException if this is called outside the scope
41 | * of a task run through the scheduler
42 | */
43 | void addSample(long value);
44 | }
45 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/profile/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /**
27 | * Interfaces used to create profiling information.
28 | */
29 | package com.sun.sgs.profile;
30 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/protocol/RequestCompletionHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.protocol;
27 |
28 | import java.util.concurrent.Future;
29 |
30 | /**
31 | * A completion handler for a request carried out by a {@link
32 | * SessionProtocolHandler}.
33 | *
34 | * @param the type of the request's result
35 | */
36 | public interface RequestCompletionHandler {
37 |
38 | /**
39 | * Notifies this handler that the request associated with this
40 | * handler is complete with the specified {@code result}.
41 | *
42 | * @param result a future containing the result of the
43 | * request
44 | */
45 | void completed(Future result);
46 | }
47 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/protocol/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /** Provides interfaces for the protocol layer. */
27 | package com.sun.sgs.protocol;
28 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/service/SimpleCompletionHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | package com.sun.sgs.service;
27 |
28 | /**
29 | * A handler to be notified when operations for an associated
30 | * request are complete.
31 | *
32 | * @see ClientSessionStatusListener#prepareToRelocate(
33 | * BigInteger,long,SimpleCompletionHandler)
34 | * @see IdentityRelocationListener#prepareToRelocate(
35 | * Identity,long,SimpleCompletionHandler)
36 | * @see RecoveryListener#recover(Node,SimpleCompletionHandler)
37 | */
38 | public interface SimpleCompletionHandler {
39 |
40 | /**
41 | * Notifies this handler that the operations initiated by the
42 | * request associated with this future are complete. This
43 | * method is idempotent and can be called multiple times.
44 | */
45 | void completed();
46 | }
47 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/service/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this distribution have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license with "Classpath"
5 | * exception that can be found in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * Sun designates this particular file as subject to the "Classpath"
26 | * exception as provided by Sun in the LICENSE file that accompanied
27 | * this code.
28 | *
29 | * --
30 | */
31 |
32 | /**
33 | * Provides interfaces and classes for services provided by the RedDwarf Server.
34 | */
35 | package com.sun.sgs.service;
36 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/service/store/db/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /**
27 | * Provides a database abstraction layer for use by the default implementation
28 | * of the {@link com.sun.sgs.service.store.DataStore} class.
29 | */
30 | package com.sun.sgs.service.store.db;
31 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/service/store/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /**
27 | * Provides interfaces and classes for pluggable data stores of
28 | * {@link com.sun.sgs.service.DataService DataService} implementations.
29 | */
30 | package com.sun.sgs.service.store;
31 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/service/task/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /**
27 | * Provides interfaces and classes for pluggable
28 | * {@link com.sun.sgs.service.TaskService TaskService} implementations.
29 | */
30 | package com.sun.sgs.service.task;
31 |
--------------------------------------------------------------------------------
/sgs-server-internal-api/src/main/java/com/sun/sgs/transport/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * Sun designates this particular file as subject to the "Classpath"
20 | * exception as provided by Sun in the LICENSE file that accompanied
21 | * this code.
22 | *
23 | * --
24 | */
25 |
26 | /** Provides interfaces for the transport layer. */
27 | package com.sun.sgs.transport;
28 |
--------------------------------------------------------------------------------
/sgs-server-javadoc/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/sgs-server-javadoc/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-server-javadoc
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-server-javadoc/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/sgs-server-javadoc/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.6
6 |
--------------------------------------------------------------------------------
/sgs-server-javadoc/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-server-javadoc/src/main/assembly/all-sources.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 | false
8 | all-sources
9 |
10 | dir
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | org.reddwarfserver.server:sgs-server-api:jar:sources
19 | org.reddwarfserver.server:sgs-server-internal-api:jar:sources
20 | org.reddwarfserver.server:sgs-server:jar:sources
21 | org.reddwarfserver.server:sgs-shared:jar:sources
22 |
23 | true
24 |
25 | false
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/sgs-server-javadoc/src/main/etc/stylesheet.css:
--------------------------------------------------------------------------------
1 | /* Extra stylesheet contents for generating Javadoc */
2 |
3 | /* Ordered lists where the outermost list is marked with the "outline"
4 | class will be formatted to use different styles for different
5 | nestings:
6 |
7 | I. Uppercase roman
8 | A. Uppercase alphabetic
9 | 1. Decimal
10 | a. Lowercase alphabetic
11 | i. Lowercase roman
12 |
13 | It will also use the "disc" style for unordered list bullets.
14 | */
15 | ol.outline { list-style-type: upper-roman }
16 | ol.outline ol { list-style-type: upper-alpha }
17 | ol.outline ol ol { list-style-type: decimal }
18 | ol.outline ol ol ol { list-style-type: lower-alpha }
19 | ol.outline ol ol ol ol { list-style-type: lower-roman }
20 | ol.outline * ul { list-style: disc }
21 |
--------------------------------------------------------------------------------
/sgs-server/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/sgs-server/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-server
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-server/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding//src/test/java=UTF-8
5 | encoding//src/test/resources=UTF-8
6 | encoding/=UTF-8
7 |
--------------------------------------------------------------------------------
/sgs-server/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.6
6 |
--------------------------------------------------------------------------------
/sgs-server/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-server/src/main/assembly/sources.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 | sources
6 |
7 | false
8 |
9 | jar
10 |
11 |
12 |
13 |
14 |
15 |
16 | src/main/java
17 |
18 |
19 |
20 |
21 |
22 | src/main/resources
23 |
24 |
25 | src/main/resources/com/sun/sgs/sgs.version
26 | src/main/resources/com/sun/sgs/impl/kernel/doc-files/config-properties.html
27 |
28 |
29 |
30 |
31 |
32 |
35 |
36 |
37 | src/main/resources/com/sun/sgs/sgs.version
38 | com/sun/sgs
39 | true
40 | 644
41 |
42 |
43 | src/main/resources/com/sun/sgs/impl/kernel/doc-files/config-properties.html
44 | com/sun/sgs/impl/kernel/doc-files
45 | true
46 | 644
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/app/profile/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides manager implementations that support profiling.
24 | */
25 | package com.sun.sgs.impl.app.profile;
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/auth/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides simple implementations for identities and how to authenticate them.
24 | */
25 | package com.sun.sgs.impl.auth;
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/kernel/KernelShutdownController.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.kernel;
23 |
24 | /**
25 | * An interface for controlling Kernel shutdown. If the {@code Kernel} provides
26 | * an object to a component or service, it is giving permission to that
27 | * component or service to call {@link Kernel#shutdown}.
28 | */
29 | public interface KernelShutdownController {
30 |
31 | /**
32 | * Instructs the {@code Kernel} to shutdown the node, as a result of a
33 | * failure detected in a service or a component. If this method is called
34 | * during startup, it may be delayed until the Kernel is completely booted.
35 | *
36 | * @param caller the class that called the shutdown. This is to
37 | * differentiate between being called from a service and being called from
38 | * a component.
39 | */
40 | void shutdownNode(Object caller);
41 | }
42 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/kernel/SystemIdentity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.kernel;
23 |
24 | import com.sun.sgs.impl.auth.IdentityImpl;
25 |
26 | /**
27 | * The system identity is pinned to the node it was created on and
28 | * is not used for load balancing decisions.
29 | */
30 | public class SystemIdentity extends IdentityImpl {
31 |
32 | private static final long serialVersionUID = 1L;
33 |
34 | /**
35 | * Creates an instance of {@code SystemIdentity} associated with the
36 | * given name.
37 | *
38 | * @param name the name of this identity
39 | */
40 | public SystemIdentity(String name) {
41 | super(name);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/kernel/logging/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides transactional logging facilities.
24 | */
25 | package com.sun.sgs.impl.kernel.logging;
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/kernel/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this file have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license that can be found
5 | * in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * --
26 | */
27 |
28 | /**
29 | * Provides an implementation of the RedDwarf Server kernel.
30 | */
31 | package com.sun.sgs.impl.kernel;
32 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/kernel/schedule/TimedTaskListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.kernel.schedule;
23 |
24 | import com.sun.sgs.kernel.schedule.ScheduledTask;
25 |
26 |
27 | /** Package-private interface for notifying when delayed tasks are ready. */
28 | interface TimedTaskListener {
29 |
30 | /**
31 | * Called when a delayed task has reached its time to run.
32 | *
33 | * @param task the {@code ScheduledTask} that is ready to run
34 | */
35 | void timedTaskReady(ScheduledTask task);
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/kernel/schedule/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides scheduling facilities for the kernel.
24 | */
25 | package com.sun.sgs.impl.kernel.schedule;
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/nio/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Implements asynchronous IO as specified by
24 | * the package {@link com.sun.sgs.nio.channels}.
25 | */
26 | package com.sun.sgs.impl.nio;
27 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/profile/listener/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides implementations for {@link com.sun.sgs.profile.ProfileListener}.
24 | */
25 | package com.sun.sgs.impl.profile.listener;
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/profile/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides an implementation for some interfaces in
24 | * {@link com.sun.sgs.profile}.
25 | */
26 | package com.sun.sgs.impl.profile;
27 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/profile/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides utilities useful for profiling implementations.
24 | */
25 | package com.sun.sgs.impl.profile.util;
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/protocol/simple/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides an implementation of the protocol layer APIs using the
24 | * {@code SimpleSgsProtocol}.
25 | */
26 | package com.sun.sgs.impl.protocol.simple;
27 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/channel/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides an implementation of {@link com.sun.sgs.app.ChannelManager}. */
23 | package com.sun.sgs.impl.service.channel;
24 |
25 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/data/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides an implementation of {@link com.sun.sgs.service.DataService}. */
23 | package com.sun.sgs.impl.service.data;
24 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/data/store/db/bdb/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides an implementation of the interfaces in the {@link
24 | * com.sun.sgs.service.store.db} package based on Berkeley
26 | * DB.
27 | *
28 | * Operations on classes in this package will throw an {@link java.lang.Error
29 | * Error} if the underlying Berkeley DB database requires recovery. In that
30 | * case, callers need to restart the application or create new instances of
31 | * these classes.
32 | */
33 | package com.sun.sgs.impl.service.data.store.db.bdb;
34 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/data/store/db/je/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides an implementation of the interfaces in the {@link
24 | * com.sun.sgs.service.store.db} package based on Berkeley DB Java
26 | * Edition.
27 | *
28 | * Operations on classes in this package will throw an {@link java.lang.Error
29 | * Error} if the underlying Berkeley DB database requires recovery. In that
30 | * case, callers need to restart the application or create new instances of
31 | * these classes.
32 | */
33 | package com.sun.sgs.impl.service.data.store.db.je;
34 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/data/store/net/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides an implementation of {@link
24 | * com.sun.sgs.service.store.DataStore} that supports clients
25 | * communicating to a shared data store server over the network.
26 | */
27 | package com.sun.sgs.impl.service.data.store.net;
28 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/data/store/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides facilities for storing objects used by {@link
24 | * com.sun.sgs.impl.service.data.DataServiceImpl}.
25 | */
26 | package com.sun.sgs.impl.service.data.store;
27 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/nodemap/affinity/AffinityGroupFinder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.service.nodemap.affinity;
23 |
24 | /**
25 | * Stub, to be replaced by Keith's version.
26 | */
27 | public interface AffinityGroupFinder {
28 |
29 | /** Enables the finder. */
30 | void enable();
31 | /** Disables the finder. */
32 | void disable();
33 | /** Shuts down the finder. */
34 | void shutdown();
35 | }
36 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/nodemap/affinity/dgb/DistGraphBuilderServer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.service.nodemap.affinity.dgb;
23 |
24 | import com.sun.sgs.auth.Identity;
25 | import java.io.IOException;
26 | import java.rmi.Remote;
27 |
28 | /**
29 | * The server interface for the distributed graph builder.
30 | */
31 | public interface DistGraphBuilderServer extends Remote {
32 | /**
33 | * Update the graph based on the objects accessed in a task.
34 | *
35 | * @param owner the task owner (the object making the accesses)
36 | * @param objIds the object IDs of objects accessed by the owner
37 | * @throws IOException if there is a communication problem
38 | */
39 | void updateGraph(Identity owner, Object[] objIds) throws IOException;
40 | }
41 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/nodemap/affinity/dlpa/graph/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides classes used to create the graphs for the fully distributed
24 | * label propagation algorithm implementation.
25 | */
26 | package com.sun.sgs.impl.service.nodemap.affinity.dlpa.graph;
27 |
28 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/nodemap/affinity/single/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides classes for a single node implementation of the label propagation
24 | * algorithm described in "Near linear time algorithm to detect community
25 | * structures in large-scale networks" by Raghavan, Albert and Kumara (2007).
26 | *
27 | * This implementation is useful for testing the algorithm.
28 | */
29 |
30 | package com.sun.sgs.impl.service.nodemap.affinity.single;
31 |
32 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/nodemap/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides an implementation of
24 | * {@link com.sun.sgs.service.NodeMappingService}.
25 | */
26 | package com.sun.sgs.impl.service.nodemap;
27 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/nodemap/policy/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides implementations of
24 | * {@link com.sun.sgs.impl.service.nodemap.NodeAssignPolicy}.
25 | */
26 | package com.sun.sgs.impl.service.nodemap.policy;
27 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/session/NodeAssignment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.service.session;
23 |
24 | /**
25 | * Contains a node ID assignment.
26 | *
27 | * TBD: add a service-level interface for ClientSession?
28 | */
29 | public interface NodeAssignment {
30 |
31 | /**
32 | * Returns the node ID for this instance.
33 | *
34 | * @return the node ID for this instance
35 | */
36 | long getNodeId();
37 |
38 | /**
39 | * Returns the ID of the new node that the client session is
40 | * relocating to, or {@code -1} if the associated client session
41 | * is not relocating.
42 | *
43 | * @return the node ID of the new node, or {@code -1} if the
44 | * session is not relocating
45 | */
46 | long getRelocatingToNodeId();
47 | }
48 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/session/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides an implementation of {@link
23 | * com.sun.sgs.service.ClientSessionService}. */
24 | package com.sun.sgs.impl.service.session;
25 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/task/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides an implementation of {@link com.sun.sgs.service.TaskService}. */
23 | package com.sun.sgs.impl.service.task;
24 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/transaction/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides an implementation of transactions. */
23 | package com.sun.sgs.impl.service.transaction;
24 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/service/watchdog/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides an implementation of {@link
23 | * com.sun.sgs.service.WatchdogService}. */
24 | package com.sun.sgs.impl.service.watchdog;
25 |
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/transport/tcp/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Provides an implementation of the transport layer APIs using TCP.
24 | */
25 | package com.sun.sgs.impl.transport.tcp;
26 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/util/IoRunnable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.util;
23 |
24 | import java.io.IOException;
25 |
26 | /**
27 | * A task to encapsulate IO-related operations to be executed within the
28 | * context of {@link AbstractService#runIoTask AbstractService.runIoTask}.
29 | */
30 | public interface IoRunnable {
31 |
32 | /**
33 | * Runs IO-related operations to be executed within the context of
34 | * {@link AbstractService#runIoTask AbstractService.runIoTask}.
35 | *
36 | * @throws IOException if an IOException occurs while running this
37 | * method
38 | */
39 | void run() throws IOException;
40 | }
41 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/util/Numbers.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.util;
23 |
24 | /** Utility methods for working with numbers. */
25 | public final class Numbers {
26 |
27 | /** This class should not be instantiated. */
28 | private Numbers() { }
29 |
30 | /**
31 | * A utility method that adds two non-negative {@code long}s, returning
32 | * {@link Long#MAX_VALUE} if the value would overflow.
33 | *
34 | * @param x first value
35 | * @param y second value
36 | * @return the sum
37 | * @throws IllegalArgumentException if either argument is negative
38 | */
39 | public static long addCheckOverflow(long x, long y) {
40 | if (x < 0 || y < 0) {
41 | throw new IllegalArgumentException(
42 | "The arguments must not be negative");
43 | }
44 | long result = x + y;
45 | return (result >= 0) ? result : Long.MAX_VALUE;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/util/lock/LockConflictType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.impl.util.lock;
23 |
24 | /** The type of a lock conflict detected by a {@link LockManager}. */
25 | public enum LockConflictType {
26 |
27 | /** The request is currently blocked. */
28 | BLOCKED,
29 |
30 | /** The request timed out. */
31 | TIMEOUT,
32 |
33 | /** The request was denied. */
34 | DENIED,
35 |
36 | /** The request was interrupted. */
37 | INTERRUPTED,
38 |
39 | /** The request resulted in deadlock and was chosen to be aborted. */
40 | DEADLOCK;
41 | }
42 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/util/lock/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides utility classes for managing locks. */
23 | package com.sun.sgs.impl.util.lock;
24 |
--------------------------------------------------------------------------------
/sgs-server/src/main/java/com/sun/sgs/impl/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /** Provides miscellaneous utility classes and methods. */
23 | package com.sun.sgs.impl.util;
24 |
--------------------------------------------------------------------------------
/sgs-server/src/main/resources/com/sun/sgs/impl/kernel/doc-files/app-node.properties:
--------------------------------------------------------------------------------
1 | # Multi-node application node properties
2 |
3 | # NOTE The core server node must be started before any application nodes.
4 |
5 | # Required properties.
6 | # --------------------
7 |
8 | # Start an application node
9 | com.sun.sgs.node.type = appNode
10 |
11 | # The host name of the machine the core server was started on.
12 | #com.sun.sgs.server.host = core-server-name
13 |
14 | # Application name. This must be the same on each node.
15 | #com.sun.sgs.app.name = Foo
16 |
17 | # File system root. This is file system space available for
18 | # Project Darkstar use, and must be a valid directory name.
19 | #com.sun.sgs.app.root = /var/tmp/fooFiles
20 |
21 | # Application listener. Specify the fully qualified class name of
22 | # the listener.
23 | #com.sun.sgs.app.listener = com.app.pkg.FooAppListener
24 |
25 | # Application port. The TCP port on which to listen for
26 | # client connections for the default protocol and transport.
27 | #com.sun.sgs.impl.transport.tcp.listen.port = port-number
28 |
29 |
30 | # Optional properties.
31 | # --------------------
32 |
33 | # The TCP port of the data service's shared network server
34 | #com.sun.sgs.impl.service.data.store.net.server.port = 44530
35 |
36 | # The TCP port of the watchdog service's shared network server
37 | #com.sun.sgs.impl.service.watchdog.server.port = 44533
38 |
39 | # The TCP port of the node mapping service's shared network server
40 | #com.sun.sgs.impl.service.nodemap.server.port = 44535
41 |
--------------------------------------------------------------------------------
/sgs-server/src/main/resources/com/sun/sgs/impl/kernel/doc-files/core-server.properties:
--------------------------------------------------------------------------------
1 | # Multi-node core server properties
2 |
3 | # NOTE The core server node must be started before any application nodes.
4 |
5 | # Required properties.
6 | # --------------------
7 |
8 | # Start a core server node
9 | com.sun.sgs.node.type = coreServerNode
10 |
11 | # Application name. This must be the same on each node.
12 | #com.sun.sgs.app.name = Foo
13 |
14 | # File system root. This is file system space available for
15 | # Project Darkstar use, and must be a valid directory name.
16 | #com.sun.sgs.app.root = /var/tmp/fooFiles
17 |
18 |
19 | # Optional properties.
20 | # --------------------
21 |
22 | # The TCP port of the data service's shared network server
23 | #com.sun.sgs.impl.service.data.store.net.server.port = 44530
24 |
25 | # The TCP port of the watchdog service's shared network server
26 | #com.sun.sgs.impl.service.watchdog.server.port = 44533
27 |
28 | # The TCP port of the node mapping service's shared network server
29 | #com.sun.sgs.impl.service.nodemap.server.port = 44535
30 |
--------------------------------------------------------------------------------
/sgs-server/src/main/resources/com/sun/sgs/impl/kernel/doc-files/single-node.properties:
--------------------------------------------------------------------------------
1 | # Single node properties
2 |
3 | # Required properties.
4 | # --------------------
5 |
6 | # Start a single node Darkstar server. Because we are setting
7 | # this property to its default, it can be excluded.
8 | com.sun.sgs.node.type = singleNode
9 |
10 | # Application name. This name must be the same for each node.
11 | #com.sun.sgs.app.name = Foo
12 |
13 | # File system root. This is file system space available for
14 | # Project Darkstar use, and must be a valid directory name.
15 | #com.sun.sgs.app.root = /var/tmp/fooFiles
16 |
17 | # Application listener. Specify the fully qualified class name of
18 | # the listener.
19 | #com.sun.sgs.app.listener = com.app.pkg.FooAppListener
20 |
21 | # Application port. The TCP port on which to listen for
22 | # client connections for the default protocol and transport.
23 | #com.sun.sgs.impl.transport.tcp.listen.port = port-number
24 |
25 |
--------------------------------------------------------------------------------
/sgs-server/src/main/resources/com/sun/sgs/sgs.version:
--------------------------------------------------------------------------------
1 | ${pom.version}
2 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/impl/service/data/store/TestAbstractDataStoreTxnIsolation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.impl.service.data.store;
23 |
24 | import com.sun.sgs.service.store.DataStore;
25 | import com.sun.sgs.test.util.InMemoryDataStore;
26 | import com.sun.sgs.tools.test.FilteredNameRunner;
27 | import org.junit.runner.RunWith;
28 |
29 | /**
30 | * Tests the isolation that {@link AbstractDataStore} enforces between
31 | * transactions.
32 | */
33 | @RunWith(FilteredNameRunner.class)
34 | public class TestAbstractDataStoreTxnIsolation extends BasicTxnIsolationTest {
35 |
36 | /** Creates an {@link InMemoryDataStore}. */
37 | protected DataStore createDataStore() {
38 | return new InMemoryDataStore(props, env.systemRegistry, txnProxy);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/impl/service/data/store/net/TestDataServiceClientMulti.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.impl.service.data.store.net;
23 |
24 | import com.sun.sgs.test.impl.service.data.BasicDataServiceMultiTest;
25 | import com.sun.sgs.test.util.SgsTestNode;
26 | import java.util.Properties;
27 |
28 | /**
29 | * Perform multi-node tests on the {@code DataService} using the network data
30 | * store.
31 | */
32 | public class TestDataServiceClientMulti extends BasicDataServiceMultiTest {
33 |
34 | @Override
35 | protected Properties getServerProperties() throws Exception {
36 | return SgsTestNode.getDefaultProperties(appName, null, null);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/Constants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /**
25 | * Contains constant values to be used with tests.
26 | */
27 | public final class Constants {
28 |
29 | /**
30 | * This value is the maximum clock granularity that is expected for calls
31 | * to {@link java.lang.System#currentTimeMillis()
32 | * System.currentTimeMillis()} across all operating systems. In other
33 | * words, this is the shortest amount of time (in milliseconds) between
34 | * calls to {@code System.currentTimeMillis()} where you can be
35 | * guaranteed to get different values.
36 | */
37 | public static final Long MAX_CLOCK_GRANULARITY =
38 | Long.getLong("test.clock.granularity", 20);
39 |
40 | /**
41 | * This class should not be instantiated,
42 | */
43 | private Constants() {
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/DummyKernelRunnable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | import com.sun.sgs.kernel.KernelRunnable;
25 |
26 |
27 | /**
28 | * A utility class that implements the getBaseTaskType method
29 | * of KernelRunnable to return the name of this class, and
30 | * implements run to do nothing.
31 | */
32 | public class DummyKernelRunnable implements KernelRunnable {
33 |
34 | // the type of this class
35 | private static final String TYPE = DummyKernelRunnable.class.getName();
36 |
37 | /**
38 | * Returns the name of the extending class.
39 | *
40 | * @return the name of the extending class
41 | */
42 | public String getBaseTaskType() {
43 | return TYPE;
44 | }
45 |
46 | /**
47 | * Does nothing.
48 | */
49 | public void run() throws Exception {}
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/DummyNonDurableTransactionParticipant.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | import com.sun.sgs.service.NonDurableTransactionParticipant;
25 |
26 | /**
27 | * Provides a testing implementation of a non-durable transaction participant.
28 | */
29 | public class DummyNonDurableTransactionParticipant
30 | extends DummyTransactionParticipant
31 | implements NonDurableTransactionParticipant
32 | {
33 | /** Creates an instance of this class. */
34 | public DummyNonDurableTransactionParticipant() { }
35 | }
36 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PackageConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /**
25 | * Define a non-serializable class in a different package with a default access
26 | * no-arguments constructor.
27 | */
28 | class PackageConstructor {
29 | PackageConstructor() { }
30 | }
31 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PackageReadResolve.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a package-access readResolve method. */
25 | public class PackageReadResolve {
26 | Object readResolve() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PackageSuperclassConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | import java.io.Serializable;
25 |
26 | /**
27 | * Define a serializable class in a different package with a non-serializable
28 | * superclass with a default access no-arguments constructor.
29 | */
30 | public class PackageSuperclassConstructor extends PackageConstructor
31 | implements Serializable
32 | {
33 | private static final long serialVersionUID = 1;
34 | public PackageSuperclassConstructor() { }
35 | }
36 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PackageWriteReplace.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a package-access writeReplace method. */
25 | public class PackageWriteReplace {
26 | Object writeReplace() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PrivateReadResolve.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a private readResolve method. */
25 | public class PrivateReadResolve {
26 | private Object readResolve() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PrivateWriteReplace.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a private writeReplace method. */
25 | public class PrivateWriteReplace {
26 | private Object writeReplace() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/ProtectedConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /**
25 | * Define a non-serializable class in a different package with a protected
26 | * no-arguments constructor.
27 | */
28 | public class ProtectedConstructor {
29 | protected ProtectedConstructor() { }
30 | }
31 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/ProtectedReadResolve.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a protected readResolve method. */
25 | public class ProtectedReadResolve {
26 | protected Object readResolve() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/ProtectedWriteReplace.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a protected writeReplace method. */
25 | public class ProtectedWriteReplace {
26 | protected Object writeReplace() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PublicConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /**
25 | * Define a non-serializable class in a different package with a public
26 | * no-arguments constructor.
27 | */
28 | public class PublicConstructor {
29 | public PublicConstructor() { }
30 | }
31 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PublicReadResolve.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a public readResolve method. */
25 | public class PublicReadResolve {
26 | public Object readResolve() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/PublicWriteReplace.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | package com.sun.sgs.test.util;
23 |
24 | /** A class with a public writeReplace method. */
25 | public class PublicWriteReplace {
26 | public Object writeReplace() { return this; }
27 | }
28 |
--------------------------------------------------------------------------------
/sgs-server/src/test/java/com/sun/sgs/test/util/TestAbstractKernelRunnable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 | package com.sun.sgs.test.util;
22 |
23 | import com.sun.sgs.impl.util.AbstractKernelRunnable;
24 |
25 | /**
26 | * A subclass of {@code AbstractKernelRunnable} used for test purposes.
27 | * For ease of use, this class supplies a public no-arg constructor (which
28 | * {@code AbstractKernelRunnable} lacks).
29 | */
30 | public abstract class TestAbstractKernelRunnable extends AbstractKernelRunnable {
31 |
32 | /** Constructs an instance. */
33 | public TestAbstractKernelRunnable() {
34 | super(null);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/sgs-server/src/test/properties/logging.properties:
--------------------------------------------------------------------------------
1 | .level = WARNING
2 | handlers = java.util.logging.ConsoleHandler
3 | java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
4 | java.util.logging.ConsoleHandler.level = FINEST
5 |
6 | # Log objects that are found modified but not marked for update
7 | com.sun.sgs.impl.service.data.DataServiceImpl.detect.modifications.level = FINEST
8 | #com.sun.sgs.impl.service.nodemap.level = FINEST
9 | #com.sun.sgs.impl.service.session.handler.level = FINEST
10 | #com.sun.sgs.impl.service.session.impl.level = FINEST
11 | #com.sun.sgs.impl.service.session.level = CONFIG
12 | #com.sun.sgs.impl.service.watchdog.server.level = INFO
13 | #com.sun.sgs.impl.service.watchdog.service.level = INFO
14 | #com.sun.sgs.impl.service.session.level = FINE
15 | #com.sun.sgs.impl.service.channel.level = FINEST
16 | #com.sun.sgs.impl.service.channel.ChannelImpl.level = FINEST
17 |
18 | #com.sun.sgs.impl.service.nodemap.affinity.level = FINEST
19 |
--------------------------------------------------------------------------------
/sgs-server/src/test/resources/com/sun/sgs/test/impl/kernel/TestLoggerPropertiesInit.resource:
--------------------------------------------------------------------------------
1 | .level = WARNING
2 |
3 | a.b.c.level = FINE
4 | x.y.z.level = FINEST
5 |
--------------------------------------------------------------------------------
/sgs-stop/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/sgs-stop/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-stop
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-stop/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding/=UTF-8
4 |
--------------------------------------------------------------------------------
/sgs-stop/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.5
6 |
--------------------------------------------------------------------------------
/sgs-stop/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-stop/src/main/java/com/sun/sgs/system/stop/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 The RedDwarf Authors. All rights reserved
3 | * Portions of this file have been modified as part of RedDwarf
4 | * The source code is governed by a GPLv2 license that can be found
5 | * in the LICENSE file.
6 | */
7 | /*
8 | * Copyright 2007-2010 Sun Microsystems, Inc.
9 | *
10 | * This file is part of Project Darkstar Server.
11 | *
12 | * Project Darkstar Server is free software: you can redistribute it
13 | * and/or modify it under the terms of the GNU General Public License
14 | * version 2 as published by the Free Software Foundation and
15 | * distributed hereunder to you.
16 | *
17 | * Project Darkstar Server is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program. If not, see .
24 | *
25 | * --
26 | */
27 |
28 | /**
29 | * Provides utilities to shutdown a
30 | * RedDwarf Server application.
31 | */
32 | package com.sun.sgs.system.stop;
33 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-tutorial-server-dist
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/assembly/dist.xml:
--------------------------------------------------------------------------------
1 |
2 | false
3 |
4 | zip
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | org.reddwarfserver.server:sgs-tutorial-server:jar
13 |
14 | tutorial
15 | tutorial.jar
16 | false
17 |
18 |
19 |
21 |
22 |
23 | org.reddwarfserver.server:sgs-tutorial-server:jar:sources
24 |
25 | true
26 |
27 |
28 | META-INF
29 | META-INF/*
30 |
31 |
32 | tutorial/src
33 | false
34 |
35 |
36 |
37 |
38 |
39 |
40 |
42 |
43 | src/main/conf
44 | tutorial/conf
45 |
46 |
47 |
48 |
49 | src/main/doc
50 | tutorial
51 |
52 | **/*.txt
53 |
54 |
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloChannels.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloChannels
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloChannels.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloChannels.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloChannels
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloChannels
5 | com.sun.sgs.app.root=tutorial/data/HelloChannels
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson6.HelloChannels
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloEcho.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloEcho
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloEcho.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloEcho.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloEcho
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloEcho
5 | com.sun.sgs.app.root=tutorial/data/HelloEcho
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson5.HelloEcho
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloLogger.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloLogger
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloLogger.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloLogger.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloLogger
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloLogger
5 | com.sun.sgs.app.root=tutorial/data/HelloLogger
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson2.HelloLogger
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloPersistence.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloPersistence
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloPersistence.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloPersistence.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloPersistence
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloPersistence
5 | com.sun.sgs.app.root=tutorial/data/HelloPersistence
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson4.HelloPersistence
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloPersistence2.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloPersistence2
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloPersistence2.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloPersistence2.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloPersistence2
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloPersistence2
5 | com.sun.sgs.app.root=tutorial/data/HelloPersistence2
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson4.HelloPersistence2
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloPersistence3.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloPersistence3
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloPersistence3.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloPersistence3.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloPersistence3
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloPersistence3
5 | com.sun.sgs.app.root=tutorial/data/HelloPersistence3
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson4.HelloPersistence3
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloTimer.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloTimer
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloTimer.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloTimer.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloTimer
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloTimer
5 | com.sun.sgs.app.root=tutorial/data/HelloTimer
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson3.HelloTimer
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloUser.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloUser
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloUser.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloUser.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloUser
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloUser
5 | com.sun.sgs.app.root=tutorial/data/HelloUser
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson5.HelloUser
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloUser2.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloUser2
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloUser2.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloUser2.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloUser2
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloUser2
5 | com.sun.sgs.app.root=tutorial/data/HelloUser2
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson5.HelloUser2
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloWorld.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the HelloWorld
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/HelloWorld.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/HelloWorld.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloWorld
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloWorld
5 | com.sun.sgs.app.root=tutorial/data/HelloWorld
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson1.HelloWorld
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/SwordWorld.boot:
--------------------------------------------------------------------------------
1 | # This is the boot configuration file for running the SwordWorld
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | SGS_DEPLOY=${SGS_HOME}/tutorial
5 |
6 | SGS_PROPERTIES=${SGS_HOME}/tutorial/conf/SwordWorld.properties
7 |
8 | SGS_LOGGING=${SGS_HOME}/tutorial/conf/logging.properties
9 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/conf/SwordWorld.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the SwordWorld
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=SwordWorld
5 | com.sun.sgs.app.root=tutorial/data/SwordWorld
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.swordworld.SwordWorld
8 |
--------------------------------------------------------------------------------
/sgs-tutorial-server-dist/src/main/doc/TUTORIAL.txt:
--------------------------------------------------------------------------------
1 | Please see https://sourceforge.net/apps/trac/reddwarf/wiki/Documentation
2 | for the latest tutorial documents. Later versions of RedDwarf should
3 | contain a new and improved tutorial for consumption as part of the
4 | distribution. The tutorial code available in the src directory should
5 | be applicable to the tutorials found at the location above.
6 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | sgs-tutorial-server
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.6
6 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/assembly/sources.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 | sources
6 |
7 | false
8 |
9 | jar
10 |
11 |
12 |
13 |
14 |
15 |
16 | src/main/java
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/etc/findbugs-exclude.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/java/com/sun/sgs/tutorial/server/lesson1/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Lesson 1 of the SGS Application Tutorial.
24 | *
25 | * Demonstrates SGS application startup with a simple Hello World example.
26 | */
27 | package com.sun.sgs.tutorial.server.lesson1;
28 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/java/com/sun/sgs/tutorial/server/lesson2/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Lesson 2 of the SGS Application Tutorial.
24 | *
25 | * Demonstrates the use of {@link java.util.logging} in a simple
26 | * Hello World example.
27 | */
28 | package com.sun.sgs.tutorial.server.lesson2;
29 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/java/com/sun/sgs/tutorial/server/lesson3/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Lesson 3 of the SGS Application Tutorial.
24 | *
25 | * Demonstrates the {@link com.sun.sgs.app.TaskManager} using a
26 | * periodic task example.
27 | */
28 | package com.sun.sgs.tutorial.server.lesson3;
29 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/java/com/sun/sgs/tutorial/server/lesson4/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Lesson 4 of the SGS Application Tutorial.
24 | *
25 | * Demonstrates the {@link com.sun.sgs.app.ManagedObject} persistence using
26 | * the {@link com.sun.sgs.app.DataManager}.
27 | */
28 | package com.sun.sgs.tutorial.server.lesson4;
29 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/java/com/sun/sgs/tutorial/server/lesson5/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Lesson 5 of the SGS Application Tutorial.
24 | *
25 | * Demonstrates direct communication with client sessions using
26 | * a {@link com.sun.sgs.app.ClientSessionListener}.
27 | */
28 | package com.sun.sgs.tutorial.server.lesson5;
29 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/java/com/sun/sgs/tutorial/server/lesson6/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * Lesson 6 of the SGS Application Tutorial.
24 | *
25 | * Demonstrates publish/subscribe communication with client sessions using
26 | * a {@link com.sun.sgs.app.Channel} and the
27 | * {@link com.sun.sgs.app.ChannelManager}.
28 | */
29 | package com.sun.sgs.tutorial.server.lesson6;
30 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/java/com/sun/sgs/tutorial/server/swordworld/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 Sun Microsystems, Inc.
3 | *
4 | * This file is part of Project Darkstar Server.
5 | *
6 | * Project Darkstar Server is free software: you can redistribute it
7 | * and/or modify it under the terms of the GNU General Public License
8 | * version 2 as published by the Free Software Foundation and
9 | * distributed hereunder to you.
10 | *
11 | * Project Darkstar Server is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | *
19 | * --
20 | */
21 |
22 | /**
23 | * SwordWorld example from the SGS Application Tutorial.
24 | *
25 | * A trivial MUD example that demonstrates some real-world applications
26 | * of the lessons in the tutorial.
27 | */
28 | package com.sun.sgs.tutorial.server.swordworld;
29 |
--------------------------------------------------------------------------------
/sgs-tutorial-server/src/main/resources/META-INF/app.properties:
--------------------------------------------------------------------------------
1 | # This is the properties file for running the HelloWorld
2 | # example from the Project Darkstar Server Application Tutorial
3 |
4 | com.sun.sgs.app.name=HelloWorld
5 | com.sun.sgs.app.listener=com.sun.sgs.tutorial.server.lesson1.HelloWorld
6 | com.sun.sgs.impl.transport.tcp.listen.port=1139
7 |
--------------------------------------------------------------------------------